• 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: Getting a list of applications for a file type via LaunchServices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a list of applications for a file type via LaunchServices


  • Subject: Re: Getting a list of applications for a file type via LaunchServices
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 22 Mar 2011 10:53:47 -0500

On Mar 22, 2011, at 9:10 AM, Robert Krüger wrote:

I'm trying to get a list of applications registered for a file type via LaunchServices, i.e. the ones Finder shows you in the "Open with ..." menu. I tried searching the archives and the web and was puzzled that I didn't find anything for this seemingly simple task. Is this functionality not exposed via Applescript?

Interesting question. I've just tried finding info for LaunchServices and all I could find was some misleading info on the 'lsregister' command. Finally discovered that it's well hidden and has changed location over the years. Finally got this to work ...

set lsregisterAlias to alias (POSIX file "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister")
quoted form of (POSIX path of lsregisterAlias)
do shell script the result & " -dump"
log the result

A large result. You may want to direct the result to a file.

 _______________________________________________
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: Getting a list of applications for a file type via LaunchServices
      • From: Robert Krüger <email@hidden>
References: 
 >Getting a list of applications for a file type via LaunchServices (From: Robert Krüger <email@hidden>)

  • Prev by Date: Hi, can you please remove me from this mailing list?
  • Next by Date: Re: Getting a list of applications for a file type via LaunchServices
  • Previous by thread: Getting a list of applications for a file type via LaunchServices
  • Next by thread: Re: Getting a list of applications for a file type via LaunchServices
  • Index(es):
    • Date
    • Thread