2014-06-19, 09:20
(2014-06-19, 09:10)Hitcher Wrote: I'm having trouble converting the following action for use in movies.shortcuts.
Code:ActivateWindow(Videos,plugin://service.library.data.provider?type=randommovies,return
I've tried various combinations of the brackets, commas, colon, slashes and fullstops but always get a syntax error.
What am I missing?
Thanks.
I suspect you're missing that the actions in the .shortcuts files are url-safe for compatibility with the Gotham-method-of-filling-a-list-way-of-integrating-the-script. So the above (with the missing closing-bracket) would be:
Code:
ActivateWindow%28Videos%2Cplugin%3A//service.library.data.provider%3Ftype%3Drandommovies%2Creturn%29
Easiest way to generate these (the way I generated that one) is to use the management dialog to create the .shortcuts files - using a custom action if necessary, then copy and paste them to your skin before doing any minor tweaks, or just copy the actions out of them This is something that will be so much easier when the script switches to xml for these files/deprecates the Gotham method.