To what extent is TM applescriptable? Is it at least possible to somehow replicate this chunk of script re TM? tell application "BBEdit" set theSelection to the contents of selection end tell I'm wanting to use TM with the PHP Function Index from artis: http://www.artissoftware.com/phpfi/ bongoman