Hi, I'd like to write an AppleScript which will show the next Canvas. Specifically, I'll want it to work in presentation mode. I haven't been able to figure out how. Can anyone help? Thanks!
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!
|
|
FAQ | Members List | Calendar | Today's Posts | Search |
Show next Canvas using AppleScript? | Thread Tools | Search this Thread | Display Modes |
Member
2010-02-12, 08:26 AM
Hi, I'd like to write an AppleScript which will show the next Canvas. Specifically, I'll want it to work in presentation mode. I haven't been able to figure out how. Can anyone help? Thanks!
Post 1
|
Well, you could use the Action Inspector's ability to simply switch to the next canvas (or a specific canvas, as well), it's in the "Jumps Elsewhere" portion of the inspector popup.
That said, simply clicking on the empty canvas while in Presentation Mode will advance to the next canvas. Hope that helps,
__________________
"Vroom! Vroom!!"
Post 2
|
Member
2010-02-12, 09:38 AM
Thanks Joel, but actually, I really want to be able to do this via AppleScript. Is that not possible?
Post 3
|
Oh I imagine it's entirely possible, however I'm not the sharpest tool in the shed when it comes to AppleScript, so I gave the easy answer.
__________________
"Vroom! Vroom!!"
Post 4
|
Member
2010-02-12, 10:24 AM
Got it. Is there an AppleScript whiz at Omni who might be able to help?
Post 5
|
Just played around with it, and it looks like it's fairly easy to set the jump to a specific canvas:
Code:
set jump of graphic -1 of it to canvas id 2 of document of front window of application "OmniGraffle Professional 5"
__________________
"Vroom! Vroom!!"
Post 6
|
Member
2010-02-12, 10:32 AM
Hmm, thanks, but that doesn't compile when I paste it in. Did the formatting get messed up?
Post 7
|
Here's the full Script instead of just a snippet:
Code:
tell application "OmniGraffle Professional 5" tell canvas of front window make new shape at end of graphics with properties {draws shadow: false, size: {68.000000, 60.000000}, origin: {152.000000, 112.000000}, stroke join: miter} set jump of graphic -1 of it to canvas id 2 of document of front window of application "OmniGraffle Professional 5" end tell end tell
__________________
"Vroom! Vroom!!"
Post 8
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Applescript to Show Active Tasks | DrJJWMac | OmniFocus Extras | 13 | 2012-08-14 07:54 AM |
Canvas to PDF Applescript | simonpssetterstrom | OmniGraffle General | 0 | 2012-05-01 01:30 PM |
Applescript: user data item of canvas | cyleigh | OmniGraffle Extras | 1 | 2011-05-04 08:59 PM |
Show document in a new window via applescript... | 0mni0ne | OmniGraffle General | 0 | 2008-08-20 10:56 PM |
Linking Master Canvas items with child canvas layers | relaxedguy | OmniGraffle General | 1 | 2007-12-11 03:15 PM |