• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Deleting files from desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Deleting files from desktop (From: "Peter Nedeljkovich" <email@hidden>)

  • Prev by Date: AS and SSI
  • Next by Date: help needed-- probably a scoping problem
  • Previous by thread: Deleting files from desktop
  • Next by thread: Re: Deleting files from desktop
  • Index(es):
    • Date
    • Thread