[TxMt] Commands with AppleScript question ???

Mats Persson mats at imediatec.co.uk
Fri Dec 31 15:46:04 UTC 2004

I've been trying to get into the habit of using CVS, so I have created 
a few TM command scripts that performs the basic CVS shell commands.

HOW do I convert the text returned from a Finder display dialog script 
into a shell variable ????

sort of like this:
osascript -e "tell application \"Finder\"
display dialog \"mxCVS::Commit Message\" default answer 
theDefaultAnswer buttons {\"Cancel\", \"OK\"} default button 2
set the theMessage to the text returned of the result
end tell"

$CVSmsg = output from the above AS script

I'm having a bug problem with the Applescript execution of "do shell 
script", as AS can't somehow access $CVSROOT from .bash_profile or even 
from /etc/profile which really pisses me off.  Every other aspect of 
CVS works OK, but not through AS.

Kind regards,


More information about the textmate mailing list