MACSCRPT Archives

March 2013

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Cleveland <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 28 Mar 2013 11:46:31 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
On Mar 28, 2013, at 7:11 AM, Bill Steele wrote:

> Applescript just doesn't like me these days. 
> 
> set dPath to path to desktop as string
> set newFiepath to dPath & "foo.txt" as string
> -->"MacHD/Users/Bill/desktop/foo.txt"
> 
> But now I insert this into a Filemaker script (FM11 0v4) and it produces
> 
> -->"MacHD/Users/Bill/desktop/#foo.txt"
> 
> Where did the pound sign come from?

Hi Bill,

The most likely suspect is AppleScript's text item delimiters. An aborted script run may have left them set to "#". For normal text concatenation they need to be set to "".

Stan C.

ATOM RSS1 RSS2