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
|