Re: FMPro to Contacts (AddressBook)
Re: FMPro to Contacts (AddressBook)
- Subject: Re: FMPro to Contacts (AddressBook)
- From: Bob Stern <email@hidden>
- Date: Mon, 11 Nov 2013 01:05:51 -0800
> On Nov 8, 2013, at 1:33 PM, Bruce Robertson <email@hidden> wrote:
>
> NO escaping.
> Set Variable [ $baseScript; "display dialog theUserName" ]
Can you illustrate how your method reduces the need for escaping? If the AppleScript command were "tell application "Finder" to ___", I believe you would have to escape the quotes before and after Finder just as in Jim Weisbin's example.
If you can accept a multi-file solution, you can avoid escaping AppleScript by using FileMaker's Open URL script step to call an external AppleScript file, saved as an application. Instead of the FileMaker substitutions you illustrate below, the AppleScript can read values of FileMaker fields.
> Set a variable to a block of text that holds the applescript you want; with place holders in the text.
> Use FileMaker substitutions instead; and then "perform calculated applescript" after the substitutions have been made.
> Set Variable [ $myScript; substitute( $baseScript; "theUserName"; quote(get( userName)))]
> Perform Applescript [ $myScript ]
Bob Stern
_______________________________________________
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