Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[ILCS5] doJavascript in VB and JS

Explorer ,
Apr 01, 2011 Apr 01, 2011

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

TOPICS
Scripting
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Apr 01, 2011 Apr 01, 2011

the VB syntax is

appRef.DoJavaScriptFile "C:\Users\<your name>\Documents\Adobe Scripts\yourJSfile.jsx"

there's no DoJavaScript in JS

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 01, 2011 Apr 01, 2011

You may be able to…

$.evalFile(File('~/Desktop/AlertMeNow.jsx'));

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 01, 2011 Apr 01, 2011

Works, Mark. Great call to get a doScript possibility for ExtendScript. Just tried it with the Zoom script that Jongware rewrote.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 01, 2011 Apr 01, 2011
LATEST

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();

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines