12-11-2008, 09:14 AM #1
MS-DOS batch file equivelent on OSX
- Member Since
- Dec 11, 2008
I written a foundation tool which I've been testing by hand typing the command in the Terminal. Now I'm happy that my application works fine, I want to write a script that will execute my tool and I would like to execute it by double clicking an icon (like an MS-DOS batch file).
I've read bits 'n pieces by googling and found a direction I can take. I can type my command into an ".sh" file. Going down this route however still didn't give the double click launch. I still had to go to the terminal and execute the script.
Can someone kindly point me in the right direction with this?
12-11-2008, 01:27 PM #2
- Member Since
- Mar 15, 2007
- 17" MacBook Pro, 2.33GHz C2D, 2GB RAM
If you need a shell script to be wrapped around your tool, you can use AppleScript to run the script, by creating an AppleScript something like the following in Script Editor and then saving it as an Application (which will give you a GUI icon to launch the script):
tell application "Terminal" to do script "~/bin/mywrapperscript.sh"
If you haven't done anything with AppleScript before, here's a series of web pages that should get you started: AppleScript: Beginner's Tutorial
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By cobalt in forum Running Windows (or anything else) on your MacReplies: 0Last Post: 09-11-2011, 11:55 AM
By cjburr in forum Running Windows (or anything else) on your MacReplies: 5Last Post: 06-18-2011, 03:02 PM
By Yalla-One in forum OS X - Apps and GamesReplies: 0Last Post: 01-24-2010, 08:11 AM
By Quashu in forum Images, Graphic Design, and Digital PhotographyReplies: 10Last Post: 05-30-2006, 03:37 AM
By iNAP in forum OS X - Operating SystemReplies: 3Last Post: 05-23-2006, 04:10 PM