Jump to content

Minimize all windows


Recommended Posts

  • 2 months later...
  • 1 month later...

Hi, first of all thank you very much.

 

Sadly it's not working for me on Mavericks.. any ideas?

tell application "Finder"
	activate
end tell
tell application "System Events"
	click menu item "Hide Others" of menu of menu bar item "Finder" of menu bar 1 of application process "Finder"
		--> error number -1728 from menu item "Hide Others" of menu of menu bar item "Finder" of menu bar 1 of application process "Finder"
Link to post

 

Hi, first of all thank you very much.

 

Sadly it's not working for me on Mavericks.. any ideas?

tell application "Finder"
	activate
end tell
tell application "System Events"
	click menu item "Hide Others" of menu of menu bar item "Finder" of menu bar 1 of application process "Finder"
		--> error number -1728 from menu item "Hide Others" of menu of menu bar item "Finder" of menu bar 1 of application process "Finder"

 

 

try this instead:

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

 

try this instead:

on alfred_script(q)
	tell application "Finder" to activate
	tell application "System Events" to tell application process "Finder"
		click menu item "Hide Others" of menu 1 of menu bar item "Finder" of menu bar 1
		click menu item "Minimize All" of menu 1 of menu bar item "Window" of menu bar 1
	end tell
end alfred_script

 

 

Thanks linuslundahl, but that doesn't work either:

 

here is event track from applescript editor:

tell application "Finder"
	activate
end tell
tell application "System Events"
	click menu item "Hide Others" of menu 1 of menu bar item "Finder" of menu bar 1 of application process "Finder"
		--> error number -1728 from menu item "Hide Others" of menu 1 of menu bar item "Finder" of menu bar 1 of application process "Finder"

OSX 10.9

Alfred 2.1

Link to post
  • 6 months later...

Not working anymore for me. 

 

When not in Finder, after hitting my keyboard shortcut, a Finder window appears but "Hide" and "Hide others" are grayed out. 

When in Finder, after hitting my keyboard shortcut, "Hide" and "Hide others" become grayed out. 

 

Alfred 2.3

OSX Mavericks 10.9.2

Link to post

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...