Here's the scenario:
You have a phone with Verizon, and you have 1,000 contacts in your Mac's Address Book. Perhaps you've had a previous Verizon phone, but you've never backed up your contacts from that phone -- but you do have your contacts on your computer and want to get them into your phone. I'm here to tell you that yes, it can be done, I promise. What this does is turn your Firefox web browser into an input robot that fills out the stupid little manual input forms on Verizon's website automatically, over and over, using a CSV file as the input source.
Read on for the step-by-step...
Here are the steps:
'=======Start here, cut this line=========
VERSION BUILD=3700331
'Uses a Windows script to submit several datasets to a website, e. g. for filling an online database
'Adapted from original sample code -- now logs into Verizon Backup Assistant and imports a spreadsheet
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=https://backupassistant.vzw.com/mb/do/privileged/addressbook/prepare?skininfo=110
' Specify input file (if !COL variables are used, IIM automatically assume a CSV format of the input file
'CSV = Comma Separated Values in each line of the file
CMDLINE !DATASOURCE addressbookforverizon.csv
'Number of columns in the CSV file. This must be accurate!
'====================
' SET THIS TO THE NUMBER OF COLUMNS IN YOUR CSV FILE
'====================
SET !DATASOURCE_COLUMNS 13
'Increase the current position in the file with each loop
SET !DATASOURCE_LINE {{!LOOP}}
'Fill web form
'Click the "Add Contact" Link
TAG POS=1 TYPE=A ATTR=TXT:AddContact
'===============================================
' EDIT THE FOLLOWING LINES ONLY IF YOU HAVE TO
' Change the "COL" values to correspond to your CSV file. For example, if
' the first COLUMN of your CSV is Last Name, and the second COLUMN is First Name
' then change the first line to end with {{!COL2}}
' and the second line to {{!COL1}}
'===============================================
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:firstName CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:lastName CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:mobile CONTENT={{!COL9}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:mobile2 CONTENT={{!COL10}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:home CONTENT={{!COL7}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:work CONTENT={{!COL6}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:fax CONTENT={{!COL11}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:email CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:email2 CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:contactForm ATTR=NAME:_save_&&SRC:https://backupassistant.vzw.com/mb/images/skin.110/buttons/save.gif
'========= end here, cut this line ======================Mac OS X Hints
http://hints.macworld.com/article.php?story=20080826021102947