Re: Deleting files from desktop
Re: Deleting files from desktop
- Subject: Re: Deleting files from desktop
- From: Bill Briggs <email@hidden>
- Date: Fri, 18 May 2001 20:37:31 -0300
At 2:16 PM -0400 18/05/01, Peter Nedeljkovich wrote:
I'm quite new to AS so bear with me.
I've been trying to write a script which will move all files and
folders which should not be on the desktop onto another drive. For
example, file 1 and 2 as well as 3 disk partitions and the trash
must remain on the desktop and all else is to be moved to drive 2.
When I try to run:
move folders of desktop to disk "Drive 2"
move document files in desktop to disk "Drive 2"
I get an error that the trash cannot be moved off the desktop.
Trash is a folder, but you can't move it.
Run this and look in the result window.
tell application "Finder"
get kind of item "Trash"
end tell
Also, while the files are copied the disk, the original remains on
the desktop.
If you are moving to a different disk, then you have to delete the
originals after you move or copy the files/folders.
- web