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


Click here to return to the 'Date conversion problems' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Date conversion problems
Authored by: osxpounder on Mar 07, '06 12:53:24PM
I'm trying to figure out how to modify this script, so that it gets the current time, adds a fixed number of minutes to it, and puts that in the dialog box as the default answer here:

display dialog "Enter time of the event : (24 hour time)" default answer XXXXX

... where the XXXXX would be replaced with whatever code can do the job. I'm thinking that it'd be helpful to set an iCal appointment for, say, a half-hour from now, and let the script figure out what time "now" is. Is it possible? I've searched the Dictionary, in Script Editor, for Finder, iCal, and System Events, but the search keyword "time turns up nothing that seems useful. I know almost nothing about AppleScript, so this might be obvious to some of you. I took a stab at it, but apparently "current time" doesn't work.

---
--
osxpounder

[ Reply to This | # ]