You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Quick tip: AppleScript application toggle - BrettTerpstra.com-- http://brettterpstra.com/2011/01/22/quick-tip-applescript-application-toggle/use AppleScript version "2.4" -- Yosemite (10.10) or lateruse scripting additionsset appName to "Mail"set startIt to falsetell application "System Events" if not (exists process appName) then set startIt to true else if frontmost of process appName then set visible of process appName to false else set frontmost of process appName to true end ifend tellif startIt then tell application appName to activateend if