Re: Help with moving folders via applescript
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