• 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: changing the "open with application" value for a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing the "open with application" value for a file


  • Subject: Re: changing the "open with application" value for a file
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 24 May 2009 01:42:19 +0200

Le 23 mai 09 à 20:04, Jim Brandt a écrit :

OK, so where do the types come from?

Hmm... a rather complicated story, that I won't pretend to fully understand.
But you could have a look at the developer's documentation about Launch Services, for instance:


	http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCIntro/LSCIntro.html

And also look at the output of following command:

/System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -h

as well as of that one:

/System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump

(the "A" appears just because, under 10.5.7, the current version of the framework happens to be "A"; yes, life's a funny thing)


Back under OS 9, there were programs to show and change
the creator type codes. You didn't need to know the code, the
program looked it up.

That was thanks to Desktop Manager's job; whose role became more and more subtle (unmanageable?) with the attempt to consistently integrate file name extensions.



If I look at the downloaded file with an extension of .m4v, on my
machine, it will, by default, open up in iTunes. The kind shows
as "MPEG-4 Video file".

If, using the "get info" dialog, I change the application which opens
the file, it still has a qualifier of .m4v, the creator type still is undefined,
but the kind is now "MPEG-3 Video" (missing the " file").

How does the output of lsregister then change?

HTH,
Axel _______________________________________________
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
References: 
 >changing the "open with application" value for a file (From: Jim Brandt <email@hidden>)
 >Re: changing the "open with application" value for a file (From: "email@hidden" <email@hidden>)
 >Re: changing the "open with application" value for a file (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: changing the "open with application" value for a file
  • Next by Date: Re: Interacting with external shell scripts
  • Previous by thread: Re: changing the "open with application" value for a file
  • Next by thread: Re: changing the "open with application" value for a file
  • Index(es):
    • Date
    • Thread