Automatic Flight Check for iOS Retina Files

In iOS development it’s important to keep your image assets exactly double each others size.

This Applescript will color your files according to their presence and size relative to their “twin”. You can stick it to a folder using a folder action, or, better yet, using the included Hazel action, since that will also pick up on changes to files (regular folder actions only trigger on adding or deleting).

• GREEN = OK
• RED = Missing standard resolution
• ORANGE = Missing retina resolution
• PURPLE = Twin present, but wrong size

You can easily modify the script to remove the green labelling for files that are OK, I’m keeping it in for now to get feedback on if the script has run at all :)

Set it up in hazel like this:

Grab the script HERE!

Applescript, Service and Hazel rule to clean ZIP files of .DS_Store and __MACOSX cruft.

It performs the following commands on the selected zip:
zip -d Zipfile.zip \*.DS_Store
zip -d Zipfile.zip \*__MACOSX*

Which is just a long way of saying it deletes those files from any zip you feed it. Makes you popular with the Windows half of your network ;)

I included a service (Automator) that lets you run these commands on arbitrary files. I suggest feeding it a zip – and not an application bundle :)

I also included a hazel rule that applies this action to any zip on your desktop :)

To use this script with Alfred, you’ll need to get the powerpack too.

Grab the scripts here!