Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Janje

macrumors newbie
Original poster
Apr 19, 2011
1
0
Dear all,

i'm a fairly competent PC user and a newbie Mac user. I just purchased a MBP 15". After a lot of browsing and reading and installing and testing, I have it the way I want. I even got timemachine to work on an unsupported NAS. (took me some time)

Now I want to backup to my HDD. Not with timemachine, because i want to be able to access the files from my PC! (I formated the HDD in exFAT) I wanted to use rsync and also got that working from the terminal.

However i wanted to write a script. I can easily write a .bat in windows. To run just double click. Now i wrote a .sh file, starting with shebang. I wrote the file in texteditor and changed to extension to .sh.

However now if I doubleclock it, it starts in applescripts... But I just want it to be executed in terminal. How to do? I already changed the "open with" to terminal (which was not listed as recommended application) and this seems to work, however I don't think this is the proper way to go?

Pls some advise!

Thx,
Jan
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.