Re: FMPro to Contacts (AddressBook)
Re: FMPro to Contacts (AddressBook)
- Subject: Re: FMPro to Contacts (AddressBook)
- From: Bruce Robertson <email@hidden>
- Date: Mon, 11 Nov 2013 09:50:50 -0800
Enter the script into a field; not a file.
On Nov 11, 2013, at 1:05 AM, Bob Stern <email@hidden> wrote:
>> 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
_______________________________________________
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