[TxMt] Simple textmate applescripting question

Allan Odgaard throw-away-1 at macromates.com
Mon Aug 14 00:25:35 UTC 2006


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?






More information about the textmate mailing list