Jump to content

"Hide All" script won't hide all.

Recommended Posts

Hi there!


I'm trying to set up a Hide All script for the Remote, effectively hiding every app whose visibility is set to True and opening Home. So far it works every time with ScriptEditor, but when I put it on the System Command as a Open Script command, it works only slightly. Sometimes it just hides Messages, sometimes everything or sometimes it just doesn't care at all. I'm sure there's just something wrong with my coding/app/tech understanding. I'm using Murphy's HideAll 

tell application "Finder"
	set visible of every process whose visible is true and name is not "Finder" to false
	close every window
	open home
end tell

Hopefully some of you peeps know what's best. 

Share this post

Link to post
tell application "Finder" to activate
tell application "System Events"
    tell application process "Finder"
        tell menu bar 1
            click menu item "Hide Others" of menu of menu bar item "Finder"
            click menu item "Minimize All" of menu of menu bar item "Window"
        end tell
    end tell
end tell

I have this in a workflow and it works every time.



Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...