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:
Bill Steele <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 29 Mar 2013 13:48:14 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Nope.

set foo to "Hello"
set bar to "World"
set Fred to foo & bar
--> "HelloWorld"



On Mar 28, 2013, at 2:46 PM, Stan Cleveland <[log in to unmask]> wrote:

> 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.
> 


Bill Steele
[log in to unmask]

ATOM RSS1 RSS2