• 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: Simple applescriptable diagram maker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple applescriptable diagram maker


  • Subject: Re: Simple applescriptable diagram maker
  • From: Christian Boyce <email@hidden>
  • Date: Sat, 09 Apr 2016 17:08:07 -0700
  • Sendlaterdate: Sat, 9 Apr 2016 17:08:06 -0700

When I try the "Copy as AppleScript," I get an AppleScript that won't work:

tell application "OmniGraffle"
tell canvas of front window
make new shape at end of graphics with properties {(null): {227.613281, 79.898438}, (null): {250.699219, 135.812500}, (null): {0.404275, 0.333180, 1.000000}}
end tell
end tell

The "null" stuff has to be wrong. This is OmniGraffle 4.1.2, Mac OS 10.11.4.

This was the easiest test case I could make: a new document, one shape in it (rectangular). But it didn't work. 

What a wild, crazy, fabulous feature this could be for me though. I've never heard of such a thing. Thank you for pointing it out!


On Apr 7, 2016, at 12:18 PM, Rob Lewis <email@hidden> wrote:


One feature that can be a godsend is the command to “Copy as AppleScript”. You can just make a selection in your drawing and then use this command. It will place the AppleScript code to recreate the item(s) on the clipboard. From there you can paste it into your script and tweak as desired. (I suppose you could store the code in a field in your database, too.) 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Simple applescriptable diagram maker
      • From: Rob Lewis <email@hidden>
References: 
 >Re: Simple applescriptable diagram maker (From: Rob Lewis <email@hidden>)

  • Prev by Date: [ANN] Myriad Tables update
  • Next by Date: Re: Simple applescriptable diagram maker
  • Previous by thread: Re: Simple applescriptable diagram maker
  • Next by thread: Re: Simple applescriptable diagram maker
  • Index(es):
    • Date
    • Thread