Scenario: You’re working with the Flex SDK and you’re tracing messages to the Terminal via flashlog.txt. The damn logfile has heaps of clutter in it from the last project you were working on, and you want to clean it up.
Solution: Save this snippet and assign it a Quicksilver hotkey:
try
do shell script "rm ~/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt"
do shell script "touch ~/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt"
end try
Result: You are happy. Go drink beer.
Possibly related posts:
- A few random AppleScript snippets I was just writing an AppleScript to look up words...
- Some Path Finder AppleScripts How’s that for a TitleCased title? So I’ve been checking...
- OmniFocus clippings from Firefox Summary: In which Martin has created an AppleScript to remedy...
- Quicksilver actions the easy way Just encountered bliss deep down in the Quicksilver Google...
- Center and resize window with AppleScript I use a 15″ MacBook Pro that I carry between...