• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting OmniGraffle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting OmniGraffle


  • Subject: Re: Scripting OmniGraffle
  • From: Timothy Bates <email@hidden>
  • Date: Fri, 10 May 2002 10:25:12 +1000
  • .mxoez?+: O?W^h1]g}IB\WO2A=6#`2^rL?jAu,r8EcKz@UG.r.7[$&Ym;j8^Wp;/KAlcda MO/$} $"[ c?\#d@cuN
  • 9+kli1>@: KaeEcbn$EIG)tY@^[7y`lyrI<4S(cnqzmTD&4<tTkuNR(4dweN}SUlDX/X^c>"

> When I want to make a new shape/graphic on a document I can't seem to find
> the right syntax. Either I get an error or nothing happens.

1. Make an object
2. Edit->Copy-as...-> AppleScript
3. Look at the script

You get something like

tell front document of application "OmniGraffle"
make new shape at end of graphics with properties {gradient angle: 339,
origin: {108, 81}, size: {117, 108}}
end tell

That being said scripting is a bit flakey in the current version, so you end
up saying some things that you shouldn't have to to get stuff to work.

BUT the ability to do something, then copy it as a script is a fantastic
learning aid.

iTim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Scripting OmniGraffle (From: Jesse Shanks <email@hidden>)

  • Prev by Date: Re: Text Manipulation
  • Next by Date: Re: Reversing the lines in a file
  • Previous by thread: Scripting OmniGraffle
  • Next by thread: AS verbosity and ease(?) of learning
  • Index(es):
    • Date
    • Thread