Skip to main content
Known Participant
July 8, 2009
Question

Executing Actions thru Applescript only executes the first step in action! CS3 (AS)

  • July 8, 2009
  • 1 reply
  • 3058 views

Hi All,

Created an applescript to execute a pre-recorded action from illustrator. When i ran the script, actions only execute the first step in the recorded action.

ACTION: Created an action called "TestScript" under "Default Actions" which contains --> Select All --->Create Outlines. This action will select all the text frames in the document and Outlines all the text in the selected text frames.

APPLESCRIPT:

tell application "Adobe Illustrator"

activate

do script "TestScript" from "Default Actions"

end tell

Problem: When i run the applescript, script executes the action, until "Select All", it is not executing the second statement which is Create Outlines.

I might be missing some simple steps here. Any advise would be appreciated.

Rgds

JaiM

This topic has been closed for replies.

1 reply

MarkWalsh
Inspiring
July 8, 2009

If your goal is to convert text to outlines, you'd be better doing it all in Applescript instead of calling an action.

JaisanMAuthor
Known Participant
July 8, 2009

Thanks Mark. Converting all text in the document to outline is part of my goal, i have to do few things before and after converting text to outline. I did try using Applescript to do this and had a major problem which freezes my illustrator.

When i run the applescript with a document containing normal text frame, everything works fine, but when i tried to use the same script when the text frame contains variable data, it freezes my illustrator.

Hence trying to use Actions?

Any advise will be much appreciated.

Thanks

JaiMS

MarkWalsh
Inspiring
July 8, 2009

I haven't run into any problems myself using applescript to convert to outlines, but I haven't tried it with variable data.

What is the code you were using?