• 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: path to frontmost application as text but another way...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: path to frontmost application as text but another way...


  • Subject: Re: path to frontmost application as text but another way...
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 23 Jul 2002 19:15:06 -0700

On 7/23/02 6:45 PM, "Zimba" <email@hidden> wrote:

> The question is kinda all included in the Subject: is there a way to
> get the path path to frontmost application as text without using the
> Standard Additions...
>
> Thanks in advance...

Why would you want another way? Standard Additions is built into every OS
and that _always_ works. You should be able to use the Finder, but it's more
roundabout and doesn't work in OS 10.0.x (not that anyone is using 10.0.x
any more).

tell application "Finder"
set frontApp to item 1 of (every process whose frontmost is true)
set pathToFrontApp to application file of frontApp as alias as string
end tell


And it also doesn't seem to be working in OS 10.1.5/AS 1.8.3! 'every process
whose frontmost is true' just keeps hanging. In Script Editor you can't even
stop the script, and have to force-quit. In script Debugger you can stop it.

Confirmation?

Anyway, use path to frontmost application. there isn't anyone in the world
who doesn't have Standard Additions.

--
Paul Berkowitz
_______________________________________________
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: path to frontmost application as text but another way...
      • From: Cornwall <email@hidden>
    • Re: path to frontmost application as text but another way...
      • From: Paul Skinner <email@hidden>
References: 
 >path to frontmost application as text but another way... (From: Zimba <email@hidden>)

  • Prev by Date: path to frontmost application as text but another way...
  • Next by Date: Re: Parameters for "path to" Command
  • Previous by thread: path to frontmost application as text but another way...
  • Next by thread: Re: path to frontmost application as text but another way...
  • Index(es):
    • Date
    • Thread