Re: Applescript brings finder to front each time
Re: Applescript brings finder to front each time
- Subject: Re: Applescript brings finder to front each time
- From: Mr Tea <email@hidden>
- Date: Thu, 07 Jun 2001 16:02:01 +0100
This from email@hidden - dateline 05-06-01 10.34 PM:
>
is there a way to know which application was in front and
>
then bring that application back to the front when the applescript is
>
finished. Thanks.
This question has popped up several times, John, and I haven't seen a
solution that prevents the finder from coming to the front when an
applescript asks it to do something.
My method of getting around this is to have the script set the clipboard to
the name of the frontmost application process before it does anything else.
You could also store the name of the frontmost application in a variable.
I find the clipboard method more versatile, as this makes it easy to pass
the name of the app between scripts or even between different macro
utilities.
HTH
Mr Tea
--
Brew of the day: Breakfast Blend