Re: easy one: current date in Paris
Re: easy one: current date in Paris
- Subject: Re: easy one: current date in Paris
- From: Martin Orpen <email@hidden>
- Date: Wed, 6 Jul 2005 08:59:58 +0100
On 6 Jul 2005, at 00:48, kai wrote:
Now - about that small matter of daylight saving...
A variant on the previous script:
tell application "Automator"
activate
set foo to call method "knownTimeZoneNames" of class "NSTimeZone"
set bar to choose from list foo
set dstCheck to call method "timeZoneWithName:" of class
"NSTimeZone" with parameters bar
set theResult to call method "isDaylightSavingTime" of dstCheck
if theResult is 1 then
display dialog (bar as string) & " IS observing daylight
saving time."
else
display dialog (bar as string) & " is NOT observing daylight
saving time."
end if
end tell
:-)
--
Martin Orpen
_______________________________________________
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