cpd73 wrote: 
> The "command" can be any command - all Material does here is blindly
> call whatever is set in the string.

Well, I've made a first stab. For the moment all I'm trying to do is get
"Edit with foobar" to appear on the right-click menu and send the path
of the playing item to my little .vbs script when I click it. 

I edited actions.json as follows:  


Code:
--------------------
    {
  "track":[
  {
  "title":"Copy file location",
  "script":"lmsCommand('$ID', 
  ['status', '-', '1', 'tags:u']).then
  (({data}) => {copyTextToClipboard
  (decodeURI(data.result.playlist_loop
  [0].url));});",
  "icon":"file_copy"
  
  \"TITLE\":\"EDIT WITH FOOBAR\",
  \"COMMAND\":\"START /B O:\MES_DOCUMENTS\COMPUTER\SCRIPTING\LMS2FOO.VBS 
$TRACKID\",
  \"ICON\":\"FILE_COPY\"
  }
  ]
  }
--------------------


The part I added is in bold. Now neither "Copy file location" nor "Edit
with foobar" show up in the right-click menu.  I'm sure there's a stupid
error I'd see if I... weren't so stupid ;-[



_______________________________________________________________________
Logitech Media Server Version: 8.0.0 - ARCH-AUR-GIT.20200807.1a544e3
running on Wandboard Quad, music library on USB HDD
Squeezebox Touch plugged into run-of-the-mill stereo rig via Musical
Fidelity X-Act, extra speakers in kitchen, basement, and bedroom
connected by ordinary (not unidirectional) copper wire.
------------------------------------------------------------------------
Lestrad's Profile: http://forums.slimdevices.com/member.php?userid=40857
View this thread: http://forums.slimdevices.com/showthread.php?t=113145

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to