
linux firefox get URL from downloaded file in bashscript
I change the default action for e.g. mime type PDF to a bash script. - works I get the filename of the downloaded pdf file in my bash script - works I can do things with this downloaded file - works
But can I get the download URL of this file in my script? It's not a dedicated URL in a tab - so I can not read the URL of the active tab.
It's a direct download link from, let' say, google search.
What do I have to do to get the URL of the downloaded file in a bash script?
Thank you in advanced!
I change the default action for e.g. mime type PDF to a bash script. - works
I get the filename of the downloaded pdf file in my bash script - works
I can do things with this downloaded file - works
But can I get the download URL of this file in my script?
It's not a dedicated URL in a tab - so I can not read the URL of the active tab.
It's a direct download link from, let' say, google search.
What do I have to do to get the URL of the downloaded file in a bash script?
Thank you in advanced!