Re: Deleting files
Re: Deleting files
- Subject: Re: Deleting files
- From: Deivy Petrescu <email@hidden>
- Date: Sun, 7 Mar 2004 22:02:12 -0500
At 6:38 PM -0800 3/7/04, Paul Berkowitz wrote:
On 3/7/04 6:30 PM, "Rob Jorgensen" <email@hidden> wrote:
At 6:12 PM -0800 3/7/04, Paul Berkowitz wrote:
It might be that the desktop is "busy" and can't tend to the next command
unless you add 'update': update might ensure that the script receives a
message back back from the Finder that it's now no longer busy.
The thing about 'delete' from the Standard Suite is that - like 'save'
(which is not in the Finder dictionary) but not many other commands - it
does not return a result. [1] So the script
must move on to the next command
after a 'delete' even if the Finder is still in the process of moving it to
the trash and the desktop is busy. 'update' probably waits until the "all
clear" before allowing the script to proceed.
[1] 'move' and 'duplicate' return results, but I think that AppleScript
doesn't always wait for the result, unlike other commands. Back in Classic,
this created a lot of trouble, and I ended up
always using Jon's or Akua. It
doesn't seem to be a problem in OS X.
Maybe I'm misunderstanding you, Paul, but on my Jaguar system, Finder
returns a reference to deleted items.
Oops, so it does, on Panther too. So much for that idea. But perhaps it acts
as move and duplicate (or maybe this only happened in Classic, not X) and
lets the script move on too soon before the process is complete.
--
Paul Berkowitz
Paul,
I believe that it could be what you suggested
above, depending on the command (and we can
check, or better, Bernard can check, since I get
no error whatsoever when running the script) it
would wait for the database to be updated.
I do not recall if Bernard said that delay worked.
Do you have the problem that Bernard discussed or it worked on your OS?
--
Regards
Saudagues
Deivy
http://www.dicas.com
_______________________________________________
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.