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

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
References: 
 >Re: frontmost application (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: frontmost application
  • Next by Date: Re: Path to folder list
  • Previous by thread: Re: frontmost application
  • Next by thread: [ANN] Next Philadelphia Area AppleScript Users Group Meeting
  • Index(es):
    • Date
    • Thread