The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   page numbers without shared layers (http://forums.omnigroup.com/showthread.php?t=20353)

jha 2011-03-08 01:11 PM

page numbers without shared layers
 
I have Omnigraffle 5 installed, not pro.

I am trying to insert page numbers.

All of the posts I see tell me to insert the page number variable into the shared layer, but b/c I dont have pro, I don't have shared layers.

how do I do this?

jha 2011-03-08 01:20 PM

shared layers menu item not in every location
 
I guess I have shared layers -- but the Shared Layer menu item is only displaying when I right-click on an actual canvas, not on the canvas or layer in the canvas sidebar. This menu item is also nowhere to be seen from the Edit menu.

jha 2011-03-08 02:14 PM

so not impressed with this journey...
 
Okay, so I guess I found a bug that allows v5 non pro folks to add a shared layer -- but I can't edit the shared layer b/c it is a v5 pro feature only.

[url]http://forums.omnigroup.com/showthread.php?t=16410&highlight=shared+layers[/url]

So how am I supposed to add page numbers to all canvases without a shared layer?

Am I supposed to add a page number variable manually to each canvas?

whpalmer4 2011-03-08 03:16 PM

Put in your page number via the Edit->Insert Variable command on one of the pages. Style it as desired. Now select that graphic, and do Edit->Copy As->AppleScript to get a description of how to create and place the graphic on the page. Open up the AppleScript Editor application. Paste in the following script:

[code]
tell application "OmniGraffle 5"
repeat with myCanvas in canvases of front document
tell myCanvas
make new shape at end of graphics with properties {fill:no fill, draws shadow:false, size:{7.0, 14.0}, side padding:0, autosizing:full, vertical padding:0, origin:{284.5, 676.0}, text:{text:"<%#%>", alignment:center}, draws stroke:false}
end tell
end repeat
end tell


[/code]

Replace the line "make new shape ..." with the corresponding line from your document. Execute the script and you'll have that graphic inserted into each page. Might be smart to save a copy of your document before doing this to make it easier to back the change out if you don't like it.

This will copy as many objects as you select, so you could put in a header and so on at the same time, or a page number that showed the total number of pages as well as the page number, etc.


All times are GMT -8. The time now is 03:55 AM.

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