Using Python and AppleScript Together
Subject:   A generic problem with this
Date:   2007-05-12 15:27:11
From:   noahgift
Response to: A generic problem with this

That is the correct way to escape from the command line. Good comment. Your way might be a little less confusing for people than my way as well.

Of course the poster above has two problems which is the worst kind. A bad installation possibly, plus, the wrong quoting(syntax).