I have written the following automator script which will be saved as a service.
I am trying to launch a program which is a windows program running under crossover.
The launch application works find. I then pause 10 seconds to wait for the program to be fully loaded then I try to run the following applescript.
on run {input, parameters}
set the_application to {path to frontmost application as Unicode text}
tell the_application
set bounds of window 1 to {1, 1, 1281, 721}
end tell
return input
end run
I get the following error messages in the log:
Launch Application completed
Pause completed
Run AppleScript failed - 1 error
Can’t get window 1 of (“Macintosh HD:Applications:RootsMagic.app”)
First I need to get the service running then is there a way to pause until the application is loaded rather than waiting for a time period?
Thanks for any help or suggestions.
Roger