I’m trying to create a script to basically open a dvd on it’s insertion.
I need to be inside a programs browser to find the cd/dvd but I don’t know how to get applescript to find the right mounted drive.
The program doesn’t have a dictionary.
This is what I have so far.
tell application "anycdprog"
activate
delay 5
tell application "System Events" to keystroke (ASCII character 29) --right arrow
end tell
there are 2 problems with this script.
The delay is non specific. It would be great if the program could wait for the browser window to open.
Also the right arrow drops me into the proper window but there are any number of varying numbers of mounted drives.
I could use the down arrow but I don’t know where to stop to make it always work.