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

Simple applescriptable diagram maker


  • Subject: Simple applescriptable diagram maker
  • From: John Mitchell <email@hidden>
  • Date: Sun, 10 Apr 2016 12:57:21 +1000

Scripters

in FMpro I create a list of this format

set $Attendee to "(\"" & Left ( current Activity team person::Christian_name ; 1) & Left ( current Activity team person::Person_full_name; 2 ) & "\”, \"" & current Activity team person::Person_gender & "\”)"

I add these together with “, “

when passed into FMPro it looks like this:

(("APe","M"), ("JMi","M"), ("GKe","M"), ("LBu","F"), ("RBr","M"), ("RBi","M"), ("BAr","M”))


I have done this initially with curly braces “{“ but both “lists” when passed into SD from FMPro have the same problem 

When I ask for item 1 of item 1 of mtgList it returns “(“  — which should be “APe”

my test script, manually created In Script Debugger is:
 
set mtgList to {{"DMa", "M"}, {"JMi", "M"}, {"PMi", "F"}, {"JBh", "M"}, {"WMi", "F"}, {"CRo", "F"}, {"BCo", "M"}, {"WVz", "M"}}

the latter is seen as a List and I can decompose it successfully

obviously I am not formatting correctly (in FMPro?)  

any suggestions pls


Message: 1
Date: Sat, 09 Apr 2016 08:38:14 +1000
From: John Mitchell <email@hidden>
To: email@hidden
Subject: Re: Simple applescriptable diagram maker
Message-ID: <email@hidden" class="">email@hidden>
Content-Type: text/plain; charset=utf-8

tks Rob

and embarrassingly I use OmniGraffle :-|

I’m anticipating addiction...

\Subject: Re: Simple applescriptable diagram maker
Message-ID: <email@hidden" class="">email@hidden>
Content-Type: text/plain; charset=utf-8

Well, it’s not a “mini-app” and I wouldn’t necessarily call it “simple”, but OmniGraffle is very scriptable and I’ve done some pretty interesting things with it. 

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.) 

Also, every object comes with a data table that you can fill with user definable name:value pairs, which can be accessed from scripts. 

Just as an example, I wrote a script to create and print a bunch of serialized forms, with the serial numbers printed on them both as text and as 2D barcodes. 

Making it do tricks is actually kind of addictive. 

I am trying to find an applescriptable diagram mini-app that I can configure for meeting room table & chairs layouts, embedded in a Filemaker Pro database.

Would anyone have a recommendation?




John Mitchell

 _______________________________________________
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

  • Prev by Date: Re: Simple applescriptable diagram maker
  • Next by Date: Re: Simple applescriptable diagram maker
  • Previous by thread: Re: Simple applescriptable diagram maker
  • Next by thread: Applescript for Adobe Illustrator (18.0.0) in OS 10.11.4
  • Index(es):
    • Date
    • Thread