Re: Watched Folders
Re: Watched Folders
- Subject: Re: Watched Folders
- From: Chad Lindsey <email@hidden>
- Date: Tue, 22 Jul 2003 14:03:28 -0400
Andrew,
I tried this, but nothing uploaded. I could see it running the loop, but it
did not upload the files.
Thanks, Chad
>
Your problem is that you're calling 'list folder' to get the folder's
>
contents. This will, of course, include all existing files in that folder.
>
>
Instead, use the list of files that are passed into your handler.
>
>
In the case of:
>
>
on adding folder items to this_folder after receiving these_items
>
>
"these_items" is the list of files that have just been added. If you change
>
your upload line to reference 'these_items' rather than the results of the
>
list folder command, you'll be all set.
>
>
So, instead of:
>
>
repeat with myitem in myFolderItems
>
use:
>
repeat with myitem in these_items
>
>
Andrew
>
:)
--
Chad Lindsey
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.