15. Hide window if the app is not active
This task hides windows when a specified application goes background. This is a sample to hide every Safari window when Safari is deactivated.

Original Article(Japanese)


(Trigger)
1. Watch Application
Input Safari and "becomes inactive".




(Action)
1. AppleScript
Input following script. The name "Safari" should be replaced with other application name if necessary.
tell application "System Events" to tell process "Safari" to set visible to false





I'm afraid that hiding Safari is not a good sample. It's useful for twitter client for example, just take a look and hide the window.

 

To Top and Map