Re: applescript-users digest, Vol 3 #552 - 7 msgs
Re: applescript-users digest, Vol 3 #552 - 7 msgs
- Subject: Re: applescript-users digest, Vol 3 #552 - 7 msgs
- From: "Robert J. Rust" <email@hidden>
- Date: Mon, 17 Jun 2002 09:32:14 -0500
I am guessing you are using Assimilator under MacOS 9 (or earlier). If so,
I have encountered the same problem. Since Assimilation can sometimes put a
*lot* of files into the Trash, it's hard to come up with a robust script to
deal with it. I tried several different script variations to attempt to
make sure all the items in the trash were unlocked but these generally
failed when dealing with hundreds or thousands of files.
My solution was to hack the Finder (9.0.4) and set the keyboard shortcut for
the Empty Trash command, then use Sandi's Additions to TypeText
command-option-t to force-empty the trash. I also had to write a loop to
check if the trash was still emptying (= still has items in it) before
allowing the script to continue. If you want the code for this, let me
know, but it's not difficult.
If anybody knows of a way to perform the same task with the MacOS 9.2
Finder, I would appreciate knowing. I have been unable to change the
keyboard shorcut for that version and TypeText can't handle
command-shift-option-delete.
>
>
Hi All,
>
>
I have written a script to delete a folder! However when it contains locked
>
items the
>
script generates an error! How can I delete normal items as well as ones
>
which have
>
been locked.
>
>
Any help would be greatly appreciated
>
cheers
>
>
Craig
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Robert J Rust
Microcomputer Support Specialist
UW - River Falls IT Services
(715) 425-4357
email@hidden
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
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.