• 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: Applescript-users Digest, Vol 3, Issue 398
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re:Printing to PDF from Safari
  • Next by Date: Detecting a keypress
  • Previous by thread: Re: rsync and backup
  • Next by thread: Detecting a keypress
  • Index(es):
    • Date
    • Thread