Re: Folder Actions
Re: Folder Actions
- Subject: Re: Folder Actions
- From: Nigel Smith <email@hidden>
- Date: Mon, 15 Mar 2004 14:08:10 +0000
On 12/3/04 21:49, "Graff" <email@hidden> wrote:
>
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
_______________________________________________
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.