• 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
Help with moving folders via applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with moving folders via applescript


  • Subject: Help with moving folders via applescript
  • From: Jim Hankins <email@hidden>
  • Date: Sun, 18 Dec 2005 10:45:21 -0500

Greetings All,

I'm new to the list and applescript.  I'm going through the Missing Manual on Apple Script and there is an example I'm not able to get to work.

The script compiles fine and moves files but not folders.  I suspect perhaps there might be a different construct required when moving folders?

tell application "Finder"
if not (the folder "Old Desktop" of home exists) then
make new folder at home with properties {name:"Old Desktop"}
end if
move every file of the desktop to the folder "Old Desktop" of home
move every folder of the desktop to the folder "Old Desktop" of home  <<<<<<it errors on this line
end tell



 _______________________________________________
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

  • Follow-Ups:
    • Re: Help with moving folders via applescript
      • From: Axel Luttgens <email@hidden>
    • Re: Help with moving folders via applescript
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Best practices for creating and comparing lists of text?
  • Next by Date: Re: Help with moving folders via applescript
  • Previous by thread: [ann] Appscript Installer 1.2 released
  • Next by thread: Re: Help with moving folders via applescript
  • Index(es):
    • Date
    • Thread