Re: Help with moving folders via applescript
Re: Help with moving folders via applescript
- Subject: Re: Help with moving folders via applescript
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 18 Dec 2005 13:56:57 -0500
On 12/18/05,
Jim Hankins <
email@hidden> wrote:
I get this
Finder got an error: Can't get every folder whose class = folder of desktop.
Yeah, you need to rearrange. It thinks that you're asking for every folder whose class is (folder of the desktop), which isn't a valid class.
Try this:
move (every folder of desktop whose class is folder) to folder...
When I try 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 whose class
is folder of
the desktop) to
the folder "Old Desktop" of
home
end
tell
On Dec 18, 2005, at 1:33 PM, Jim Hankins wrote:
Ah ha, yes and I confirmed if the disks were not there (by turning off that preference is Finder) the previous script worked as well. Thanks!!!
On Dec 18, 2005, at 1:21 PM, Mark J. Reed wrote:
On 12/18/05, Axel Luttgens <
email@hidden> wrote:
Jim Hankins wrote: [...]
move
every folder of the desktop to the
folder "Old Desktop" of home <<<<<<it errors on this line
[...]
Doesn't "every folder of the desktop" return a list with every disk showing on the desktop as well as the destination folder too?
The destination folder isn't on the Desktop; it's in the user's home directory. The disk thing looks like it's the problem, though. "every folder whose class is folder" looks redundant but works fine.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription:
_______________________________________________
Do not post admin requests to the list. They will be ignored.
--
Mark J. Reed <
email@hidden>
_______________________________________________
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