Get URL of Browser Tab that contained Copied Text - Windows 10

56 views
Skip to first unread message

Dennis Bareis

unread,
Feb 24, 2022, 7:31:07 PM2/24/22
to CopyQ
Hi,

I either want to know how to obtain the URL of the currently active browser tab or obtain that at the time of copying to the clipboard if there is something like "application/x-copyq-owner-browser-url".

I found the following at: https://github.com/hluk/CopyQ/issues/566

[Command]
Automatic=true
Command="
    copyq:
    var time = dateString('yyyy-MM-dd hh:mm:ss')
    var window = str(data('application/x-copyq-owner-window-title'))
    var tagsMime = 'application/x-copyq-tags'
    var tags = str(data(tagsMime)) + ', ' + window + ', ' + time
    setData(tagsMime, tags)"
Icon=\xf017
Name=Store Copy Time


Where can the information be found about what "application/x-copyq-owner-window-title" is and what others might exist?  This was asked but the answer was incorrect (Check wiki page Command Examples. I usually update the page when I find useful new commands) as the mime type is obviously COPYQ specific (it says that in the name).

Thanks for any pointer :-)
Dennis

Lukáš Holeček

unread,
Feb 26, 2022, 1:20:49 AM2/26/22
to Dennis Bareis, CopyQ
Hi Dennis,


Unfortunately, there seems to be some bug causing the real values not to be rendered in the documentation (only the variables available from scripts are shown).

See the format string representation in the documentation source:


Lukas


--
You received this message because you are subscribed to the Google Groups "CopyQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to copyq+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/copyq/7d3e21a8-7b16-4163-a278-82f5bfe425f7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages