The Mythical LSSetApplicationForItem

Example code from Ben Artin of Fetch Softworks showing how to add a “usro” resource to a file for the “case when you need to make sure that a particular file will open with a particular app when the user double-clicks it in the Finder”. Note that “usro” resources are undocumented by Apple and subject to change at any time, but there’s no other way to get this behavior in Snow Leopard.

Wednesday, 28 October 2009