LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 04-05-2007, 12:33 PM   #1
kennybob
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian Etch 4.0
Posts: 19

Rep: Reputation: 0
Click link in Browser-Run script


Is there a way to do this:

Clicking on a Mailto link, usually brings up my email client, for sending a message to someone.

What I want to do is when I click on the link, it will first run a script, that will

1.) minimize the browser
2.) bring up the email client
3.) Enter the mailto address into the address
4.) enter text into the body
5.) attach another file to the message.
6.) send the message
7.) maximize the browser

I am trying to apply for a general tech job from a website with lots of links to potential employers. I know its better to write a new cover letter for every employer, but if each cover letter is pretty much the same text, why bother.

I was thinking of maybe using UID's for this, but maybe I still don't know a lot about linux yet.

Is there a way to do this?

Thanks

Last edited by kennybob; 04-05-2007 at 12:45 PM.
 
Old 04-05-2007, 02:07 PM   #2
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41
Spam Approach

Why not adopt the spammer method and just harvest the email addresses from the page and automate the responses external to the browser? Sounds easier to me than trying to coordinate between two apps. Just process the list:

Code:
psuedo code:

For each x in (spamlist)

   Mail: Subject="Your Savior Has Arrived"
         To=x
         Body="High! I'm kennybob and I'm the answer to all your
               prayers. Please see my attached CV and read about
               how great I really am!" + addressblock
         Attach="~\kennybobCV.pdf"
   Mail:Send
Loop
 
Old 04-05-2007, 03:32 PM   #3
kennybob
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian Etch 4.0
Posts: 19

Original Poster
Rep: Reputation: 0
Not what I want. I want to go between 2 apps. If I was in Windows, I could probably do it with VB. But now that I am on Linux and playing with scripts and all, and sometimes the linux scripts can do so much, I just want to know if it's feasible.

Thanks
 
Old 04-05-2007, 03:59 PM   #4
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41
Idee Fixe

Quote:
Originally Posted by kennybob
Not what I want. I want to go between 2 apps.
Sounds like a man sold on a method rather than a solution. That's always bothered me a little. Mostly because I've shot myself in the foot so often by being obsessed with the implementation rather than the result.

Be that as it may, you're really not far off. The MailTo link should already invoke your default email client and (probably) populate the "To" and "Subject" fields. All that remains is to automate populating the body, adding the attachment, and sending the email. I leave out minimizing and maximizing the browser since that is an aesthetic requirement, not a functional one.

What is your default email client?
 
Old 04-05-2007, 08:40 PM   #5
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Quote:
1.) minimize the browser
2.) bring up the email client
3.) Enter the mailto address into the address
4.) enter text into the body
5.) attach another file to the message.
6.) send the message
7.) maximize the browser
Two words, not possible.
 
Old 04-06-2007, 09:01 AM   #6
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41
Really?

Quote:
Originally Posted by shrikant.odugoudar
Two words, not possible.
I should think that Evolution, for instance, should be able to handle this with either a filter and/or a plugin. Or perhaps make a CLI email program like pine or elm (if they're still around) the default mail client and script command line parameters to be passed to the email client. I think it's do-able. But I still think my suggestion of processing the page or a list of email addresses would have been easier.

Either way, the fun is figuring out how to do it. Even if you fail, you'll still have learned something.

I agree with the OP, I refuse to believe that something I know I could do in Outlook and VB cannot be done in Linux.
 
Old 04-06-2007, 02:23 PM   #7
kennybob
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian Etch 4.0
Posts: 19

Original Poster
Rep: Reputation: 0
I use IceDove as my email client. Thanks for all the positive thoughts about this. I guess its more trouble than its worth, although I might still work on it.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script every hour click link secretlydead Programming 3 02-09-2007 11:03 PM
unable to run perl script using browser madhuri Debian 3 12-02-2005 04:46 PM
unable to run perl script using browser madhuri Linux - Distributions 1 11-22-2005 02:19 PM
.sh Script to run another via browser GetMooked Linux - Software 1 05-12-2005 04:41 PM
right-click menu won't display;touchgraph link browser jariep Linux - Software 0 04-28-2004 02:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration