You need to use the "get system attribute' command from applescript :
Here is a textmate command example :
osascript -e 'set TM_FILEPATH to get system attribute "TM_FILEPATH"' -e
'tell application "svnX" to diff TM_FILEPATH'
On 31 déc. 04, at 16:46, Mats Persson wrote:
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,
Mats
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate