• 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: Language-independent way to find Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Language-independent way to find Applications


  • Subject: Re: Language-independent way to find Applications
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 17 Mar 2008 17:01:42 +0100


Le 17 mars 2008 à 16:40, Thomas Summerall a écrit :

I have a script that needs to find an application (Photoshop) by looking in all the user's application folders.

I'm assuming:

1. There can be two relevant applications folders on any volume (volume/applications and user/applications)
2. Those two folders can exist on multiple mounted volumes
3. These folders are not called "Applications" on non-English systems


If those are true, is there a way to tell the Finder to direct me to the various applications folders that will cover all these contingencies?

It would be most convenient to be a able to say "applications folder of curDisk" but that won't compile.

I can do this on the system disk as follows:

      set sysApps to applications folder from system domain
      set userApps to applications folder from user domain

But I can't figure out how to do this on other volumes.

In fact, most of the applications may be stored everywhere on a HD, on other partitions, on other HDs, on network .
The "Applications" folders are just those which are recommended by Apple.
Some updaters may have difficulties with non-standard locations but the applications work flawlessly.



To get rid of that, you may use the instruction

tell application "Photoshop" to activate

then grab it's pathname from the application itself (but I don't know the syntax)
or from System Events


get path of process whose displayed name is "Photoshop.app"

Yvan KOENIG _______________________________________________
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
  • Follow-Ups:
    • Re: Language-independent way to find Applications
      • From: KOENIG Yvan <email@hidden>
References: 
 >Language-independent way to find Applications (From: Thomas Summerall <email@hidden>)

  • Prev by Date: Re: Language-independent way to find Applications
  • Next by Date: Re: Language-independent way to find Applications
  • Previous by thread: Re: Language-independent way to find Applications
  • Next by thread: Re: Language-independent way to find Applications
  • Index(es):
    • Date
    • Thread