Creating your own launch Application

Discussion in 'Mac Apps and Mac App Store' started by telemark948, Sep 18, 2010.

  1. telemark948 macrumors member

    Joined:
    Jul 31, 2010
    #1
    I have an shell script that I launch from the command line. Is there an easy way to run this script using its own Icon in the applications folder.

    Thanks

    Andy
     
  2. dws90 macrumors regular

    Joined:
    Jan 16, 2008
    #2
    There very well may be a way to do this directly, but it could be easily accomplished by creating an AppleScript application that calls your shell script. The AppleScript editor will allow you to save the script as an application bundle.
     
  3. telemark948 thread starter macrumors member

    Joined:
    Jul 31, 2010
    #3
    Thanks for advice. I have been trying unsuccessfully to get the AppleScript Editor to work.

    The shell script is not mine, I downloaded DbSchema which I run from the terminal window just with ./dbschema.sh as it doesn't have a application launcher with it, this works fine and launches the script.

    But with the Apple Script Editor I get an error

    I have tried:
    do shell script "~/Applications/DbSchema/dbschema.sh"
    do shell script " /bin/tcsh -c '~/Applications/DbSchema/dbschema.sh'"
    do shell script " /bin/csh -c '~/Applications/DbSchema/dbschema.sh'"

    and other various combinations.

    The error I get is
    It would be nice to figure out where i have gone wrong. However I did manage to create an app from the script using ScriptGUI.app.

    Thanks

    Andy
     
  4. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #4
    Have you tried making an Automator app that will run the shell script?
     

Share This Page