16. Hide other apps
This task hides other applications when a specified application becomes active. In this sample use Safari as specified app, so when Safari becomes active, Task3 hides other applications.

Original Article(Japanese)


(Trigger)
1. Watch Application
Input "Safari" and "becomes active". To apply to other applications like Firefox, just create new "Watch Application" trigger and set app name and "becomes active" in same task.




(Action)
1. AppleScript
Input following script.
tell application "System Events" set notFrontmostApp to name of every application process whose background only is false and frontmost is false repeat with eachAppProcess in notFrontmostApp tell application process eachAppProcess to set visible to false end repeat end tell



 

To Top and Map