• 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: Is "frontmost application" depreciated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is "frontmost application" depreciated


  • Subject: Re: Is "frontmost application" depreciated
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 28 Jul 2008 16:00:29 -0700

On Jul 27, 2008, at 10:56 PM, Joe wrote:

Whenever I send this command using the Scripts Menu (but not with Script Editor)

tell application "System Events"
	set x to path to frontmost application as text
end tell

I see in Console this Message:

/System/Library/CoreServices/AppleScript Runner.app/Contents/MacOS/ AppleScript Runner[1641]: CPSGetFrontProcess(): This call is deprecated and should not be called anymore.

Well, "frontmost application" is definitely not depreciated, because it never had any monetary value to begin with. It's not deprecated either -- the offending call is actually coming from AppleScript Runner itself. It's essentially harmless, and will be fixed in some future update.



--Chris Nebel AppleScript Engineering

P.S.: 'tell application "System Events" to path to frontmost application' is redundant. You can say 'tell application "System Events" to get first process where it is frontmost', or you can say 'path to frontmost application' outside of a tell block. Putting "path to" inside a tell block is unnecessary.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden
References: 
 >Is "frontmost application" depreciated (From: Joe <email@hidden>)

  • Prev by Date: Re: Mail and Searching
  • Next by Date: Re: What's the use of class furl?
  • Previous by thread: Re: Is "frontmost application" depreciated
  • Next by thread: What's the use of class furl?
  • Index(es):
    • Date
    • Thread