Re: "do shell" vs. Plain old AppleScript nomenclature
Re: "do shell" vs. Plain old AppleScript nomenclature
- Subject: Re: "do shell" vs. Plain old AppleScript nomenclature
- From: "John W. Baxter" <email@hidden>
- Date: Fri, 23 Jul 2004 10:51:38 -0700
On 7/23/2004 10:22, "Graff" <email@hidden> wrote:
>
Well first of all you can get a time string very simply just using
>
AppleScript:
>
>
time string of (current date)
>
>
-->"12:54:32 PM"
>
Or, perhaps (doing this in the morning, so cheating)...
time string of ((current date) + 3 * hours)
--> "13:46:02"
Or any of numerous other formats. In other words,
time string
doesn't travel well for anything but display. On one's own machine, one has
control over what it looks like and therefore how to parse it.
This favors either doing computations on
time of (current date)
or using the date command with a format specification to get the desired
format. But the date command doesn't travel well either, when the
destination is a pre-X Macintosh.
--John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.