Jump to content

executing a bash script


  • Please log in to reply
1 reply to this topic

#1
huhn911

huhn911

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
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?

Posted Image


tnx, huhn911

#2
huhn911

huhn911

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
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 ...





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy