This Applescript will help you quickly import a spreadsheet of emails and names into any web form. This one is specifically designed to work with a custom King Sumo giveaway, and a spreadsheet of leads downloaded from Facebook lead generator. We are only importing name (column L) and email (column K).
Notes for Future Development / Calls for Help:
- I would LOVE to replace the key code navigation with javascript to fill out the fields in the web form.
- I think this would also run faster if I could store the names & emails in an array and therefore eliminate the need to switch back to Excel once they are grabbed. (the new algo would be: grab names & emails from spreadsheet, store as an array; REPEAT until end of array: open URL in incognito window; fill out form with first stored set of values; hit enter; close window; END REPEAT)
Some of the techniques contained in this script include:
- Repeating a script for each row of an Excel sheet that contains data (stop when you reach the end of the data)
- Use Key Codes to navigate a spreadsheet and a web page
- Use key codes to copy and paste data
- Switch between applications
- Open a URL using Incognito Mode in Google Chrome
- Close all Google Chrome windows
Check out the in-line comments for options to customize.
To Run:
- Open the Applescript
- Open your spreadsheet containing the names & emails you want to import.
- Make sure that the first NAME is selected from the first row of data (row 2, column L in this example, usually).
- Replace the URL in line 23 with that of your form entry page.
- CLOSE ALL GOOGLE CHROME WINDOWS!! This is important.