3 ms·
A nice feature that could be implemented on OS X would be to auto-organize files by the domain they're downloaded from. Safari on OS X puts the source link of
by zdw 14y ago
A nice feature that could be implemented on OS X would be to auto-organize files by the domain they're downloaded from.
Safari on OS X puts the source link of a downloaded file in the spotlight metadata, which can be accessed via "mdls" - an excerpt:
$ mdls Inconsolata-Bold.ttf
-- other metadata --
kMDItemWhereFroms = (
"http://googlefontdirectory.googlecode.com/hg/ofl/inconsolata/Inconsolata-Bold.ttf,
"http://code.google.com/p/googlefontdirectory/source/browse/ofl/inconsolata/Inconsolata-Bold.ttf
)
Personally, I'd find that much more useful than the "all pdf's are books" example.
- mbudde 14y agoThere's this example from the README which seems to do what you are asking for: Maid.rules do rule 'Old files downloaded while developing/testing' do dir('~/Downloads/*').each do |path| if downloaded_from(path).any? {|u| u.match 'http://localhost'} && 1.week.since?(last_accessed(path)) trash(path) end end end end