My objective is to combine two text files and send them through Unix mail as message body.
The script to combine the two files into one works just fine:
do shell script "cat " & (quoted form of PosixPath & "errorlog.txt ") & (quoted form of PosixPath & "camcapture.jpg") & " >> " & (quoted form of PosixPath & "concat.txt")
But when I try to do the same with mail I get only part of the total, with at least the contents from errorlog.txt completely missing.
do shell script ("cat " & (quoted form of PosixPath & "errorlog.txt ") & (quoted form of PosixPath & "camcapture.jpg") & " | mail -s \"" & theSubject & "\" " & theAddress)
(please note that the .jpg files are actually uuencoded imagefiles, so they are actually text files.)
Anybody any clue?