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

how to call a action in javascript

New Here ,
Mar 17, 2009 Mar 17, 2009
hi..

am a learner..

can anyone guide me how to call a action in Illustrator CS2 using javascript

thanks in advance,

Jasy
TOPICS
Scripting
3.2K
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
LEGEND ,
Mar 17, 2009 Mar 17, 2009
Can't. You're supposed to be able to do the inverse: call a script by using Insert Menu Item in an Action. But it's been broken for four versions now.

JET
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 Beginner ,
Apr 06, 2009 Apr 06, 2009

So the first half of the statement at the bottom of p.48 of the CS2 Javascript scripting reference --

"A script can execute an action, but actions cannot execute scripts"

-- is a lie...?

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
Guest
Apr 20, 2009 Apr 20, 2009

You can't do it in javascript, the DoScript call is missing from the Application API. You can call actions and javascript scripts from VB. The workaround is to use VB to call the action and your javascript. BTW, anyone from Adobe want to comment on why this is so ?

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 Beginner ,
Oct 15, 2009 Oct 15, 2009

The whole point of using Javascript was that it is cross-platform. I can run the same Javascript on our Macs and PCs. You mean to tell me thet if I want to run Actions, I have to create an Applescript AND a VBScript wrapper in order to continue to use our existing Javascripts? This is total BS! How can this still be true after three revs of the scripting engine?!

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 Beginner ,
Aug 02, 2010 Aug 02, 2010
LATEST

Yep!

Maybe they prefer Apple. Maybe most of their buyers comes from that side.  Maybe they dont know how to script.

Java would have been to hard for most of us. Javascript is everywhere on the web ... pages.

After so many years, they did not put the effort and money . This scripting idea is still for ' amateur' and to compensate for I dont know what.

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