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

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
  • Prev by Date: Re: Flattening Nested Lists
  • Next by Date: Re: Filemaker Script
  • Previous by thread: Re: iPhoto in reverse: get photo from pathname?
  • Next by thread: Automatic update by Email on Hard Disk percentage full
  • Index(es):
    • Date
    • Thread