Re: Loops
Re: Loops
- Subject: Re: Loops
- From: m <email@hidden>
- Date: Fri, 1 Feb 2008 23:27:54 -0800
All sage advice.
The problem I keep running into seems two fold.
There seems to be a limit on the number of files ( in this case Mail
files ie emails) that one can move at one time. Exceeding this mystery
number leads to the error that Mail is unresponsive. OTOH, looping
through a number of mails, one at a time, does seem to hit a speed
bump at some point. but the point raised about the implementation of
the loop may have played a role.
I do take the other points about not starting with Mail, but the AS
mail scripting program I saw does not work for me, and I am trying to
write something that I have needed on more than one occasion.
Besides, I like the challenge and the chance to interact with really
smart and intelligent programmers!!! :-)
On Feb 1, 2008, at 4:13 PM, Luther Fuller wrote:
On Feb 1, 2008, at 6:01 PM, Michelle Steiner wrote:
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
Now, that's a one-liner that I like. Never use a loop you can avoid.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >Re: Loops (From: "J. Stewart" <email@hidden>) |
| >Re: Loops (From: Luther Fuller <email@hidden>) |
| >Re: Loops (From: Michelle Steiner <email@hidden>) |
| >Re: Loops (From: Luther Fuller <email@hidden>) |