Re: Script performance and Safari
Re: Script performance and Safari
- Subject: Re: Script performance and Safari
- From: Christopher Stone <email@hidden>
- Date: Sun, 15 Apr 2012 11:03:22 -0500
Thanks Nigel,
I knew you would come up with something more efficient, as I mentioned in my first post. :)
On Apr 15, 2012, at 05:56, Nigel Garvey wrote: Even that contains an unnecessary text concatenation
So 'as text' is actually more efficient than the leading coercion. Why specifically is that? Because 'text' is already a property of the value?
It's not substantially faster, but it's measurable.
In Snow Leopard, AppleScript dates before 15th October 1582 are totally screwed and their use is best avoided. (Their text representations are, presumably, Julian, whereas their other properties are still proleptic Gregorian.) tell date "Saturday 25 December 1400 00:00:00" to return {its short date string, its year, its month, its day}
--> {"25/12/1400", 1401, January, 3}
Ouch. This is still true in Lion.
-- 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