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: 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 | # ]