Re: frontmost application
Re: frontmost application
- Subject: Re: frontmost application
- From: kai <email@hidden>
- Date: Wed, 30 Nov 2005 20:20:13 +0000
On 30 Nov 2005, at 19:55, Luther Fuller wrote:
I did a Google search for applescript & frontmost and found the
suggestion:
tell application "Finder" to name of file (path to frontmost
application as text)
It worked! I experimented further and found that 'frontmost
application' is an
apparently undocumented argument of the 'path to' command in
Scripting Additions.
You don't need to tell the Finder anything. Just write ...
short name of (info for (path to frontmost application))
Why don't they document this stuff!
The following reference appears in the File Commands section of the
Standard Additions dictionary:
path to v : Return the full path to the specified application
path to current application/frontmost application/application
“AppName”/me/it : the application to return
[as type class] : the type to return: alias or string (default is alias)
→ alias : the path to the specified application
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden