• 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: How to get frontmost application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get frontmost application?


  • Subject: Re: How to get frontmost application?
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 08 Feb 2002 09:31:24 -0800

On 2/8/02 5:24 AM, "Michelle Steiner" <email@hidden> wrote:

> On 2/8/02 12:03 AM, Paul Berkowitz <email@hidden> wrote:
>
>> How about:
>>
>> set frontApp (path to frontmost application) as string
>>
>> Then, at end:
>>
>> tell application frontApp to activate
>
> But wouldn't the script's applet become the frontmost application when
> it's launched? Therefore, it would not know what was frontmost just
> before it was launched. Even worse, launching it would probably make the
> Finder the frontmost app just before it was launched.


-- not if it's running from another application's internal script menu. Such
apps as I know don't have to be in the front when they run scripts from
timed schedules. I don't know what the situation is here, of course.



--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Scripting System Preferences in MacOS X
  • Next by Date: Re: Scripting System Preferences in MacOS X
  • Previous by thread: Re: How to get frontmost application?
  • Next by thread: Re: How to get frontmost application?
  • Index(es):
    • Date
    • Thread