• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: easy one: current date in Paris
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: easy one: current date in Paris
      • From: Martin Orpen <email@hidden>
    • Re: easy one: current date in Paris
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: easy one: current date in Paris (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: easy one: current date in Paris
  • Next by Date: Re: easy one: current date in Paris
  • Previous by thread: Re: easy one: current date in Paris
  • Next by thread: Re: easy one: current date in Paris
  • Index(es):
    • Date
    • Thread