why doesn't my applescript run from terminal I can run it successfully from the editor
I run command
/usr/bin/osascript -e my_script.scpt
I get error
0:12: syntax error: A unknown token can’t go after this identifier. (-2740)
my script
set volume 2
set x to 0
open location "spotify:user:wunspe:playlist:meininki"
tell application "Spotify"
set the sound volume to 0
play
repeat 10 times
if sound volume is less than 70 then
set sound volume to (sound volume + 10)
set x to (x + 9)
set volume output volume x without output muted --100%
delay 3
end if
end repeat
end tell