The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniOutliner 3 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=9)
-   -   Keyboard shortcut for strikethrough formatting? (http://forums.omnigroup.com/showthread.php?t=26309)

Ashcroft 2012-10-17 04:51 AM

Keyboard shortcut for strikethrough formatting?
 
Hi there,

it seems to me that quick strikethrough formatting has been on peoples' wishlist for many years but still hasn't been implemented. See:
[url]http://forums.omnigroup.com/showthread.php?t=792&highlight=strikethrough[/url]
[url]http://forums.omnigroup.com/showthread.php?t=7841&highlight=strikethrough[/url]

I'm puzzled to find an entry in the Format menu for contour / outline formatting (Who actually uses that?) but none for strikethrough formatting. Anyway, I'm trying to close this gap on my own via AppleScript. I already got my hopes up, first after skimming through OO's AppleScript dictionary and a second time after reading this thread: [url]http://forums.omnigroup.com/showthread.php?t=22100[/url]

Unfortunately, I'm not sure how I could adapt that code to apply it on the current selection. Would I need to create an system-wide Automator service?

Any help would be greatly appreciated.

RobTrew 2012-10-17 12:36 PM

[QUOTE=Ashcroft;116172]I'm not sure how I could adapt that code to apply it on the current selection.[/QUOTE]

I hope someone will correct me if I'm overlooking something, but I don't think that the OO3 Applescript library gives us access to the selected text within a cell.

(Applying a strikethrough to the entire cell topic of a row, for example - is less difficult).

You might be able to construct a Keyboard Maestro macro which could navigate its way through the Inspector dialogs (by recognising icons and placing well-aimed and well-timed clicks), and thereby apply a strikethrough to the current selection, but I'm not sure it would be very fast (bordering on Heath Robinson territory, but possibly diverting )

Others may spot a smarter route

[COLOR="White"]--[/COLOR]

DerekM 2012-10-17 12:46 PM

[QUOTE=Ashcroft;116172]Hi there,

it seems to me that quick strikethrough formatting has been on peoples' wishlist for many years but still hasn't been implemented. See:
[url]http://forums.omnigroup.com/showthread.php?t=792&highlight=strikethrough[/url]
[url]http://forums.omnigroup.com/showthread.php?t=7841&highlight=strikethrough[/url]

I'm puzzled to find an entry in the Format menu for contour / outline formatting (Who actually uses that?) but none for strikethrough formatting. Anyway, I'm trying to close this gap on my own via AppleScript. I already got my hopes up, first after skimming through OO's AppleScript dictionary and a second time after reading this thread: [url]http://forums.omnigroup.com/showthread.php?t=22100[/url]

Unfortunately, I'm not sure how I could adapt that code to apply it on the current selection. Would I need to create an system-wide Automator service?

Any help would be greatly appreciated.[/QUOTE]

Are you just looking for a way to apply strikethrough? Not have keyboard access to different style options of strikethrough? The easiest option would be to create a named style for it and apply it using the keyboard shortcut for those, either the function keys or control + number (setting in prefs).

Created named styles is only available with the Pro version.

Ashcroft 2012-10-18 01:28 AM

Thanks for your help so far, guys!

I've created a name style. Applying it with Ctrl-4 or F4 works fine.

Now I'm trying to remap this action to my favorite hotkey (Cmd-Y) with Keyboard Maestro. Although KM executes the macro just fine, OO doesn't seem to react to the simulated keystroke (which is strange because it does so in other Keyboard Maestro macros. For instance, I can switch the sidebar with F9 which tells KM to simulate Cmd-Ctrl-T).

Any ideas?

[I](By the way, if there's no solution to this, I wouldn't mind going back to the AppleScript approach. If I can't access selections but only entire cells, that's alright with me. GUI-Scripting the font inspector is out of the question though, because that seems too unreliable.)[/I]


All times are GMT -8. The time now is 06:54 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.