• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Illustrator adds an extra return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illustrator adds an extra return


  • Subject: Re: Illustrator adds an extra return
  • From: "Leah Zagreus" <email@hidden>
  • Date: Tue, 23 Jan 2001 10:54:48 -0800

Hello,

I got the code from Jason and verified that there is indeed a bug
here. Thank you for reporting it! Apparently there's a problem with
setting the position of the text art item prior to changing the font
of the text.

I'll investigate the bug, but meanwhile here's a workaround. Do the
position change after setting the font. So, change this:

---------------------------------

tell application "Adobe Illustrator. 9.0.2"
activate
tell document 1
set wwwcomText to make new text art item at beginning
with properties ,
{contents:"www.eMarketer.com", name:"wwwcom",
position:{((8.5 * 72) - 374) / 2, (11 * 72) / 2}, kind:point text}
set properties of text of wwwcomText to
{font:"VectoraLH-Roman", size:36, stroked:false, filled:true}

set font of text from character 5 to character 13 of
wwwcomText to "VectoraLH-Black"

end tell
end tell


---------------------------------


To this:

---------------------------------

tell application "Adobe Illustrator. 9.0.2"
activate
tell document 1
set wwwcomText to make new text art item at beginning
with properties ,
{contents:"www.eMarketer.com", name:"wwwcom",
kind:point text}
set properties of text of wwwcomText to
{font:"VectoraLH-Roman", size:36, stroked:false, filled:true}

set font of text from character 5 to character 13 of
wwwcomText to "VectoraLH-Black"

set properties of wwwcomText to {position:{((8.5 *
72) - 374) / 2, (11 * 72) / 2}}

end tell
end tell

---------------------------------


Hope this helps.

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Leah Zagreus
Member of Technical Staff
Illustrator Quality Engineering
email@hidden
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  • Prev by Date: Re: Desktop question
  • Next by Date: Re: Apple Data Detectors & 9.1
  • Previous by thread: Illustrator adds an extra return
  • Next by thread: script attaching folder actions
  • Index(es):
    • Date
    • Thread