applescript
Posted: February 9th, 2007, 8:12 pm
I often think that some of the simplest things can be the most annoying.
Here is a prime example -
I want to launch a specific ae script from an applescript, but the DoScript command seems to be looking at the file as a script rather than a file of a script. That's sounds confusing so here's the script -
on open these_items
tell application "Adobe After Effects 7.0"
launch
activate
open these_items
set thefile to "/Rocket_1_g5/Applications/Adobe After Effects 7.0/Scripts/DemoPalette.jsx"
DoScript thefile
end tell
end open
The error I get is -
Unable to execute script at line 1.Expected:;
I tried the version of the similar applescript on page 8 of the ae scripting guide which works just fine, but I don't want the user to choose the file, I want to specify the file in the script.
I would really appreciate any help,
Thanks,
Stephen.
Here is a prime example -
I want to launch a specific ae script from an applescript, but the DoScript command seems to be looking at the file as a script rather than a file of a script. That's sounds confusing so here's the script -
on open these_items
tell application "Adobe After Effects 7.0"
launch
activate
open these_items
set thefile to "/Rocket_1_g5/Applications/Adobe After Effects 7.0/Scripts/DemoPalette.jsx"
DoScript thefile
end tell
end open
The error I get is -
Unable to execute script at line 1.Expected:;
I tried the version of the similar applescript on page 8 of the ae scripting guide which works just fine, but I don't want the user to choose the file, I want to specify the file in the script.
I would really appreciate any help,
Thanks,
Stephen.