Last active
August 29, 2015 14:01
-
-
Save lzilioli/ee9193d44ed0fe30f5af to your computer and use it in GitHub Desktop.
AppleScripts for stay.app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hide applications on monitor disconnect | |
set appNames to ["Spotify", "Mail", "Finder", "Calendar", "HipChat", "Stickies", "Tweetbot", "iTunes", "2Do", "Slack"] | |
tell application "Finder" | |
repeat with appName in appNames | |
if (name of processes) contains appName then | |
set visible of process appName to false | |
end if | |
end repeat | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show applications on monitor connect | |
set appNames to ["Spotify", "Mail", "Finder", "Calendar", "HipChat", "Stickies", "Tweetbot", "iTunes", "2Do", "Slack"] | |
tell application "Finder" | |
repeat with appName in appNames | |
if (name of processes) contains appName then | |
set visible of process appName to true | |
end if | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment