Skip to main content
Inspiring
Oct 2, 2024 7:28 AM UTC
Answered

How to execute one script from another in Illustrator?

It was not possible to call one script from another in Illustrator. The solutions I found do not work.
1) this solution gives an error

 

 

#include "C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Presets\en_US\Scripts\anotherscript.jsx"

 

 

 

 

2) and this one seems do nothing

 

 

var f = new File("C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Presets\en_US\Scripts\anotherscript.jsx"); f.execute();

 

 

 

 

What other ways are there?
 

 

This topic is closed to new replies. Start a new post to keep the conversation going.
jduncan
jduncanCorrect answer
Community Expert
Oct 2, 2024 2:15 PM UTC

Try the `evalFile()` method on the global Dollar ($) object. Documentation.

$.evalFile(f)

 

1 reply

jduncan
Community Expert
jduncanCommunity ExpertCorrect answer
Community Expert
Oct 2, 2024 2:15 PM UTC

Try the `evalFile()` method on the global Dollar ($) object. Documentation.

$.evalFile(f)

 

Translate