Re: Mac InDesign CS5.5 & fonts
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
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
|
_______________________________________________
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