Funkiness with Documents ending in .app

Krevinek

Evil PPC Tweaker
I was tinkering with TinyFugue under OS X, renaming the binary to TinyFugue.app. When I double-clicked it, it asked what app I want to use to open it. I chose the Terminal and now I can double-click it and launch it in the terminal with little fuss. However, all my apps when launched from the Finder now open up in the Terminal unless they are CFM Carbon apps (anything packaged will cause a terminal window to open in the package folder).

I did manage to fix this, which involved opening up the plist in the user preferences folder labeled 'com.apple.LaunchServices.plist'. Thank god for OS X preferences being in XML: I just deleted the entry relating '.app' documents with Terminal, and applications started launching properly again...

Suffice it to say, all my terminal apps/scripts end in .sh or .unix now. :rolleyes:
 
Hey, that's neat. So if you have a couple of UNIX scripts you use all the time, give them an extension, associate it with terminal, and voila! Thanks for the pointer.
 
Originally posted by symphonix
Hey, that's neat. So if you have a couple of UNIX scripts you use all the time, give them an extension, associate it with terminal, and voila! Thanks for the pointer.

Actually, there is something even better available.

The Terminal automatically associates any file ending in .command with itself. So instead of associating your own extension and having others do it as well, just use .command!

This is even better now... now I can re-release an update to the TinyFugue build that takes this into account to make the installation even easier for the end-user.
 
Back
Top