I’m often changing the time zone in Calendar.app and then forgetting to change it back to my default time zone. What macro would you use to change it back after (say) 10 minutes of inactivity?
Hey Michael,
You’d have to use a timed trigger to activate an AppleScript similar to this:
---------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2016/06/02 21:45
# dMod: 2016/06/02 22:02
# Appl: Calendar
# Task: Use System Events to select time zone.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Calendar, @System_Events, @Time_Zone
---------------------------------------------------------------------------------
tell application "System Events"
tell application process "Calendar"
tell (first window whose subrole is "AXStandardWindow")
tell pop up button 1 of group 1 of toolbar 1
perform action "AXPress"
tell menu 1
if (name of first menu item where its attribute "AXMenuItemMarkChar"'s value is "✓") ≠ "Central Time" then
tell menu item "Central Time"
perform action "AXPress"
end tell
end if
end tell
end tell
end tell
end tell
end tell
---------------------------------------------------------------------------------
You’ll have to change the time-zone names to suit.
-Chris