View Single Post
My guess is that you may have saved this from TextEdit, which is fine, but TextEdit can save in two different formats:
  1. Plain text
  2. Rich Text (RTF)

Looks like you have saved it as an RTF file, which is legible to humans but not to command shells.

The trick is to make a fresh plain text copy,
TextEdit > Format > Make Plain Text ⌘⇧T
and then use the chmod +x command again to make it executable.

Good luck !