Skip to main content
Inspiring
October 2, 2024
Answered

How to execute one script from another in Illustrator?

  • October 2, 2024
  • 1 reply
  • 167 views
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 has been closed for replies.
Correct answer jduncan

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

$.evalFile(f)

 

1 reply

jduncan
Community Expert
jduncanCommunity ExpertCorrect answer
Community Expert
October 2, 2024

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

$.evalFile(f)