Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 15 Nov 2001 06:55:09 -0800
On 11/15/01 6:37 AM, "B2 Fass-Holmes" <email@hidden> wrote:
>
I've taken the liberty of pasting the script in this message below. It
>
probably is misformatted because I have my email client configured for plain
>
text. If anyone could point me in the proper direction, I'd appreciate it.
>
<snip>
>
tell application "Finder" to set temp to (entire contents of i)
Without looking any further, I'd guess that the chances are that you've been
been bitten by the 'entire contents' Finder bug. This is the most notorious
bug in all AppleScript" it comes up with erroneous results for largish
folders without erroring or flagging. Presumably it's still not fixed in OS
10.1, although I'm not certain that anyone has tested it, so that may (hope
against hope) not be the case.
So even if your problem here is something completely different, you still
have this issue to contend with. Unfortunately, the best solution for OS
8/9, namely using the scripting addition Akua Sweets' 'the entries in'
command (with parameters 'as alias' and 'to a depth of -1') is not available
in OS 10.1. You'll have to use the Standard Addition 'list folder'
recursively in a repeat loop, re-composing alias forms each time, and hope
that the memory hangups which could sometimes result from recursive loops
will not be a problem in OS 10.1. Who knows - maybe even a repeat loop in a
Finder tell block just for 'items' of the folder and its subfolders might
not hit the terrible traffic jam that resulted in OS 9, although I'd guess
that 'list folder' would still give better results. It's time to test all
this out, I guess...
--
Paul Berkowitz