Aug 07, '03 09:25:00AM • Contributed by: Anonymous
set thevariable to "bob.txt"
do shell script "ls ~/ >>~/Desktop/thevariable"That didn't work, so I played around with it and I came up with this, which does work:
set thevariable to "bob"
set thescript to "ls ~/ >>~/Desktop/" & thevariable & ".txt."
do shell script (thescript)Hope this helps someone...
