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:
1 2 3 4 | 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...
- OmniFocus clippings from Firefox Summary: In which Martin has created an AppleScript to remedy...
- Some Path Finder AppleScripts How’s that for a TitleCased title? So I’ve been checking...
- Center and resize window with AppleScript I use a 15″ MacBook Pro that I carry between...
- Show / Hide Window I’ve been using Yojimbo, for a long while now but...
