2 Questions - How to run a script from windows command and how to run a script within an action
Let me start by introducing the reason behind this.
I want to automate a task to have a computer converting files to ai and getting the size of the content. It then save it to a csv which is read by a software that use it to run its task and send the job to production. So one person click a button and it goes through all the steps automatically.
The software before Adobe illustrator is all automated from windows command. We only have a person going to the pc to launch an action script in batch. I made a script (based on other scripts I have found here on the forum - thanks!) to open the files in the output folder one by one and run the action script before closing it and move to the next one. But it crashes when it reaches the part where the action script reach the call for a javascript (file,script, "here.jsx").
Question 1 : How can I open an empty file + run the javascript in from windows command? I tried "path of the file" -r path of the script and it opens the file but won't run the script.
Question 2 : How can I run a javascript within an action when launched from a script (if it makes sense). If I can't run it from within the action script can I call it from somewhere else? I tried to call it from app.executeMenuCommand("script name"); without success, same for . I need to run the action and it ends by calling the javascript. I can remove the javascript call and script it in the javascript code if it works.
Goal : to save the human a boring task of being there just to run an action script between two jobs.
Thanks.
