• 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
Font variable problem in Illustrator CC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Font variable problem in Illustrator CC


  • Subject: Font variable problem in Illustrator CC
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 13 Feb 2016 16:36:46 +1100

G’day scripters

While it’s possible to use a variable to represent a font, using Illustrator CC and InDesign CC, in vanilla Applescript code, the same code fails in ASObjC. I cannot find a way to use a variable to represent a font at all. In Acrobat, and GraphicConverter, variable named fonts are OK.

Does anyone know of a method, please. Perhaps something I’ve overlooked?

Regards

Santa


# The top three don't work, in Illustrator.

#set barCodeFont to text font "IDAutomationHC39M"
# set the text font of text range of text frame "AreaTextThree" of document 1 to text font barCodeFont
# set the text font of text range of text frame "AreaTextThree" of document 1 to barCodeFont
#
# This direct use does! Bit of a bummer.

set the text font of text range of text frame "AreaTextThree" of document 1 to text font "IDAutomationHC39M"


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: AppleScript-Users post acknowledgement
  • Next by Date: How can I re-activate an already open application?
  • Previous by thread: Re: Problem with disabling buttons & fields
  • Next by thread: How can I re-activate an already open application?
  • Index(es):
    • Date
    • Thread