MACSCRPT Archives

May 2010

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, 21 May 2010 10:53:50 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
On May 21, 2010, at 10:06 AM, Mark Lively wrote:

> On May 21, 2010, at 9:55 AM, Bill Steele wrote:
>
>> I've been doing this for years and all of a sudden...
>>
>> set foo to choose folder --> "HardDisk:foldername:otherfoldername:"
>> set bar to list folder foo
>> set oneFile to item 2 of bar --> "somefile.txt
>> set newName to foo & oneFile as string -->  
>> "HardDisk:foldername:otherfoldername:#somefile.txt"
>>
>> Where did the (expletive deleted) pound sign come from?
>
> What is Applescript's text item delimiters set to?

Interesting.  They seem to be set to "#". Xunno how that happened.
But should Applescript be putting a text item delimiter into a  
concatenation?

>
> -Mark
> Who just had that randomly break in a script yesterday.

Bill Steele
[log in to unmask]

ATOM RSS1 RSS2