Prefetch Automator Services for OS X

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).

https://psu.box.com/s/dp5pqur9url8chwtd0qoorz8st2hq931

1 Like

Could a single automator service just make a full prefetch?

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

1 Like

I’d prefer a placeholder for the URL, but Blank works as well.

1 Like

I added this to GitHub to make things a little easier. https://github.com/hansen-m/bigfix-automator-services/

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

1 Like

Very cool!

Also, I agree with having a placeholder, particularly because if it happens to already be cached, you don’t actually have to change it for it to work.

Does it make sense to add this kind of thing to the bigfix make-prefetch project on github ?
You could submit a PR to the project.

1 Like

Might make sense, although the Services are entirely dependent on OS X.

1 Like

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.