script help
script help
- Subject: script help
- From: Omega Clay <email@hidden>
- Date: Thu, 16 Feb 2006 13:35:49 -0500
I prostrate myself to the list; I'm in complete ignorance of scripts. Yes, I should get a book.
The following script was generously posted to another list; it's worked fine for me, now I need to adjust it. The script changes all instances of AGaramond lining figures in a Quark document (350-page book) to old style figures. When it does this, it also changes the (superscript) note numbers to old style.
I now have an editor who loathes note numbers as old style, & wants them lining; going so far as to change their house style ...
Can this script be altered to change all numbers to old style EXCEPT the superscript note numbers?
"AGaramond" gives me lining figures, "AGaramond RegularSC" gives me old style.
Thanks for ANY suggestions.
Omega Clay
tell application "QuarkXPress"
activate
tell document 1
repeat with i from 1 to (get count pages)
tell page i
try
set (font of every character of every text box whose ¬
font is "AGaramond" and (it is in "1234567890")) to "AGaramond RegularSC"
end try
show -- This is here because it takes a long time to do a long document
--and it helps to know that the script is actually working
end tell
end repeat
display dialog "Script completed successfully!"
end tell
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden