View Single Post
dgcrane

 
Member Since: Jul 11, 2013
Posts: 4
dgcrane is on a distinguished road

dgcrane is offline
Hello,

I am having my first experience with a Mac for a media server I am trying to set up. Its going very well so far and working 98.5 % of the way I hoped for but I am hoping for some help with the last little bit.

I have been trying to make my first shell script to do what I am doing manually in the terminal. I assumed it could be like a bat file and just click on it and it would execute my three little lines

#!/bin/bash
export USEPADEVICE="XMOS USB 2.0 Audio Out"
export USEPAMAXSAMPLERATE=192000
open ~/Applications/SqueezePlay.app
exit

I am running a headless 10.6.8 and I have saved these lines a file called SqueezePlay.sh under my home directory.

Obviously, I got some problems, cause instead of executing, I get this :
Last login: Thu Jul 11 15:43:03 on ttys000

mac-mini:~ gena_mak$ ./SqueezePlay
./SqueezePlay: line 1: {rtf1ansiansicpg1252cocoartf1038cocoasubrtf360: command not found
./SqueezePlay: line 2: syntax error near unexpected token `}'
./SqueezePlay: line 2: `{\fonttbl\f0\fswiss\fcharset0 Helvetica;}'

I tried putting the same information into an applescript and that didn't work out very well either LOL

Thanks for any guidance you could give...

Darren
QUOTE Thanks