Xref: utzoo unix-pc.general:3942 comp.sys.att:7870 Path: utzoo!attcan!utgpu!watmath!uunet!ginosko!usc!rutgers!att!icus!lenny From: lenny@icus.islp.ny.us (Lenny Tropiano) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: mail icon / auto window selecting Summary: I got it for you... Message-ID: <992@icus.islp.ny.us> Date: 24 Oct 89 04:56:17 GMT References: <1989Oct22.000322.1187@ivucsb.sba.ca.us> Reply-To: lenny@icus.islp.ny.us (Lenny Tropiano) Organization: ICUS Software Systems, Islip, New York Lines: 26 In article <1989Oct22.000322.1187@ivucsb.sba.ca.us> todd@ivucsb.sba.ca.us (Todd Day) writes: ... |>When mail comes in for me, the mail icon lights up. I want to be able |>to click on the mail icon and autoboot elm for me. I know of one way |>to do this making a C program called "/usr/bin/email" that runs elm. |>However, often I leave elm running in a window. If I click on the icon |>and elm is already running, the second version of elm complains that |>I am already running elm (it checks a lock file in tmp). What I want |>is a program that checks to see if that lock file exists, and if it |>does, finds the window that elm is running in and brings it to the |>foreground. |> ... What you are looking for, I just posted to unix-pc.sources and comp.sys.att. It's my email.c program with the proper enhancements to allow what you want, and select the already running Mail window. I liked your idea, so I implemented it! -Lenny -- | Lenny Tropiano ICUS Software Systems [w] +1 (516) 589-7930 | | lenny@icus.islp.ny.us Telex; 154232428 ICUS [h] +1 (516) 968-8576 | | {ames,pacbell,decuac,hombre,sbcs,attctc}!icus!lenny attmail!icus!lenny | +------- ICUS Software Systems -- PO Box 1; Islip Terrace, NY 11752 -------+