The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Keyboard shortcut for distributing shapes Thread Tools Search this Thread Display Modes
I use the "spread evenly" buttons in the "Alignment" palette all the time to evenly space out shapes. I was wondering if anyone has found a way to attach a keyboard shortcut to these buttons? They don't appear as menu commands anywhere, and I can't find a reference to them in OmniGraffle's AppleScript dictionary.

Any tips would be hugely appreciated. Thanks!
 
The latest update of Keyboard Maestro allows you to make a tiny screendump of an icon, check whether that icon is on the screen, click it if it's there, and branch off to choose a menu item and so on if it isn't.

(You would also need a snippet of Applescript, to be run by Keyboard Maestro, to check whether any shapes were selected before proceeding).

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-05-24 at 08.00.17.png
Views:	1028
Size:	51.2 KB
ID:	2401  
 
A quick test shows that it works reasonably fast if you strip it down to something which only works if the Alignment inspector is already open.



(The pair of illustrative macros attached below aim to be more ambitious and test if the inspector is ready, and summon it if not, but they end up searching for the image 3 times, and I find them noticeably slow ... Over-engineered, in short. Sometimes keeping it simple really does work better :-)
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-05-24 at 09.26.54.png
Views:	1048
Size:	53.8 KB
ID:	2403  
Attached Files
File Type: zip GraffleSpread.kmmacros.zip (22.7 KB, 508 views)
 
The quickest of all, if you are prepared to keep the inspector positioned at the top left of the screen, while you do your graphic editing,



is a macro which simply clicks a fixed position on the screen:

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-05-24 at 09.41.20.png
Views:	976
Size:	52.1 KB
ID:	2405   Click image for larger version

Name:	Screen Shot 2012-05-24 at 09.41.03.png
Views:	945
Size:	26.3 KB
ID:	2406  

Last edited by RobTrew; 2012-05-24 at 01:27 AM..
 
System Preferences -> Keyboard -> Application Shortcuts

Just make sure you have the exact case of the menu item you want a shortcut for. When you have set it, it will display in the menu so you can confirm it.
 
Simon, the items in question appear in no menu and thus the Application Shortcuts tab is of no help here. Keyboard Maestro looks intriguingly complex, however :-)
 
@RobTrew thanks for the tip on Keyboard Maestro. I had no idea it could automate based on such complex criteria. Definitely good to know.

For now I don't think it's worth it to me to buy & run it simply for this one shortcut. However, now I know some of what it's capable of I may find enough other uses to justify it.
 
Quote:
Originally Posted by whpalmer4 View Post
Keyboard Maestro looks intriguingly complex, however :-)
One of the larger Swiss Army knives :-)

It seems a reasonably basic design goal to make all functions accessible to the keyboard.

Software that is subject to the cross-platform discipline tends to do better on this (all palette buttons in Adobe Illustrator, for example, have a matching single-letter code, sometimes shifted).

(The difference is that the Adobe packages have to survive in the MS Windows culture, which for all its ugliness and other failings, is much stronger and more consistent on keyboard accessibility. Menu items generally have predictable (or at least mnemonic) keyboard assignments, and blind patches are rather rare .... )

A goal for OG 6 ?

Mice have their place, but hunting and pecking is not what they are good for – it adds pointless friction to the flow of work to have to use them for functions like this.
 
Emailed support to request the addition of a menu item so that a keyboard shortcut can be assigned to this function. Here's to hoping they decide this is worthwhile in a future release.
 
I'd like to bring this topic back up as it has been a year already with no official solve. It seems like a pretty straightforward fix on Omni's part so I'd really like to push for it as it would speed up my workflow a ton to be able to hotkey vert and horz spreads.

PLEASE ASSIGN THE SPREAD EVENLY OPTIONS TO A MENU OPTION SO THAT WE MAY HOTKEY THEM

Thanks!
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Keyboard Shortcut acollins OmniFocus 1 for Mac 1 2013-03-13 09:38 PM
Keyboard Shortcut chriswitt OmniFocus 1 for Mac 2 2013-01-14 12:12 PM
Keyboard shortcut to get to Inspector? dsmccormick OmniFocus 1 for Mac 4 2010-07-01 03:33 AM
Due Today keyboard shortcut NightLion OmniFocus 1 for Mac 7 2010-03-25 06:06 AM
Keyboard shortcut? Jody Severson OmniOutliner 3 for Mac 1 2008-05-29 09:43 AM


All times are GMT -8. The time now is 01:21 PM.


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