KM doesn't find radio button (but used to)

Trying to click on the down arrow portion of PDF button in attached image. It used to work simply by using "Press Button" labeled as "PDF". Now it doesn't find at all, let alone click on the right portion. There is no menu work-around.

Any ideas on how to get this to work?

Thanks
(Mac Ventura OS)

You could use AppleScript to click it with System Events... the following worked for me (also on Ventura)...

AppleScript to click PDF menu in print dialog window (click to expand/collapse)
tell application "System Events"
	
	# get frontmost application name
	set activeApp to name of application processes whose frontmost is true
	set activeApp to item 1 of activeApp as text
	
	# tell that application to click the PDF dropdown menu
	tell application process activeApp
		click menu button 1 of group 2 of splitter group 1 of sheet 1 of window 1
	end tell
	
end tell

↓ Below is the action you can import to your macro for testing. ↓

Action Screenshot (click to expand/collapse)

Execute an AppleScript.kmactions (2.2 KB)

-Chris

Chris has probably got you covered here, but another possibility might be tabbing to the button and hitting space bar. I don't know which app you're in but it might be another option.

Thank you. Having no experience with these scripts, can you please tell me, do I need to change any of the words to the name of the program in question (PDF Expert)?

FWIW, I just checked and this works.

Here's an example that works in Preview:

Tab to PDF Button.kmmacros (21 KB)

Macro screenshot

1 Like

You shouldn’t, since the first portion of the AppleScript determines what app is frontmost and then interacts with said app. However, AppleScript can be finicky, so YMMV. If it doesn’t work, let me know.