Friday, October 22, 2021

#1 2021-10-01 01:28:56 am

scriptman99
Member
Registered: 2010-04-11
Posts: 6

System Events: How to access menu items of pop up buttons?

How can I access the menu items of a pop up button?

asking for the properties shows no menus or menu items.
Is this possible anyway?


tell application "System Events"
    tell process "Finder"
       
        set b to properties of pop up button of window "Finder-Einstellungen"
        return b
       
    end tell
end tell

Offline

 

#2 2021-10-01 03:20:56 am

KniazidisR
Member
From:: Greece
Registered: 2019-03-03
Posts: 2091

Re: System Events: How to access menu items of pop up buttons?

You ask for some menu item.  What is its name?  I ask, because you can get and set some preferences of Finder without GUI scripting.

Applescript:


tell application "Finder"
   tell Finder preferences
       properties
   end tell
end tell

Last edited by KniazidisR (2021-10-01 03:22:16 am)


Model: MacBook Pro
OS X: Catalina 10.15.7
Web Browser: Safari 14.1
Ram: 4 GB

Offline

 

#3 2021-10-01 07:33:49 am

scriptman99
Member
Registered: 2010-04-11
Posts: 6

Re: System Events: How to access menu items of pop up buttons?

In fact, i am only trying with the Finder. It is meant for general use.

But there seems to be no properties for that. Also the Accessibility inspector gets no info...

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)