{"id":270,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=270"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"find-out-where-your-downloads-came-from","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=270","title":{"rendered":"Find out where your downloads came from"},"content":{"rendered":"<p>When you download files with NetPositive, the download URL is stored in the file&#8217;s META:url attribute. So if you want to be reminded of where you downloaded a file from, open a Terminal and type:<\/p>\n<pre>catattr META:url filename.zip<\/pre>\n<p>Alternatively, open the file with DiskProbe and use its Attributes menu to learn the URL. But be careful with DiskProbe &#8212; don&#8217;t edit anything while you&#8217;re in there! Death or nausea may ensue.<\/p>\n<hr \/>\n<p>Here&#8217;s a little script contributed by <a href=\"mailto:Alexander.Paersch@gmx.de\">Alexander Paersch<\/a> to comfortably get the URL of a downloaded file (save as whatURL):<\/p>\n<pre>\nif [ -z $@ ] ; then\necho\necho Syntax of whatURL :\necho\necho whatURL  path\/file\necho\necho\nelif [ -z $(echo | catattr META:url $@ 2&amp;gt; \/dev\/null | awk '{ print $5; }')\n ] ; then\necho Cannot find the URL for that file.\nelif [ -f $@ ] ; then\nOutput=$(echo | catattr META:url $@ 2&amp;gt; \/dev\/null | awk '{ print $5; }')\necho The URL is:  $Output\nelse\necho Couldn't find the file or maybe the path points to a folder or a symlink.\nfi<\/pre>\n<p>If you replace the line <\/p>\n<pre>echo The URL is: $Output<\/pre>\n<p> with <\/p>\n<pre>NetPositive $Output &amp;<\/pre>\n<p> Net+ will automatically open with that URL. Nifty for cancelled downloads&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you download files with NetPositive, the download URL is stored in the file&#8217;s META:url attribute. So if you want to be reminded of where you downloaded a file from, open a Terminal and type: catattr META:url filename.zip Alternatively, open the file with DiskProbe and use its Attributes menu to learn the URL. But be [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[13],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","tag-tracker"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}