4

running the following code in Script Editor

app = Application('Spotify');
app.soundVolume

returns

[function anonymous] {
  "name":"", 
  "prototype":{"constructor":[function anonymous]}
}

instead of an integer value. If I try to run the function the Script Editor stops me with the error:

Error: Message not understood

Yannick
  • 535
  • 4
  • 18
  • got stuck on the same problem, maybe their API is not yet compatible with JXA – mateusmaso Jun 28 '15 at 22:21
  • 1
    @mateusmaso You mean JXA is not compatible with Spotify. AppleScript is—and always has been—the de facto standard against which **all** scriptable apps are developed and tested. When JXA falls over on tasks that work perfectly well in AppleScript, that's a design defect or bug in JXA for failing to follow that spec. During the 10.10 beta I found so many I gave up sending bug reports and just sent the AS team a [working JavaScriptOSA implementation](http://sourceforge.net/projects/appscript/files) to copy from instead, but they ignored it and shipped their own broken version…to everyone's loss. – foo Jul 01 '15 at 10:07
  • @foo good and sad to know hahah, it really seems to be a bad bridge between AS spec to JXA spec.. let's wait until they fix it – mateusmaso Jul 03 '15 at 03:10
  • Would be very interested to know if this has been overcome. Not sure why it has a JavaScript dictionary if none of the functions actually work. – Brady Dowling Oct 07 '16 at 05:10

0 Answers0