[OS X TeX] Re: Alpha, DoScript and non unix like paths
Maarten Sneep
maarten.sneep at xs4all.nl
Thu Jan 6 07:42:25 EST 2005
On 6 jan 2005, at 13:22, Joachim Kock wrote:
> tell application "AlphaX"
> set theAnswer to DoScript "win::getInfo " & "\"" & fileName & "\""
> & " " & "dirty"
> end tell
>
> This is not particularly elegant, but perhaps with AppleScript's " and
> &
> syntax there is no better solution?
Slightly shorter (pre-concatenate a few string constants):
tell application "AlphaX"
set theAnswer to DoScript "win::getInfo \"" & fileName & "\" dirty"
end tell
But that is as clean as it gets. Or you use some string constants:
set quote to "\""
set space to " "
tell application "AlphaX"
set theAnswer to DoScript "win::getInfo" & space & quote & fileName
& quote & space & "dirty"
end tell
Maarten
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list