AppleScript to switch to the current Finder directory while navigating the command line.

Run as a TextExpander snippet (set to "AppleScript") for maximum utility.