<Linux>
I got my hotmail set up in Mozilla Thunderbird using the Webmail extention.
I wanted amsn to launch thunderbird for email and Firefox for links.
So i created the script below which should work on most linux computers save the script as "linksamsn.sh"
#!/bin/sh
############## Written by Daniel Searle ##############
############## (C) Daniel Searle 2006 ################
if [ -z "$1" ]; then # make sure its not blank
exit #exit the program
fi
USERNAME=$(whoami) #get the users name
if [ $1 = "-firsttime" ]; then #is it the first run?
echo $2 > "/home/$USERNAME/.amsn/hotmaillink.txt" # save the email link
exit #exit obvious?
fi
emaillink=$( cat "/home/$USERNAME/.amsn/hotmaillink.txt" )
if [ $1 = $emaillink ]; then
#is it theemail link?
thunderbird # launch thunderbird
else
firefox $1 #launch firefox
fi
save this to your home directory then copy it to '/usr/bin/'
(logged in as root)
using the command:
cp ./linkamsn.sh /usr/bin
To make the file executable use this command:
chmod +x /usr/bin/linkamsn.sh
In amsn go to Tools-> Prefrences
then the others tab
edit the browser text to:
linkamsn.sh -firsttime $url
Click ok
Then click on the email link (it wont do anything) so just click on it once
Then go back to your Tools -> Prefrences -> Other
Then edit the browser text to:
linkamsn.sh $url
Click ok
and all should be fine

if you find any errors/bugs or you need some help with this script contact me from this thread.
hope this helped anyone who was wondering how to do this :wink:
Grunty