New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Firefox, Passwords & an AppleScript


Post Reply New Thread Subscribe

 
Thread Tools
Brown Study

 
Brown Study's Avatar
 
Member Since: Mar 11, 2004
Location: Winnipeg
Posts: 1,964
Brown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to all
Mac Specs: G4 Tiger and OS 9

Brown Study is offline
Firefox 2.0.0.2'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 2.0.0.2, 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"
delay 4
tell application "Firefox"
activate
tell application "System Events" to keystroke "brownstudy@acme.com"
tell application "System Events" to keystroke tab
tell application "System Events" to keystroke "mypassword"
tell application "System Events" to keystroke return
end tell
end tell

Take that, Firefox.
QUOTE Thanks

Post Reply New Thread Subscribe


« How do you delete an event from ical? | PcAnywhere 12 Help »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Firefox and saving passwords (need suggestions on saving them) JuniorNA Switcher Hangout 4 11-21-2006 05:20 PM
Firefox exploits holes from XP? jae1227 OS X - Apps and Games 7 10-12-2006 03:51 PM
Firefox & 10.4.7 Murker OS X - Apps and Games 5 08-18-2006 01:16 PM
Boy, Do I Feel Dumb! How Do I Install Firefox? mac57 Switcher Hangout 9 05-18-2006 04:16 AM
Firefox Help heysidays OS X - Apps and Games 2 12-10-2005 11:43 AM

All times are GMT -4. The time now is 02:26 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?