Jul 30, '03 10:21:00AM • Contributed by: GaelicWizard
SetFile -t APPL someScript.shTa da! Suddenly the script is double-clickable in the Finder! Remember that it will always be run as if it were in the root of the disk, so always use absolute paths! You'll need the Dev Tools installed to do this, as Setfile is in /Developer/Tools. You can make a custom icon by pasting one into the Get Info window for the script in Finder.
For those of you who care, this works by setting the Type code (the resource that the Finder looks at to check if something is an application) to APPL, which indicates that it's an application. You can also set the creator code if you like with the -c option, but it's useless. Enjoy!
[robg adds: We showed another easy way of doing this in an earlier hint...]
