G’day scripters
I’ve just upgraded to CS4, and a script I have that worked in CS3 crashes when setting the properties of text in illustrator CS4.
I’ve tried the included illustrator script example, and it bombs too.
Anyone have any thoughts on what might be a workaround, or answer please.
Regards
Santa
tell application "Adobe Illustrator"
activate
if (count of documents) is 0 then
make new document
end if
-- Create a rectangle that will be used as the first text area
set theRectanglePath to make new «class shRC» at beginning of document 1 ¬
with properties {«class paPs»:{100, 200}, «class pSHh»:40, «class pSHw»:200}
-- Create the area text object
set theText to make new «class cTXa» at beginning of document 1 ¬
with properties {name:"T1", «class cxDT»:«constant eTXte062», «class cTXp»:theRectanglePath, «class pCNT»:"This is a test string to see how text flows through three boxes."}
-- Set the characteristics of the text associated with the newly created text frame
set properties of every word of the text of theText to ¬
{«class aiFC»:{«class RED »:0, «class GREN»:0, «class BLUE»:255}, «class cTXf»:«class cTXf» "Times-Roman", size:24}
end tell
Model: 2007 Al. iMac
Browser: Safari 525.27.1
Operating System: Mac OS X (10.5)