Icon/shortcut to execute a command

jakaj

macrumors member
Original poster
Oct 12, 2006
53
0
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
 

Hobofuzz

macrumors regular
Oct 9, 2006
129
0
jakaj said:
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
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.
 

jakaj

macrumors member
Original poster
Oct 12, 2006
53
0
Hobofuzz said:
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.
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...).
 

beatsme

macrumors 65816
Oct 6, 2005
1,204
1
jakaj said:
Hi,

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

Jaka
AppleScript will do it. What exactly are you wanting to do?
 

Similar threads

  • Arcade
1
Replies
1
Views
148
Replies
3
Views
481
  • jasonfodor
0
Replies
0
Views
382
  • hawkeye_a
7
Replies
7
Views
829
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.