Executing Script within another Script

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
manohar
Posts: 15
Joined: April 23rd, 2010, 6:58 am

Hi there...
How to execute a script within another script..?? using "fileObj.execute()" command...

In my script I used the command like this...

Code: Select all

var myPath=new File("/C/Program Files/Adobe/Adobe After Effects CS3/Support Files/Scripts/GlobalVars.jsx");
myPath.execute();
It is working.., but it is not Executing the script... It is just opening the GlobalVars.jsx file in ExtendScript Toolkit. But I don't want that... I want to execute that script when I am executing my script..

any help please...
thanx in advance. :D

http://myaescripts.blogspot.com/
zold

Maybe something like this? (I'm not doing Windows right now):

Code: Select all

system.callSystem ('afterfx -r "/C/Program Files/Adobe/Adobe After Effects CS3/Support Files/Scripts/GlobalVars.jsx"');
Note where the single and double quotes are.
See scripting guide.
Also see viewtopic.php?f=8&t=366 for irregularities with quotes and .exe
Sorry; this is untested.
manohar
Posts: 15
Joined: April 23rd, 2010, 6:58 am

hey.. thanx for ur reply..
but that code given by you is not working for me...
any other help..!!
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

Look at "call_nested_script.jsx" that ships with AE. Its is located in the "(Instructional)" folder, a subfolder of the Script folder.
manohar
Posts: 15
Joined: April 23rd, 2010, 6:58 am

heyyyy.... thanx nab..
I got it.. its working for me...
:D :D :D
Post Reply