Enable Quick Look of ActionScript and Flex files on Snow Leopard
Having Adobe CS4 and Mac OS X Snow Leopard both installed is very likely to mess up Quick Look of Flash ActionScript (.as) and Flex (.mxml) files. Most inconvenient for those used to browsing through the files and looking into them by just hitting the Space key.
Fortunately, there's qlcoloecode – A Quick Look plugin for source code with syntax highlighting. With just a bit of tweaking you can have your AS/MXML Quick Look back:
- Download qlcoloecode
- Copy the downloaded
QLColorCode.qlgenerator
file to/Library/QuickLook
- Right-click
QLColorCode.qlgenerator
- Choose
Show Package
- Locate the
Info.plist
file - Find the
LSItemContentTypes
key and add the following string to the array:
com.apple.applesingle-archive
You should now be able to Quick Look your AS/MXML files.
Despite the fact that AS3 syntax highlighting of qlcoloecode is a bit shoddy, it's still far better than just the AS file icon: