Sunday, April 21, 2019

#1 2019-02-19 09:42:44 am

rocknpools
Member
Registered: 2019-02-19
Posts: 1

How do I press the button "Open" of a file picker after selecting a fi

Hi guys.
Here is my AppleScript to open Moneywiz and automatically select the "Import" menu item.

Applescript:


tell application "System Events"
tell process "MoneyWiz 2"
set frontmost to true
click menu item "Import from a file" of menu of menu item "Import" of menu "File" of menu bar 1
end tell
end tell

A window with file picker is opened when I run this code and I would like to select the file in the picture below and click the "open" button.

Any useful hints?

window

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)