Icon/shortcut to execute a command

Discussion in 'macOS' started by jakaj, Oct 21, 2006.

  1. jakaj macrumors member

    Joined:
    Oct 12, 2006
    #1
    Hi,

    is it possible to create an icon that would execute a bash script or another command?

    I guess that should be possible on OS X too, since it's possible on every other UNIX based system. Heck, you can also do it in windows.

    One other small thing:
    Is it possible to make the dashboard pre-load the widgets. As it currently is, the first time I open the dashboard, widgets start loading, and that takes quite some time...

    Jaka
     
  2. Hobofuzz macrumors regular

    Joined:
    Oct 9, 2006
    #2
    If you know bash scripting, you can do it simply by writing a plain file with text in it and executing it from the terminal like you would any other program.
     
  3. jakaj thread starter macrumors member

    Joined:
    Oct 12, 2006
    #3
    Yah... I know.

    I'm asking if there's a possibility to launch it _WITHOUT_ opening a terminal first.

    In Windows/Linux/almost every other OS, you can do something like 'create a shortcut' and then set which command is to be executed (along with working directory, environment vars, etc...).
     
  4. beatsme macrumors 65816

    beatsme

    Joined:
    Oct 6, 2005
    #4
    AppleScript will do it. What exactly are you wanting to do?
     
  5. plinden macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #5
    Save your script as .command and it's double clickable.
     
  6. jakaj thread starter macrumors member

    Joined:
    Oct 12, 2006
    #6
    Excellent. Thank you!
     

Share This Page