• 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: applescript-users digest, Vol 3 #2526 - 19 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 3 #2526 - 19 msgs


  • Subject: Re: applescript-users digest, Vol 3 #2526 - 19 msgs
  • From: Chad Lindsey <email@hidden>
  • Date: Mon, 15 Mar 2004 11:12:40 -0500

Nigel,
That is exactly what I am looking for. The delay that is hard scripted in my
watched folder script hangs up when a lot of files are added all at once, so
I guess I am just trying to figure out how to keep the watched folder script
running consistent. I will give it a try...

Thanks, Chad

>> Rename the file to the same name as what? Itself? That really doesn't
>> make much sense at all, unless the person was trying to some sort of
>> action on the file to get the Finder's databases updated.
>
> Unless...
>
> Perhaps you can't successfully rename the file before it has finished
> copying? So rather than having a hard-coded delay, which may be too long for
> some files and too short for others, you had something like (psuedocode):
>
> on incomingFile(theFile)
> set flag to false
> repeat until flag
> try
> set name of theFile to (name of theFile)
> set flag to true
> on error
> delay 10 seconds
> end try
> end repeat
> move theFile to somewhereElse
> end incomingFile
>
> Sort of a replacement to checking the "busy" flag.
>
> (And I'm not sure it would work, anyway. I can certainly rename a folder
> manually in the Finder while it and its contents are being copied onto my
> machine from a network share. Files may be different.)
>
> Just a thought,
>
> Nigel


_

Chad Lindsey
Fry Communications Inc.
Building #3 Electronic Pre Press
15 Pleasant View Drive
Mechanicsburg, PA 17050
1-800-334-1429 x3737
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: creating events with locations
  • Next by Date: I introduced High-speed Mt.Fuji to Frank Casanova II
  • Previous by thread: Re: creating events with locations
  • Next by thread: I introduced High-speed Mt.Fuji to Frank Casanova II
  • Index(es):
    • Date
    • Thread