Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

albebaubles

macrumors 6502a
Original poster
Feb 9, 2010
644
567
Sierra in view
I have an app that creates files with it's own extension type '.qaz'.

How do I go about programatically associating that extension with my application such that when a user clicks on the .qaz file my application automatically opens.

FYI, the app is Leopard and SL only.

Thanks.
 
I believe this is done from info.plist


OK, the plist is what I've been trying, so I'm at least headed down the right path. My problem is the text editor still continues to open when I double-click my file.

Found it:

"Launch Manager" is responsible for opening files based on associations. Launch Manager settings are held in ~/Library/Preferences/com.apple.LaunchServices.plist. Some associations are cached in /Library/Caches/com.apple.LaunchServices*.csstore (the exact name varies with OS version). To remove the offending association:
rename/move the cache(s) (you could delete, but a rename/move is safer)
restart
open the LaunchServices preferences in the Property List Editor
search for and remove the association for the binary files.



I'm styling. Thanks, all.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.