• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Finder > Tags.. access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder > Tags.. access


  • Subject: Finder > Tags.. access
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Sun, 23 Dec 2018 10:46:34 +0900

For some reason, Mojave has decided that on my machine I could not assign a
shortcut to the Finder > Tags... menu item anymore. It used to be
Shift+Command+T.

Problem is that I use that item constantly in my workflow and having to use the
mouse to get there is a pain.

I tried to create a small script/app that I'd call from Spotlight, but that
requires UI scripting and I really not good at that...

For one, I'm trying to find the item itself, so I have this small routine that
gives me names:

tell application "System Events" to tell process "Finder"
        set frontmost to true
        return name of menu item 45 of menu 1 of menu bar item 3 of menu bar 1
end tell

Problem is that item 45 seems to correspond to the green dot displayed in the
menu, then I have item 46 that doesn't have a name and then no item 47...

Then, clicking on some items there produces results, or not, depending on the
item:

tell application "System Events" to tell process "Finder"
        set frontmost to true
        click menu item 1 of menu 1 of menu bar item 3 of menu bar 1
end tell

This works: I get a new Finder window.

tell application "System Events" to tell process "Finder"
        set frontmost to true
        click menu item 45 of menu 1 of menu bar item 3 of menu bar 1
end tell

This doesn't work: I don't get to change the selected file tag.


What's wrong with me ?!?

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Finder > Tags.. access
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: It looks like I'm back...
  • Next by Date: Re: Finder > Tags.. access
  • Previous by thread: Re: It looks like I'm back...
  • Next by thread: Re: Finder > Tags.. access
  • Index(es):
    • Date
    • Thread