• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem with "walk folder" in Jon's Commands 2.1.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with "walk folder" in Jon's Commands 2.1.2


  • Subject: Problem with "walk folder" in Jon's Commands 2.1.2
  • From: email@hidden
  • Date: Sun, 14 Jan 2001 02:01:04 -0500

I'm getting a "File not found" (-43) error when using the "walk folders"
command from Jon's Commands version 2.1.2. The problem occurs when I delete
a file that I walk across. In the following script, which deletes all files
in a folder, the error occurs when half the files are deleted. (If the
number of files is odd, the error occurs after (N+1)/2 are deleted.)

property dropbox : choose folder

script reaper
on open candidateFile
deleteFile candidateFile
end open
end script

walk folders dropbox with script reaper


The error is not occurring in the script's open handler: If I change the
handler to be

on open candidateFile
say "Enter"
deleteFile candidateFile
say "Exit"
end open

I get paired Enter-Exit events, and the error occurs after an Exit.

The problem goes away if I revert to version 2.0.5. It occurs under versions
2.1 and 2.1.2.

If I wrap the "walk folders" in a "try" loop and examine the error
parameters in detail, all I get are "File not found", number -43, offending
object +script;, partial result {}, and expected type {}.

--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden


  • Prev by Date: Help with Open using command
  • Next by Date: Help: using "record" freezes/crashes my G4
  • Previous by thread: Re: Help with Open using command
  • Next by thread: Help: using "record" freezes/crashes my G4
  • Index(es):
    • Date
    • Thread