• 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
Re: Repeat Loop Skipping Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repeat Loop Skipping Items


  • Subject: Re: Repeat Loop Skipping Items
  • From: Ehsan Saffari <email@hidden>
  • Date: Sat, 9 Jun 2001 04:39:36 -0600

On 09/06/2001 0:45, Steve Suranie <email@hidden> wrote:

>Has anyone had this happened before. I am running a script that checks a
>folder that allows the user to select a folder. The script then loops
>through all the items of the folder and if they are a TEXT type, opens them
>in Tex-Edit Plus and copies the contents into an existing file. The script
>read each file sequentially just like it was designed to. Good script.
>
>However, I then wanted to move the aforementioned read articles out of the
>folder to a seperate folder. When I added that bit o script the script
>continued to move sequentially through the files but in leaps of four or so.
>It did move those files it read but as I explained to my computer in no
>uncertain terms, that's not what it was designed to do. Bad script.
>
>Anyway, in scripting AppleScript terms I'm a relative newbie, (a few months)
>so I'm curious if anyone else has suffered through this and could send a
>tip/explanation to me how to fix this? (And lets not blame the programmer,
>right, we all know its the computer doing this) ; )
>
>Mucho gracias

Not having seen your code, I'd say

loop
transfer file contents to Tex-Edit
append file's path to the end of doneList
end loop
move all files in the doneList to another location

this should avoid the original problem and the overhead of making
multiple calls to Finder for moving the files.

cheers
ehsan


  • Prev by Date: Re: Scripting in OSX: Classic osaxen for Classic apps?
  • Next by Date: Type coercion question
  • Previous by thread: Repeat Loop Skipping Items
  • Next by thread: Re: Repeat Loop Skipping Items
  • Index(es):
    • Date
    • Thread