I am trying to write a script to open a Web class that is a java app at a given time each week. Then to record and save the presentation, through the menu commands on the software. And then stop the recording at the end of the designated time. I have been able to launch the application navigate through the File menu to get the record dialog box up. Where I am stuck is how to get the name and file path into the dialog box and click the ok. I also am able to get it to stop recording and quit the application.
Here is what I have so far for getting the recording set up.
tell application “java”
activate
end tell
tell application “System Events”
tell process “java”
tell menu bar 1
tell menu bar item “File”
tell menu “File”
click menu item “Record Presentation”
end tell
end tell
end tell
end tell
end tell
set myName to “ThClass”
set theDate to current date
tell application “System Events”
tell process “java”
tell front window
write myName
return
end tell
end tell
end tell
I can get as far as opening the dialog box to save the recording. Any help would be greatly appreciated.
Xochi