Function: Creates a random password (alphanumeric, upper and lower
case, punctuation) and inserts this password into your Keychain
together with the current Safari webpage. The password is also copied
to the clipboard for direct pasting into the web page.
Author: Garry Myers
Requires: Return the Clipboard; Safari running with a web page displayed
Added CocoaDialog dialog for user to enter account name associated with the password; the dialog includes a default answer of your OSX short username. The selected account name is entered into the Keychain with the password.
Replaced the Applescript dialog notification for successful pasword generation with a Growl notification to reduce user interaction with windows.
Notes: Never have to think of new web passwords, never reuse a web password and never have to remember a web password again! With an open web form as the current page in Safari, this workflow will create a random password (10 characters default) and automatically insert it in your Keychain with the current web page as an Internet password item. The new password is also copied to your clipboard for direct pasting into the web form. The character length of the password can be set in Step 5*.
*If you edit this in Automator, ensure that in step 5, the shell is
/usr/bin/perl…there is a bug in Automator that causes the Run
Shell Script action to default to
/bin/bash when re-opening the
workflow regardless of what was set at last save.