Re: What does "Finder could not get folder..." mean? (tell block abuse)
Re: What does "Finder could not get folder..." mean? (tell block abuse)
- Subject: Re: What does "Finder could not get folder..." mean? (tell block abuse)
- From: JollyRoger <email@hidden>
- Date: Thu, 02 Aug 2001 08:04:35 -0500
On 8/1/2001 10:59 PM, "Frank Miedreich" <email@hidden> wrote:
>
while I agree with the general idea about being careful with the tell
>
blocks, IMHO this is not relevant here. A quick look at the
>
appleevents protocol will tell you that the tell block will extend
>
around the repeat loop in both versions:
>
(snip)
I see it now! My bad. Sorry for jumping the gun Chris!
>
This is also true if you make an explicit tell block with an end tell
>
in version a.
>
I think reason is that the line "set pathList to pathList & ..."
>
needs to be executed by the finder as the list items are files. In a
>
string context Applescript needs to transform the file objects to
>
string representations, the Finder can do that by delivering the path
>
to the file. So Applescript will extend the tell block, regardless of
>
where you put end tell.
>
Note that the script works without any problem for me, on a German OS
>
9.1 with Applescript 1.6.
Works for me too on English OS 9.1, AppleScript 1.6.