Re: Script performance and Safari
Re: Script performance and Safari
- Subject: Re: Script performance and Safari
- From: Christopher Stone <email@hidden>
- Date: Sat, 14 Apr 2012 10:10:41 -0500
On Apr 14, 2012, at 07:52, KOENIG Yvan wrote: Why not :
tell (current date) return "" & (its month as number) & "/" & its day & "/" & (its year) mod (((its year) div 1000) * 1000) end tell
______________________________________________________________________
Hey Yvan,
Yes that's better, but let's simplify a trifle more — and make certain the day is single-digit when available.
tell (current date) to set dateStr to "" & (its month as number) & "/" & (its day as number) & "/" & (its year) mod (((its year) div 1000) * 1000)
This is what I meant in my original post that Nigel no doubt had something better. At the time I just couldn't remember off the top of my head or find it conveniently, so I made do with the clunky one.
Thanks for jogging my memory.
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden