Re: Deleting files
Re: Deleting files
- Subject: Re: Deleting files
- From: Rob Jorgensen <email@hidden>
- Date: Sun, 7 Mar 2004 21:30:06 -0500
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.
-- Rob
_______________________________________________
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.