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 --%26gt; Select All ---%26gt;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
Executing Actions thru Applescript only...If your goal is to convert text to outlines, you'd be better doing it all in Applescript instead of calling an action.
Executing Actions thru Applescript only...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
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?
Yes, I am facing issues only when the document contains variable data, if not, the script works fine. See the code below...
''I have some codes here to process variable data''
tell application ''Adobe Illustrator''
set countLayers to count every layer of document 1
repeat with i from 1 to countLayers
if visible of layer i of document 1 is false then
set visible of layer i of document 1 to true
end if
if locked of layer i of document 1 is true then
set locked of layer i of document 1 to false
end if
end repeat
convert to paths (every text frame of document 1)
end tell
''I have some codes here''
No comments:
Post a Comment