Daveway said:
Here it is. Bring the script into Script Editor and change the username and web browser to your needs, then save changes.
Thanks . . . that will come in handy. I hope you don't get too many attachments as a product of having your gmail name in the script . . .
Had a little trouble with Mail closing before it was done sending, so I had to add a prompt asking if I wanted to close Mail, it seems to work better now, but that might just be a problem related to my slow mail server.
It also didn't work just be changing the Firefox to Safari for some reason so I had to take this route:
[applescript]
tell application "Finder"
display dialog the alert_message buttons {"Yes", "No"} default button 2 with icon 1
set the user_choice to the button returned of the result
if user_choice is "Yes" then
open location target_URL
end if
end tell
property target_URL : "http://www.gmail.com"
[/applescript]