Jump to content

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 comment

 

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 comment

 

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 comment
  • 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 comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...