• 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: Loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loops


  • Subject: Re: Loops
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 1 Feb 2008 17:01:50 -0700

On Feb 1, 2008, at 3:48 PM, Luther Fuller wrote:

When you move files by counting down they don't get reordered.

A good explanation and solution, but why index the files at all? If you are moving ALL the files in a folder, you can do this ...

tell application "Finder"
	repeat until (count files of somefolder) = 0
		move (some file of somefolder) to someotherfolder
	end repeat
end tell

Other than illustrating loops, why not this:

tell application "Finder" to move files of somefolder to someotherfolder

-- Michelle

--
History always complicates things.


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Loops
      • From: Luther Fuller <email@hidden>
References: 
 >Re: Loops (From: "J. Stewart" <email@hidden>)
 >Re: Loops (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Loops
  • Next by Date: Re: Loops
  • Previous by thread: Re: Loops
  • Next by thread: Re: Loops
  • Index(es):
    • Date
    • Thread