hlep
[1/4] from: petr:krenzelok:trz:cz at: 18-Jun-2001 15:20
Elisabeth FRANCOIS wrote:
> PLEASE HELP ME !!!
> I use this to save file on local :
<<quoted lines omitted: 6>>
> write B texte
> and it does not work !
'join or 'rejoin accept two parameters. The first one you provide, will
be joined with the rest of the block ...
B: join ftp://login:[pass--ftp--ftpserver--com]/directory/ [nom/text
-filtres.txt
]
note: first type is url! - you don't need to convert it to-file or
to-url anymore ...
-pekr-
[2/4] from: gjones05:mail:orion at: 18-Jun-2001 8:42
From: "Elisabeth FRANCOIS"
> PLEASE HELP ME !!!
> I use this to save file on local :
<<quoted lines omitted: 10>>
> But I need to change the name of the file each time, with nom/text.
> Thank you for you help !
Hi, Elisabeth,
I assume that when you issue the command:
B: join ["ftp://login:[pass--ftp--ftpserver--com]/directory/" nom/text
-filtres.txt
]
that you get the error:
** Script Error: join is missing its rest argument
'Join accepts two values to be joined, like:
join "Elisabeth " "FRANCOIS" ; == "Elisabeth FRANCOIS"
or
a: "Elisabeth " ; == "Elisabeth "
b: "FRANCOIS" ; == "FRANCOIS"
join a b ; == "Elisabeth FRANCOIS"
but it appears that you wish to pass a block of values, some of which need to be
reduced
(meaning, evaluated). The command that you may need is 'rejoin, which
accepts a block, reduces the values and joins the resulting values. Try:
B: rejoin ["ftp://login:[pass--ftp--ftpserver--com]/directory/" nom/text
-filtres.txt
]
write B texte
Hope that helps.
--Scott Jones
[3/4] from: el:francois:worldonline at: 18-Jun-2001 14:40
PLEASE HELP ME !!!
I use this to save file on local :
A: rejoin [nom/text "-filtres.txt"]
write to-file A texte
and it works!
But when I want to do it on a ftp-sever, I do this :
B: join ["ftp://login:[pass--ftp--ftpserver--com]/directory/" nom/text
-filtres.txt
]
write B texte
and it does not work !
also I'm giving the same name to all files and it works :
write ftp://login:[pass--ftp--ftpserver--com]/directory/filtres.txt texte
But I need to change the name of the file each time, with nom/text.
Thank you for you help !
[4/4] from: sqlab:gmx at: 18-Jun-2001 15:16
> PLEASE HELP ME !!!
>
> But when I want to do it on a ftp-sever, I do this :
>
> B: join ["ftp://login:[pass--ftp--ftpserver--com]/directory/" nom/text
> "-filtres.txt"]
> write B texte
>
> and it does not work !
>
Use this instead
B: join ftp://login:[pass--ftp--ftpserver--com]/directory/ [nom/text
-filtres.txt
]
> Thank you for you help !
>
You are welcome
AR
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted