Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87561

Can I pass arguments to an AE script from command line?

$
0
0

I have a fairly simple question.

 

Is it possible to pass an argument to an adobe Extendscript using a command line?

 

I work for a medium sized facility and we have a scripting language mismatch between art programs and shot tracking software.

I often have to use the command line to trigger a python script from a .jsx and i can pass arguments to it fairly easily.

 

python c:\Spam.py arg0 arg1 arg 2

 

i know i can run an instance of a script from the command line in a a new AE window

 

afterfx.exe -m -r c:\test.jsx

 

I know i can write out a .csv file with python and call theat .csv in the AE script.

HOWEVER, many people will be using this script. Utilizing a single .ini/.txt/.csv file will invite the change of data being overwritten before it is read.

Is there a way in CC 2014 to be able to pass the name of a specific file as an argument to the script so i can reference a unique data set each time that script is called.

 

afterfx.exe -m 0r c:\test.jsx "x=c:\test\thisFile.csv"

(the above does not work, btw)

 

and if so what is the syntax to assign the argument to a variable?


Viewing all articles
Browse latest Browse all 87561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>