Re: GUI script a popup button
Re: GUI script a popup button
- Subject: Re: GUI script a popup button
- From: Mitchell L Model <email@hidden>
- Date: Fri, 12 Aug 2016 12:26:47 -0400
Yeah, this is pretty much what I had that I have been using for many years. It stopped working when I upgraded from 10.8 to 10.11. I'll do some debugging to compare yours with mine, but setting it directly through system events (which never, ever would have occurred to me) is the way to go. And I need to loop over the selections, but that is trivial.On Aug 11, 2016, at 9:33 PM, Christopher Stone < email@hidden> wrote:
------------------------------------------------------------------------------------------- # Manipulate the Open-With menu in the Finder with GUI-Scripting. -------------------------------------------------------------------------------------------
tell application "System Events" tell application process "Finder" tell menu 1 of menu bar item "File" of menu bar 1 click
tell menu item "Open With" click delay 0.1 -- Adjust delay as necessary to allow the “Open With” menu to populate.
tell menu 1 select (first menu item whose name starts with "The Archive Browser") end tell
end tell end tell end tell end tell
|
_______________________________________________
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