Subscribe to our RSS news feed
AAPL 199.94 (-1.25)

 
Reply to this topic Start new topic
executing a bash script
*
  • Group: Members
  • Posts: 48
  • Joined: 20-August 08
  • Member No.: 275,894
What i m trying to do:

I wrote a simple bash script which starts a wine application from the terminal.

#!/bin/bash
wine /usr/local/share/wine/someapp.exe

Then i wanted to start it via Finder/Applications without a poping up terminal!

ln -s /usr/local/share/wine/someapp.exe /Applications/someapp.sh

right click in Finder under Application/someapp.sh, open with (Terminal).

I would like to chose /bin/bash directly to start the script instead of the "Terminal".

Any suggestions?




tnx, huhn911
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 48
  • Joined: 20-August 08
  • Member No.: 275,894
what i found out:

Link the script to /Applications which the name ends with .command

ln -s /usr/local/bin/WindowsProgrammSkript /Applications/WindowsProgrammSkript.command

or with

Applescript

do shell script "/opt/local/bin/wine /usr/local/share/wine/winprg.exe"


for an individual icon; right click on the "Application-Script", select the icon top/left, mv any icon (img2icns!) on the selected icon ...
PM Profile Card
Go to the top of the page
+ Quote Post
Reply to this topic Start new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 21st November 2009 - 11:53 AM