Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with Error #11

Open
wazzamagoo opened this issue Oct 29, 2016 · 6 comments
Open

Help with Error #11

wazzamagoo opened this issue Oct 29, 2016 · 6 comments

Comments

@wazzamagoo
Copy link

Hi,

I have installed Hax with FLIC, and bonded a Flic. I have downloaded two applescripts to the desktop. One for VLC pause and one for VLC fullscreen. Both scripts are able to be executed in Script editor, however when I press the FLIC I get a dialog saying File at path is not executable: /Users/Warren/Desktop/VLC_Pause.scpt
Do I need to alter the file location? or do I need to change permissions somewhere?

Cheers,

Warren

(https://cloud.githubusercontent.com/assets/9739214/19825586/d5d94e38-9dc6-11e6-902b-df19618ad1b9.png)

@AntonMeier
Copy link
Contributor

Hello, The problem is that the file you have created does not have excecute permission. If you download the files from this directory directly then they should work because those files already have the correct permission. Nevertheless, if you wish to set the permission manually on your file then you can do the following:

  1. Open the Terminal application.
  2. Go to the directory where the file is located. (cd /Users/Warren/Desktop)
  3. Change the permission on the file using chmod. (chmod +x VLC_Pause.scpt)

Let me know if that works!

/A

@wazzamagoo
Copy link
Author

I did that, now I get a ”File at path did not contain a shebang” error. The Shebang exists, and is the first line of code.

W

On 29 Oct 2016, at 7:00 PM, Anton Meier [email protected] wrote:

Hello, The problem is that the file you have created does not have excecute permission. If you download the files from this directory directly then they should work because those files already have the correct permission. Nevertheless, if you wish to set the permission manually on your file then you can do the following:

Open the Terminal application.
Go to the directory where the file is located. (cd /Users/Warren/Desktop)
Change the permission on the file using chmod. (chmod +x VLC_Pause.scpt)
Let me know if that works!

/A


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #11 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AJSbzmyYhscehr9qbBR0lZQeSe0lPJQKks5q4v0ggaJpZM4Kj9x0.

@wazzamagoo
Copy link
Author

Anyone have any insight on how to solve this one?

@AntonMeier
Copy link
Contributor

If you get the error "File at path did not contain a shebang" then that simply means that the first line does not contain a shebang. Perhaps it is an issue with the script editor or something, I don't know. Try opening the script in a different code editor and see if it looks good.

To rule things out, please try and download one of my scripts directly (vlc-Fullscreen.AppleScript for example) and see if the same problem happens there.

@wazzamagoo
Copy link
Author

Hi Anton,

Thanks for your help, unfortunately when I download your scripts and do a CHMOD +x on them the shebang problem still exists. Which editor are you using?

W

On 3 Nov 2016, at 1:01 AM, Anton Meier [email protected] wrote:

If you get the error "File at path did not contain a shebang" then that simply means that the first line does not contain a shebang. Perhaps it is an issue with the script editor or something, I don't know. Try opening the script in a different code editor and see if it looks good.

To rule things out, please try and download one of my scripts directly (vlc-Fullscreen.AppleScript https://github.com/50ButtonsEach/hax-with-flic-osx/blob/master/scripts/VLC/vlc-Fullscreen.AppleScript for example) and see if the same problem happens there.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #11 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AJSbztBVBojbqzFr6Ly0EdvgXBWWgblzks5q6Je3gaJpZM4Kj9x0.

@mbgregg
Copy link

mbgregg commented Apr 9, 2020

Did you ever figure out what the issue was here, Wazzamagoo? I have the same problem and have a shebang in my AppleScript on the first line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants