• 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: Name of Active Process, part 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of Active Process, part 2


  • Subject: Re: Name of Active Process, part 2
  • From: David Andrews <email@hidden>
  • Date: Wed, 16 Jun 2004 22:37:04 -0400

On second thought, I now see what you are saying, and that is, if some other (not displayed) process is active, then we end up stuck in RealOne Player and do not return to the original displayed application.

So your suggestion is probably better, except I get
"the process
"
instead of
"the process"

So I think I'll now go with the following (unless you can tell me something about having the "return" in there):

tell application "Finder" to set frontProcess to (displayed name of (path to frontmost application))

On Jun 16, 2004, at 12:11 AM, Joseph Weaks wrote:

I recommend:

tell application "Finder" to set frontProcess to ((displayed name of (path to frontmost application)) & return)

Because these two fail in some circumstances, such as when launched from the Script Menu:
--tell application "Finder" to set frontProcess to (frontProcess & (name of every process whose frontmost is true) & return)
--tell application "System Events" to set frontProcess to (frontProcess & (name of every process whose frontmost is true))

Joe Weaks
[snip]
_______________________________________________
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.


  • Follow-Ups:
    • Re: Name of Active Process, part 2
      • From: Walter Ian Kaye <email@hidden>
    • Re: Name of Active Process, part 2
      • From: Walter Ian Kaye <email@hidden>
References: 
 >Name of Active Process (From: David Andrews <email@hidden>)
 >Re: Name of Active Process (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: recursion testing (was: Finder - Delete empty folders, recursively)
  • Next by Date: Sleep Displays via Script?
  • Previous by thread: Re: Name of Active Process
  • Next by thread: Re: Name of Active Process, part 2
  • Index(es):
    • Date
    • Thread