Skip navigation
Currently Being Moderated

call actions through javascript

May 2, 2012 6:21 AM

Hi Everyone,

 

Currently i'm doing automations for Adobe Illustrator CS4. I have created some actions due to the limitations of scripting in Illustrator. I need to call this actions through javascript.

But in applescript i can able to call the actions by using the do script method.

 

Can anyone help me in this regard.

 

 

Thanks in advance

Thiyagu

 
Replies
  • Currently Being Moderated
    May 2, 2012 7:00 AM   in reply to dhishok

    Sorry NO access… AS & VB only…

     
    |
    Mark as:
  • Currently Being Moderated
    May 4, 2012 1:37 PM   in reply to dhishok

    Sorry I can't… Im mac only so I use either Adobe's ESTK or AppleScript… It should just be 2 name strings though… Sort of 'do script actionName of actionSetName' don't know why it's called do script? Others here can help you though…

     
    |
    Mark as:
  • Currently Being Moderated
    May 14, 2012 6:29 AM   in reply to dhishok

    May this can help you. VBS version:

     

    Set appRef = CreateObject("Illustrator.Application")

    'action name "Convert to grayscale", action set"action1"'
    appRef
    .DoScript "Convert to grayscale", "action1"


    'sleep 2 sec, waiting for the action complete, this is needed if you want to do something else'
    WScript.sleep 2000

    ' then do something else here

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points