Copy link to clipboard
Copied
Hi All
I'm new in scripting for illustrator
In Applescript I can use "do javascript" to run an external JS file.
How can I do the same thing in VB and JS?
thanks
Ivan
Copy link to clipboard
Copied
the VB syntax is
appRef.DoJavaScriptFile "C:\Users\<your name>\Documents\Adobe Scripts\yourJSfile.jsx"
there's no DoJavaScript in JS
Copy link to clipboard
Copied
You may be able to…
$.evalFile(File('~/Desktop/AlertMeNow.jsx'));
Copy link to clipboard
Copied
Works, Mark. Great call to get a doScript possibility for ExtendScript. Just tried it with the Zoom script that Jongware rewrote.
Copy link to clipboard
Copied
Larry, I have recently built myself a couple of panels for Bridge… Want to build my workflows with this being the central point. Im still playing but I just use this inside of each buttons onclick handler to a different script AI, PS ID… Appears to work OK… Glad you like it but don't thank me Adobe put it there… If it were my doing the thing would… ¡$.work();
Find more inspiration, events, and resources on the new Adobe Community
Explore Now