03-03-2007, 01:22 AM #1
Firefox, Passwords & an AppleScript
- Member Since
- Mar 11, 2004
Firefox 18.104.22.168's password memory ain't what it used to be.
Sites such as my web-mail ISP instruct the browser to never allow the password manager to retain the log-in information. But it was possible to get around this with the bookmarklet Remember Password that short-circuited the amnesia. But not with the newest Firefox.
Typing my email address and password over and over and over gets old fast. So I cobbled this AppleScript together to haul up the ISP's log-in page, fill in the blanks and continue on to my mail. The log-in page has only two fields, and the cursor goes to the first one automatically without the aid of the script. But if anyone else is in the same boat with Firefox 22.214.171.124, you might be able to edit this thing to make it work for you. (And I don't know whether it would work in anything older than Tiger, or whether QuickSilver would make it redundant.) The keystroke tabs bounce the cursor to as many fields as there are on the page.
I haven't figured out why the script opens a new page, but because it does, there should be at least one page open before it runs, otherwise the script might bog down opening both while it's typing.
Depending on the speed of the machine and whether the page is cached, the delay could be shortened or lengthened to 5 or more, and a delay inserted before or after the tab.
If you try it, save it as an application. Keep in mind that your password is in plain text. This is the one I wrote for the ISP (without the pertinent info.)
tell application "System Events"
tell application "Firefox" to Get URL "http//blahblahblahblahblahblahblahblah"
tell application "Firefox"
tell application "System Events" to keystroke "email@example.com"
tell application "System Events" to keystroke tab
tell application "System Events" to keystroke "mypassword"
tell application "System Events" to keystroke return
Take that, Firefox.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Snipeye in forum OS X - Apps and GamesReplies: 2Last Post: 05-30-2011, 11:09 PM
By fiery in forum OS X - Apps and GamesReplies: 3Last Post: 09-07-2010, 10:25 PM
By Floris in forum OS X - Development and DarwinReplies: 6Last Post: 05-08-2009, 11:50 AM
By melmation in forum OS X - Apps and GamesReplies: 1Last Post: 10-26-2008, 11:21 PM
By patricci in forum Switcher HangoutReplies: 6Last Post: 12-11-2007, 09:01 AM