• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript brings finder to front each time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Applescript brings finder to front each time
      • From: Emmanuel <email@hidden>
    • Re: Applescript brings finder to front each time
      • From: John W Baxter <email@hidden>
References: 
 >Applescript brings finder to front each time (From: email@hidden)

  • Prev by Date: Re: carriage return & line feeds
  • Next by Date: TCP/IP configuration + launching an app via its type/creator
  • Previous by thread: Applescript brings finder to front each time
  • Next by thread: Re: Applescript brings finder to front each time
  • Index(es):
    • Date
    • Thread