Re: Alias List or Repeat in 8.1
Re: Alias List or Repeat in 8.1
- Subject: Re: Alias List or Repeat in 8.1
- From: Bryan Kobler <email@hidden>
- Date: Thu, 20 Dec 2001 00:11:09 -0700
Thanks,
Your suggestion worked great. I got everything working well.
set SourceFolder to ((path to desktop as string) & "test") as alias
tell application "Finder"
repeat with SubFolder in SourceFolder
set aVar to SubFolder as alias
tell application "Fetch 3.0.3"
activate
make new transfer window at beginning with properties
{hostname:"10.1.1.50", userid:"user", password:"password", initial
directory:"Desktop/TestUpload"}
set transfer mode of transfer window "10.1.1.50" to Binary
put into transfer window "10.1.1.50" item aVar
close window 1
end tell
end repeat
end tell
That will upload each folder inside the one you specify.
Bryan.
On Wednesday, December 19, 2001, at 10:18 PM, Joe Kelly wrote:
>
I wrote:
>
> I think the "repeat with variable in container" works with
>
> 8.1, but if it
>
> doesn't do this:
>
>
>
> repeat with SubFolder from 1 to count of SourceFolder
>
>
Let me clarify: SubFolder in THIS case is an integer index, not an
>
alias. So
>
you would have to modify your OTHER line to:
>
>
UploadSubFolderContents(SubFolder of SourceFolder) of me
>
>
joe
>
_______________________________________________
>
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.