I'm writing a series of lectures where I use a different font to indicate code. Is there any way to assign new shortcut keys/key combinations to select the two fonts I want?
I didn't find any way to modify the style of the selection, but you could use UI scripting to select a font from the format bar.
You could assign shortcuts to the scripts with FastScripts or by creating Automator services.
I don't know any easy-simple way, but (as usual) Automator and scripting can provide some help.
The basic idea is:
so, to make this work:
into the "Run Shell Script" action enter:
All the above is sounds complicated, but it is much faster to do it as reading the above. ;) Here's what your Automator screen should look like when you're done with the above steps:
Save and name the service, for example, as "SetMyFont". Now you have a new "Service", so let's check it out:
If the service works, you now should add a global hotkey for it:
A bit complicated to set up, but it works and when you have lots of text, it can speed up the formatting a bit.
(Somebody will likely suggest much simpler solution using AppleScript directly with Keynote.)
When you've finished the work and don't need the service anymore, you can remove the "SetMyFont.workflow" from the
|show 3 more comments|
Not by default, but according to Apple's Keynote shortcut page you can use:
Better than nothing, I hope.