Re: easy one: current date in Paris
Re: easy one: current date in Paris
- Subject: Re: easy one: current date in Paris
- From: kai <email@hidden>
- Date: Thu, 7 Jul 2005 03:53:19 +0100
On Wednesday, July 6, 2005, at 11:37 pm, Martin Orpen wrote:
Agreed. I spent ages nosing around Panther to see if Apple had left a
usefully exposed app somewhere but couldn't find anything, even
digging into
CoreServices :-(
With AS Studio, there's "AppleScriptKit"...
----------------
tell application "AppleScriptKit"
set l to call method "knownTimeZoneNames" of class "NSTimeZone"
tell me to set z to choose from list l with prompt "Choose a time
zone:"
if z is false then error number -128
tell (call method "timeZoneWithName:" of class "NSTimeZone" with
parameters z) ¬
to z's beginning & ": " & (current date) - (time to GMT) ¬
+ (call method "secondsFromGMT" of it) & ¬
{"", " (DST)"}'s item (1 + (call method "isDaylightSavingTime" of it))
end tell
----------------
---
kai
_______________________________________________
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