|
|
Always keep an application open
I thought keeping and hiding an app is easier to carry out with an AppleScript app. An icon more in your Dock, though.
(* ApplicationHider Keeps an application running. Hides it, when not in use. Paste into AppleScript Editor. Save as an application with 'Stay open' ticked. Add the script app to your login items in System Preferences. Tuomas Rosberg 2011 *) property appName : "" property firstRun : false on run if firstRun is false then -- this script app hasn't been opened set anApp to choose application -- launches and returns item application set appName to name of anApp set firstRun to true else -- firstRun is true in subsequent runs, continue to idling end if end run on idle tell application "System Events" if exists of application process appName then if frontmost of application process appName is false then set visible of application process appName to false end if else -- the app process does not exist tell application "Finder" to launch application appName end if end tell return 3 -- seconds to idle end idle |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|