PasswordMaker Forums

Other Editions => Other Editions - Feature Requests / Enhancements => Topic started by: Rupe on October 19, 2009, 02:22:54 AM

Title: Snow Leopard Safari version
Post by: Rupe on October 19, 2009, 02:22:54 AM
Dear All,

As a long time fan the Firefox plugin, who is now fed up of Firefox, I thought I'd write some thing for Safari. Windows users, you're out of luck I'm afraid, as probably are pre-Snow Leopard users (but maybe not?).

Basically, I checked out the python version, and hacked it together with some use of the appscript extension and a little extra AppleScript. You can now trigger PWM through the Services menu (Safari->Services->PasswordMaker) or if you go to System Prefs -> Keyboard->Shortcuts->Services, you can probably bind it to a keyboard shortcut.

1) Install appscript by opening a terminal and running:
sudo easy_install appscript

2) Install the automator bundle to ~/Library/Services/

3) Go to Safari ***PUT THE CURSOR IN THE PASSWORD FIELD*** and then run the service. It should pop a dialog, then press generate.

Right, I'm well aware it's very rough around the edges. Anyone want to make it pretty? I may or may not get around to it. Since I based it on the Python version of PWM, it's released on the LGPLicense, so go nuts.

Code: www2.ph.ed.ac.uk/~s0567077/SafariPWM.dmg

PS: if you edit the bundle in Automator and save it, it will overwrite the python scripts! You need to copy them else where for editing.
Title: Re: Snow Leopard Safari version
Post by: Eric H. Jung on October 19, 2009, 05:19:02 PM
Thanks for the contribution! Do you want us to make it available for download from the main passwordmaker.org site?

By the way, there already was an OS/X dashboard widget written some time back.

Eric
Title: Re: Snow Leopard Safari version
Post by: Rupe on October 20, 2009, 07:52:09 PM
Thanks for the contribution! Do you want us to make it available for download from the main passwordmaker.org site?
If you like. As mentioned above, it is very rough around the edges.
Quote
By the way, there already was an OS/X dashboard widget written some time back.

Eric
Yes, I had tried that but I don't really like it. I miss the convenience of just triggering a shortcut to fill in my password.

I did a little research on services in Snow Leopard: I believe it would be possible to write an application that makes PWM's features available to any application, so it could become a browser-agnostic solution for OSX. I've been thinking about learning Cocoa for some time; perhaps when work calms down a little (December) I will be in a position to do so, using this as my test app.

Regards,
Rupert

Edit: I just remembered that Firefox doesn't use Cocoa, so I weaken my claim above to "it could become a solution for Cocoa-based browsers on OSX".