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

Re: Help with moving folders via applescript


  • Subject: Re: Help with moving folders via applescript
  • From: Neil Faiman <email@hidden>
  • Date: Sun, 18 Dec 2005 14:46:07 -0500


On Dec 18, 2005, at 1:22 PM, Jim Hankins wrote:

I got the following:

"Finder got an error: Illegal comparison or logical."


When I tried this:

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 whose (name is not "Macintosh HD" or "HD 2")) to the folder "Old Desktop" of home
end tell

"HD 2" is not a valid operand of the or operator, even in a whose clause. I believe that you want 

whose (name is not "Macintosh HD" and name is not "HD 2")

Regards,

Neil Faiman
 _______________________________________________
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

References: 
 >Help with moving folders via applescript (From: Jim Hankins <email@hidden>)
 >Re: Help with moving folders via applescript (From: Axel Luttgens <email@hidden>)
 >Re: Help with moving folders via applescript (From: Jim Hankins <email@hidden>)

  • Prev by Date: Re: Help with moving folders via applescript
  • Next by Date: Re: path names separators
  • Previous by thread: Re: Help with moving folders via applescript
  • Next by thread: path names separators
  • Index(es):
    • Date
    • Thread