I wanted a keyboard shortcut for applying the "[None]" character style, which you can't create the way you can for any *other* character style (so you can have a shortcut for switching to a special font/variation but not switching back -- terrific).
Someone suggesting scripting it, and sent me to a website where I found the following suggested javascript:
(copied from pdf and pasted, here and in the textedit file).
On saving this and trying to run it from the Scripts panel, I find that all it does is change the tag of the selected text to "[None]" without changing any of the text's properties. So, e.g., if you double-click a word to which a SmallCaps char style has been applied and then run the script, the highlighting in the CharStyles panel will jump from "SmallCaps" to "[None]" at the top. But the text in the document will remain in small caps, instead of defaulting to the standard font for the paragraph the text occurs in.
Does anyone know if I'm doing something wrong, or if there's a problem with the script, or even better, what an effective Applescript equivalent would be (it's years since I wrote an Applescript)?
Thanks, Graeme Forbes
[I agree with the earlier poster who found not having a virtual numeric keypad on a MacBook a nuisance. If the above script could be made to work, character styles on a MacBook could be assigned very similar shortcuts to the ones you have for them on a desktop, by assigning the keyboard shortcut to the script for the char style.]
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/InDesign/Browse/ Manage your subscription: http://www.ListSearch.com/InDesign/
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!