• 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: 2551 <email@hidden>
  • Date: Fri, 26 Jun 2015 16:39:42 +0700


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
tell application "Finder" to get the name of someDiskThatDoesntExist
on error errmsg
set m to text of errmsg
end try
words of 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

  • Follow-Ups:
    • Re: Mac InDesign CS5.5 & fonts
      • From: "Houston, Brad" <email@hidden>
    • Re: Mac InDesign CS5.5 & fonts
      • From: Yvan KOENIG <email@hidden>
    • Re: Mac InDesign CS5.5 & fonts
      • From: Shane Stanley <email@hidden>
References: 
 >Mac InDesign CS5.5 & fonts (From: "Houston, Brad" <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: Re: Mac InDesign CS5.5 & fonts
  • Index(es):
    • Date
    • Thread