Page 1 of 1

Open an URL with value in Clipboard

Posted: 02 Jul 2019 23:45
by cldcp00
Hi there,

I have to managed to set a go to location to go YouTube, but is it possible to get a script to pass a value? i,e Artist name or the name of the song.

This will save me having to cut and paste the value from the clipboard.

Thanks for any help

Regards

Re: Open an URL with value in Clipboard

Posted: 03 Jul 2019 00:12
by highend
And that value comes from... where?

Re: Open an URL with value in Clipboard

Posted: 03 Jul 2019 00:29
by cldcp00
I have a script that puts the artist and song name into the clipboard

Re: Open an URL with value in Clipboard

Posted: 03 Jul 2019 07:33
by highend
Then let your new script use the <clipboard> variable?

Re: Open an URL with value in Clipboard

Posted: 03 Jul 2019 14:09
by cldcp00
highend wrote: ↑03 Jul 2019 07:33 Then let your new script use the <clipboard> variable?
Thanks Highend

i managed to get it working Just one small issue I am trying the send the clipboard value enclosed in quotes i.e " The Temptations"

I tried "<clipboard>" but did not get the desired results.

You help is very much appreciated

Regards

Re: Open an URL with value in Clipboard

Posted: 03 Jul 2019 14:18
by highend
quote(<clipboard>)

Re: Open an URL with value in Clipboard

Posted: 03 Jul 2019 20:00
by cldcp00
highend wrote: ↑03 Jul 2019 14:18 quote(<clipboard>)
Hi Highend

Sorry to be a pain. I cannot seem to get quote(<clipboard>) to work

When this script is run it puts the value into the clipboard without quotes

copytext property("#tag.artist") ;

How can it be modified to have quotes around the string "The Temptations My Girl"

Thanks you for your help

Regards

Re: Open an URL with value in Clipboard

Posted: 03 Jul 2019 20:17
by cldcp00
Hi Highend

With a bit of trial and error I have now got it working

used

copytext quote(property("#tag.artist"));

thanks again for your help

Regards

Re: Open an URL with value in Clipboard

Posted: 03 Jul 2019 20:18
by highend
Em...

copytext quote(property("#tag.artist"));