New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

MS-DOS batch file equivelent on OSX


Post Reply New Thread Subscribe

 
Thread Tools
baalh

 
Member Since: Dec 11, 2008
Posts: 1
baalh is on a distinguished road

baalh is offline
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?
QUOTE Thanks
mystic_fm

 
Member Since: Mar 15, 2007
Posts: 161
mystic_fm will become famous soon enough
Mac Specs: 17" MacBook Pro, 2.33GHz C2D, 2GB RAM

mystic_fm is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Regex help.... | installing 'ack' and terminal help »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
What is up with Quicken 2007 Mac ImBatman OS X - Apps and Games 3 03-30-2012 11:03 AM
File name problems NeilBarber Images, Graphic Design, and Digital Photography 5 04-25-2007 07:15 AM
printing PostScript with OSX davidp158 OS X - Operating System 9 02-09-2005 08:56 PM
editing the host file in OSX??? stu_69 OS X - Operating System 8 10-03-2003 01:03 PM
File Permissions in OSX fosdyke Apple Desktops 0 09-24-2003 09:01 AM

All times are GMT -4. The time now is 11:41 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?