Re: cleaning my desktop
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