On 29/03/2013, at 5:46 AM, Stan Cleveland <[log in to unmask]> wrote:

> For normal text concatenation they need to be set to "".

I think you mean for coercion (from list to text), but that's not what has been posted here. For example:

set AppleScript's text item delimiters to {"#"}
set dPath to path to desktop as string
set newFiepath to dPath & "foo.txt" as string
--> "Macintosh HD:Users:shane:Desktop:foo.txt"

The "as string" in the third line is redundant.

The real mystery to me is how the posted code produced a POSIX path. I suspect the answer might be that the real code and the code posted here differ somewhat. For example:

set AppleScript's text item delimiters to {"#"}
set dPath to path to desktop -- as string
set newFiepath to dPath & "foo.txt" as string
--> "Macintosh HD:Users:shane:Desktop:#foo.txt"

This time the "as string" is both required and the indirect cause of the hash symbol.

-- 
Shane Stanley <[log in to unmask]>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>