• 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: Folder Actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Folder Actions (From: Graff <email@hidden>)

  • Prev by Date: Re: "Save changes to script" when it terminates?
  • Next by Date: Re: "Save changes to script" when it terminates?
  • Previous by thread: Re: Folder Actions
  • Next by thread: Re: applescript-users digest, Vol 3 #2517 - 15 msgs
  • Index(es):
    • Date
    • Thread