Auto-fill FedEx forms in Safari via AppleScript |
|
|
If you do a lot of shipping with FedEx, you know how annoying it is to cut and paste all the address information into Safari. There are expensive programs that will extract information, but most don't work with OS X or require Filemaker. Here's a quick hint I use quite often to autofill the FedEx forms.
tell application "Safari"
activate
tell (make new document) to set URL to "https://www.fedex.com/ship/shipEntryAction.do?method=doInitialEntry&origincountry=us&locallang=en&urlparams=us&sType=&programIndicator=0"
delay 2
set doc to document "FedEx | Ship Manager | Shipping"
log (doc's name)
do JavaScript "document.forms['domesticShipmentActionForm']['recipient.companyName'].value...
|