Results 1 to 2 of 2
  1. #1
    MS-DOS batch file equivelent on OSX

    Member Since
    Dec 11, 2008
    Posts
    1
    MS-DOS batch file equivelent on OSX
    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?

  2. #2
    MS-DOS batch file equivelent on OSX

    Member Since
    Mar 15, 2007
    Posts
    161
    Specs:
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. My MacBook thinks the OSX partition is MS-DOS.
    By cobalt in forum Running Windows (or anything else) on your Mac
    Replies: 0
    Last Post: 09-11-2011, 11:55 AM
  2. Exec. file wont run in DOS
    By cjburr in forum Running Windows (or anything else) on your Mac
    Replies: 5
    Last Post: 06-18-2011, 03:02 PM
  3. Using old DOS applications on OSX ?
    By Yalla-One in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-24-2010, 08:11 AM
  4. paint equivelent on osx
    By Quashu in forum Images, Graphic Design, and Digital Photography
    Replies: 10
    Last Post: 05-30-2006, 03:37 AM
  5. Format:MS-DOS File System (FAT32)
    By iNAP in forum OS X - Operating System
    Replies: 3
    Last Post: 05-23-2006, 04:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •