Re: Extract from result of current date
Re: Extract from result of current date
- Subject: Re: Extract from result of current date
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 4 Nov 2005 12:55:57 -0500
On 11/4/05,
Michelle Steiner <
email@hidden> wrote:
On Nov 4, 2005, at 9:44 AM, Rob Stott wrote:
> ..or if you felt like it, you could do it like this;.
>
> set theTimeString to do shell script "date \"+%H.%M.%S\""
But why, when "time string of (current date)" is so much more
readable and understandable?
Any number of reasons, starting with "I've written shell scripts before
and that's what comes naturally." But also, date +"format" gives
you precise control over what you get back, whereas "time string of" is
subject to the whims of the International system preferences
panel. So there are times when the less obvious solution is
nevertheless the more appropriate one for the task at hand.
I'm truly puzzled why people would use "do shell script" when vanilla
Applescript can handle the job.
Hey, "do shell script" *is* vanilla AppleScript. No OSAX required. :)
"We have succeeded for 205 years in keeping the affairs of state
separate from the uncompromising idealism of religious groups and we
mustn't stop now. To retreat from that separation would violate the
principles of conservatism and the values upon which the framers built
this democratic republic." --Barry Goldwater,
Man, that Goldwater, such a left-wing looney. ;-) May I assume
from the 205-year figure that the statement was made in 1981?
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden