I’ve created a few Finder automator services for Mac OS X to help with generating prefetch statements. These allow you to right click on a file in the Finder and copy the sha1, size or sha256 to your clipboard.
To install them just open the zip and double click the .workflow files and you will be prompted to install them (or open them with automator to see what they actually do).
Yes, that wouldn’t be too difficult. Thoughts on the url? Blank? Configurable? Placeholder?
I wanted to do something with extended attribute data to grab the url the file was originally downloaded from, but that would only work if the file was downloaded using a web browser on the Mac. Similar to this - https://github.com/jakepetroules/wherefrom/blob/master/wherefrom
And I added two new services, ‘Make-Prefetch from File’ and ‘Make-Prefetch from URL’. These are based on the make-prefetch.py utility (https://github.com/bigfix/make-prefetch). With a small modification for grabbing the url metadata from a file, or if it doesn’t exist it will use the default value of ‘http://REPLACEME’
I think it could be a user of that project or a similar one, but I think it is its own separate thing, unless that project becomes the location to put many different items that create prefetches even if they are otherwise independent.