RE: run script errors
RE: run script errors
- Subject: RE: run script errors
- From: Jim Brandt <email@hidden>
- Date: Wed, 28 Jan 2009 11:39:58 -0600
Santa,
Thanks for the reply.
This may work, but I will now need to further test my list, as
I now build it by excluding all folders. I guess I'll need to
do that within the loop.
The mail portion of the called script worked flawlessly. It
was only the moving of the files that was the problem.
Thanks for the insight.
Jim
2. When moving files, never refer to the files directly, but as a
variable
repeat with thefiles in contents of thefolder -- this will bomb in a
called script after one file is moved, as the finder refreshes, and
the variable loses track of the remaining files
--move file
end repeat
set TheFileList to contents of thefolder -- this works
repeat with thefiles in TheFileList
--move file
end repeat
Hope this helps
Regards
Santa
_______________________________________________
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