The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Script: Quicker image cropping (http://forums.omnigroup.com/showthread.php?t=23129)

RobTrew 2012-01-05 12:21 AM

Script: Quicker image cropping
 
5 Attachment(s)
A faster workaround for the lack of a crop tool in OG5.

If you save this script as a compiled [I].scpt[/I] file and assign it to a keystroke, you will find that:[LIST=1][*]The first click produces a transparent cropping rectangle,[*]you can then re-size the rectangle if necessary, positioning it over a full-sized image.[*]the second click will crop the image and remove the cropping rectangle.[/LIST][LIST][*]The size of the cropping rectangle is remembered between uses, in case you want to make several crops of the same size.[*]Neither cropping rectangle nor image need to be selected for the script to work.[/LIST]
(A re-working of an approach used in Bill Van Hecke's useful [URL="http://forums.omnigroup.com/showthread.php?t=10240"]script[/URL]. The aim is to cut out a few of the steps involved in preparing and sizing a transparent rectangle, and to drop the need to select both image and rectangle – I kept finding that I was forgetting to extend the selection to the image).

(The .zip contains both [I].applescript[/I] and [I].scpt[/I] versions. The [I].scpt [/I] copy was compiled on 10.6. If you are using another version of OS X you will need to load the [I].applescript[/I] copy in Applescript Editor, and Save As in [I]script[/I] format. The text version, with an .applescript extension, will not remember the size of the cropping rectangle between uses.)

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


All times are GMT -8. The time now is 12:38 PM.

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