Hi, I have an issue opening a file with applescript, The app is loaded but does not allow to open the type of file directly by double-clicking on it, it has to be opened through the menu bar and then "load configuration". Code works fine up to when comes the time to selct the actual file to open in the Finder "open" window that popped up. How do I specify to AppleScirpt how to go get the file I look for?
Here is the code I have so far for this part :
Thanks
Here is the code I have so far for this part :
Code:
tell application "System Events"
tell application process "JackPilot"
click button "Routage" of window 1
click menu item "Charger la configuration..." of menu 1 of menu bar item "Fichier" of menu bar 1
get file of window 1 -- alias "Macintosh HD:Users:marc-andre:Desktop:test.jks" ""
end tell
end tell
Thanks
Last edited: