Endicia for Mac Walk through:
FileMaker Using Simple Applescript
This walkthrough shows you how to create a "Prepare Label" button in Endicia for Mac in a few simple steps. Programming experience in FileMaker is helpful, but not required. We have a sample FileMaker database that implements this method available here for download.
Step 1: Create a Combined Field with The Full Address
What you're doing in this step is creating a combined field that has the entire address, with line breaks, in one field.
Select Define Fields... from the File menu.
Then, create a new "Calculation" field. In our example, we're calling it EndiciaURL.
Define the field in such a way that it creates the complete address you're wishing to send to, separated by paragraph marks, and prefaced with "open location" as illustrated below:
Note the use of double quotes, since the actual endicia URL needs to be in quotes itself.
"open location ""endicia://newShipment/?address=" & First Name & " " & Last Name & "¶" & Company & "¶" & Street 1 & " " & Street 2 & "¶" & City 1 & " " & State Province 1 & " " & Postal Code 1 & """"
Step 2: Create a Script
Select ScriptMaker... from the Scripts menu.
Create a new script.
Select the Perform Applescript Action under Miscellaneous.
Specify the AppleScript parameters, selecting the field you just created.
You'll now have a menu item under Scripts that will create the endicia package. From this point, you can select Command-1 to prepare a label.
Step 3: Create a Button
The icing on the cake is to create a button. Put your form into Design mode, drag over a new button and then specify the button to perform the script you created above.
And that's it. Clicking that button will launch Endicia for Mac and pre-fill the address for you.
