I'm not sure that it's really useful but it costs nothing. Taking the problem by an other side, removing it will give an error message which maybe will be useful to understand what was failing.
In fact, treating this program was on my list of things-to-do but, as a lot of retired beings, I'm overbooked. Maybe it's because I'm not working as quickly as years before.
I dropped the process name to use the application path because there are cases where the process is not named like the application. As System Event was giving the application's alias I decided to use it and don't extract the appName which would require to be deprived of the name extension.
The ability to select several lines was written in my own project so I coded it here hoping that it would be useful for you too.
Yvan KOENIG (VALLAURIS, France) samedi 8 mars 2014 21:21:28
Le 08/03/2014 à 20:17, Michael Grant < email@hidden> a écrit : Merci Yvan, I sent mine before I saw yours. Is the try block really necessary? Michael
|