Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'New reminder from any application' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
New reminder from any application
Authored by: theboyler on Aug 16, '12 06:56:23AM
I have a list called 'shopping' which I enter, well, my shopping. I made a script to creates a text box and adds the result to a list in Reminders.app called 'shopping', and then unless a specific button is clicked to say its the last item, it reopens to add another item. You can set the name of the list to whatever you want by amending the script.
property thetext : ""
property thebutton : ""
set thelist to "shopping" -- amend this to whatever list you wish

getitem()
repeat until thebutton is not "More…"
	getitem()
end repeat

on getitem()
	set thetext to ""
	set thebutton to ""
	set thebox to display dialog "Shopping Item:" default answer "" buttons {"More…", "Last Item", "Cancel"} default button {"More…"} giving up after 60
	set thetext to text returned of thebox
	set thebutton to button returned of thebox
	if thebutton is "Cancel" or thebutton is "" or thetext is "" then return
	tell application "Reminders" to tell list thelist of default account to make new reminder with properties {name:thetext}
	return thebutton
end get item


[ Reply to This | # ]
New reminder from any application
Authored by: hdrapin on Oct 17, '12 04:35:56AM
there is a little issue with the variable "theist" which should be use like this : property thetext : ""
property thebutton : ""
getitem()

repeat until thebutton is not "More…"
getitem()
end repeat

on getitem()
set thelist to "Courses"
set thetext to ""
set thebutton to ""
set thebox to display dialog "Shopping Item:" default answer "" buttons {"More…", "Last Item", "Cancel"} default button {"More…"} giving up after 60
set thetext to text returned of thebox
set thebutton to button returned of thebox
if thebutton is "Cancel" or thebutton is "" or thetext is "" then return
tell application "Reminders" to tell list thelist of default account to make new reminder with properties {name:thetext}
return thebutton
end getitem


[ Reply to This | # ]