26 Aug 2016, 12:05

@tcbeatie said in Flic for Mac?:

I'm trying to set up the Flic for the simple task of turning the master volume up or down on my Mac. My script is the following;

#!/usr/bin/osascript
set curVol to output volume of (get volume settings)
if curVol > 90 then
set volume output volume 100
else
set volume output volume (curVol + 10)
end if

and yet when I load it into Flic, and then hit the button, I get "File at path did not contain a shebang: {file location}"

Help?

Thanks!

Well I don't know exactly what may be the issue here, but lets start with some simple troubleshooting before I dig any deeper:

  • Are you sure that you don't have any spaces or new lines at the start of the file? The '#' has to be the first character in the file.
  • Are you sure that all file permissions are set correctly? Obviously the program would have to read the file.

/Anton