|
|
Date conversion problems
This script works for me, for the most part. The only problem is the parsing of dates. This might be affected by the "International" setting of the OS. When the date "3/1/2006" is parsed, I get March 1st, rather than the January 3rd I expected. I fixed up my copy of the script so that it prompts me the way I expect, but I think this is likely not a bug in the script. I'm guessing that the conversion of the string to a date is probably dependent on the user's settings, as I'm using U.S. formatting.
Date conversion problems
Yes I should have pointed that out I'm in the Uk so the format is the Uk style.
This should help. to
---
Date conversion problems
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. --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.30 seconds |
|