Skip to main content
April 29, 2011
Question

Applescript : Why!?!

  • April 29, 2011
  • 1 reply
  • 584 views

I am trying to use Applescript to launch a script in AE but..... I keep getting an error. 

I've searched all over, and found that others are getting the same problem, but I can't find the solution.

Here's the code...

tell application "Adobe After Effects CS4"

set newScript to "Users:session:Desktop:test.jsx"

open newScript

end tell

Somebody? Anybody?

Thanks,

Tyler

This topic has been closed for replies.

1 reply

Participant
May 6, 2011

I beleive it's

-- assigns scriptPath to proper location

set scriptPath to (path to desktop folder from user domain) & "jscript.jsx" as string

try

     tell app "Abobe After Effects CS4"

          do javascript scriptPath

     end tell

on error errormsg

     log errormsg

end tell

Of course I'm not sure what you are tring to do...

You can really ignore everything above and replace "open" with "do javascript".

tell application "Adobe After Effects CS4"

     set newScript to "Users:session:Desktop:test.jsx"

     do javascript newScript

end tell

May 10, 2011

Thanks Dustin!