AppleScript名:asoc_現在のLocaleのカレンダーのTime Zoneを取得する |
use AppleScript version "2.4" use scripting additions use framework "Foundation" set aCalendar to current application’s NSCalendar’s currentCalendar() set aTimeZone to (aCalendar’s timeZone) set tzName to aTimeZone’s |name|() as string –> "Asia/Tokyo" set tDiff to (aTimeZone’s secondsFromGMT()) / 3600 –> 9.0 set aDesc to aTimeZone’s |description|() as string –> "Asia/Tokyo (JST) offset 32400" |
More from my site
(Visited 34 times, 1 visits today)