Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use AppleScript to create drag and drop icons for shell scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use AppleScript to create drag and drop icons for shell scripts
Authored by: ChiperSoft on Dec 25, '03 02:28:02AM
Since this script doesn't actually display anything (it basically launches and then quits), it can be handy to disable it's icon in the dock. The easiest way to do this is to save the script as Application Bundle. Control-click the script application and choose Show Package Contents from the menu. Add the following lines to the Info.plist file:
	<key>NSUIElement</key>
	<string>1</string>
The script will now launch without a face.

Note that in order for the window to close when the command completes, you need to change the default Window Settings to close the window when the shell exits.

[ Reply to This | # ]