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


Click here to return to the 'Do you want a clickable shell script?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Do you want a clickable shell script?
Authored by: Anonymous on Jan 16, '03 11:04:28AM

Some people have pointed out that you don't need to wrap the shell commands in AppleScript, but others have replied that this gives you an icon that you can double-click in the GUI.

If you want a shell script to be clickable, put ".command" at the end of the name and make sure the file's permissions allow it to be executable. This has worked since the Public Beta.



[ Reply to This | # ]
Do you want a clickable shell script?
Authored by: millz on Nov 17, '03 09:09:03PM

but a terminal window stays open while the script is still running, right?

If I put
/Applications/Mail.app/Contents/MacOS/Mail &
in a file and call it run.command, I can double-click it to run it, but the terminal window stays open until I close mail. Is there a way around that?



[ Reply to This | # ]