Re: Applescript-users Digest, Vol 3, Issue 398
Re: Applescript-users Digest, Vol 3, Issue 398
- Subject: Re: Applescript-users Digest, Vol 3, Issue 398
- From: Rick Davis <email@hidden>
- Date: Wed, 9 Aug 2006 07:59:32 -0400
On Aug 9, 2006, at 4:50 AM, dev_sleidy wrote:
... or (since there is no real need to open a folder, just to handle
items within it) ...
on open (these_items)
tell application "Finder"
activate
repeat with this_item in these_items
if (not (exists (folder "Documents" of this_item))) then make new
folder at this_item with properties {name:"Documents"}
move (items of this_item whose name is not in {"Desktop",
"Documents", "Downloads", "Library", "Movies", "Music", "Pictures",
"profile", "Public", "Roaming Media", "Sites"}) to folder "Documents"
of this_item with replacing
end repeat
end tell
end open
I'm not sure what I was doing wrong. But I'm glad I asked the
experts. Not only does this work, but it's cleaner too.
Thanks and Have A Great Day.
Rick Davis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden