Re: Is "frontmost application" depreciated
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