• 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 10 - font list, font property on the text item?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illustrator 10 - font list, font property on the text item?


  • Subject: Re: Illustrator 10 - font list, font property on the text item?
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 16 Apr 2004 20:33:11 +1000

On Apr 16, 2004, at 6:06 PM, Armin Egginger wrote:

i try to make in Illustrator a headline in different fonts to check the
best design for this headline. Illustrator should place the headline
specially for every fontstyle. I do it in Illustrator, because I need
the headline in a path. But I have some problems in the script

1. I can't get the font list from Illustrator

That's because you're asking the document, not the application. And they're called text faces in this context.

2. The text item don't accept the properties

They're called text art items, and you're trying to imbue them with properties they don't have.

3. I don't find the properties with the "font applied"

I'm not sure what you mean...

--my script
property xHeadLine : "This is the Headline - WOW"

tell application "Adobe Illustrator 10"
tell layer 1 of document 1
set xAllFonts to get fonts as list
set x to 10
set y to 10
repeat with i from 1 to (count items in xAllFonts)
set xTextItem to make new text item {contents:xHeadLine, height:15,
position:{x, y}, width:250} --font:(item i of xAllFonts)
set y to (y + 18)
end repeat
end tell
end tell

-- my script
set xHeadLine to "This is the Headline - WOW" -- why make it a property?
tell application "Adobe Illustrator 10"
set xAllFonts to text faces
tell layer 1 of document 1
set x to 10
set y to 10
repeat with i from 1 to (count of items in xAllFonts)
set xTextItem to make new text art item at end with properties {contents:xHeadLine, kind:point text, position:{x, y}}
set properties of text of xTextItem to {font:(item i of xAllFonts), size:15}
set y to (y + 18)
end repeat
end tell
end tell

--
Shane Stanley <email@hidden>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Illustrator 10 - font list, font property on the text item?
      • From: Armin Egginger <email@hidden>
References: 
 >Illustrator 10 - font list, font property on the text item? (From: Armin Egginger <email@hidden>)

  • Prev by Date: Illustrator 10 - font list, font property on the text item?
  • Next by Date: RE: make a style in Quark 4
  • Previous by thread: Illustrator 10 - font list, font property on the text item?
  • Next by thread: Re: Illustrator 10 - font list, font property on the text item?
  • Index(es):
    • Date
    • Thread