• 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: "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.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden email@hidden




--
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

  • Follow-Ups:
    • Re: Help with moving folders via applescript
      • From: Jim Hankins <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: "Mark J. Reed" <email@hidden>)
 >Re: Help with moving folders via applescript (From: Jim Hankins <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: Help with moving folders via applescript
  • Previous by thread: Re: Help with moving folders via applescript
  • Next by thread: Re: Help with moving folders via applescript
  • Index(es):
    • Date
    • Thread