• 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: cleaning my desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cleaning my desktop


  • Subject: Re: cleaning my desktop
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 3 Oct 2007 19:37:18 +0200


Le 3 oct. 07 à 19:11, William Chu a écrit :

Hi,
Need to make an applescript that can organize all my files on the desktop to the appropriate folders (documents, music, pictures, movies) during shutdown, restart, or logging off. Can anybody help me, please. My desktop is getting cluttered by the hour
Will


Hello

I'm not here to tell you how you must use your machine ;-)
so I post what may be  a point of departure

set p2d to path to desktop as Unicode text
tell application "Finder"
set theDocs to every document file in folder p2d

repeat with f in theDocs
set f to f as Unicode text
set k to kind of item f
set f to f as alias
if k = "Document Numbers" then ¬
move f to folder "the_folder_where_you_want_to_store_this_kind_of_file"
if k = "Publication Pages" then ¬
move f to folder "the_folder_where_you_want_to_store_this_kind_of_file"
-- add other kinds here
display dialog "" & f & return & k (* to see the true kind strings *)
end repeat
end tell


Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >cleaning my desktop (From: "William Chu" <email@hidden>)

  • Prev by Date: Re: cleaning my desktop
  • Next by Date: Re: cleaning my desktop
  • Previous by thread: cleaning my desktop
  • Next by thread: Re: cleaning my desktop
  • Index(es):
    • Date
    • Thread