• 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: Mac InDesign CS5.5 & fonts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac InDesign CS5.5 & fonts


  • Subject: Re: Mac InDesign CS5.5 & fonts
  • From: "Houston, Brad" <email@hidden>
  • Date: Fri, 26 Jun 2015 15:43:46 +0000
  • Thread-topic: Mac InDesign CS5.5 & fonts

Thanks Phil, that is a useful trick. I’ll remember it.

Brad

From: 2551 <email@hidden>
Date: Friday, June 26, 2015 at 2:39 AM
To: Brad Houston <email@hidden>
Cc: Applescript Users <email@hidden>
Subject: Re: Mac InDesign CS5.5 & fonts


On 26 Jun 2015, at 01:50, Houston, Brad <email@hidden> wrote:

Though the error includes the name...I cannot seem to get an inactive font’s name in any form (family, style, full, native, etc). Even if I can’t replace it I would like to record that font X was skipped.

I understand you solved your problem, but I wanted to pass on a trick Yvan showed me on this list some time ago which I've employed fruitfully dozens of times since. Whenever you get an error message containing the information you want but which doesn't seem accessible, you can always salvage the information in that error message and use it elsewhere in your script. Sometimes, you might want to deliberately throw an error if that's the only way you can get the information into a variable. Simple example:

set m to ""
try
tellapplication "Finder" to getthe name of someDiskThatDoesntExist
onerror errmsg
set m to text of errmsg
endtry
wordsof m

Result:

{"The", "variable", "someDiskThatDoesntExist", "is", "not", "defined"}



Best

Phil

DisplayDroid beta (a lightweight script editor and automation tool) is now available for free download. More info on sqwarq.com/displaydroid
OSXClock - big, beautiful alarm clock and timer for your mac. More info on sqwarq.com/osxclock

http://applehelpwriter.com
http://sqwarq.com - apps for OS X & iOS










 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Mac InDesign CS5.5 & fonts (From: "Houston, Brad" <email@hidden>)
 >Re: Mac InDesign CS5.5 & fonts (From: 2551 <email@hidden>)

  • Prev by Date: Re: Double Tell - Tell by Variable Question
  • Next by Date: Re: Double Tell - Tell by Variable Question
  • Previous by thread: Re: Mac InDesign CS5.5 & fonts
  • Next by thread: Finder "duplicate" requirements
  • Index(es):
    • Date
    • Thread