On 13/8/2006, at 5:02, William Scott wrote:
I am trying to write a simple osascript command-line utility that acquires the directory of the file displayed in the frontmost TextMate editor window, and am having trouble.
[...] but the variable $TM_DIRECTORY is apparently empty.
Is there another way to accomplish this, with or without applescripting? (I'd prefer a less pathological scripting language.)
The shell variables are only available from inside TextMate.
You are not running this as a normal TextMate command?