Re: Deleting files
Re: Deleting files
- Subject: Re: Deleting files
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 07 Mar 2004 18:38:31 -0800
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
_______________________________________________
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.