Can't change directory with shell(cd)

Michael D Mays michael.rr at mdmays.com
Fri May 2 07:10:46 EDT 2008


Richard Hillen in September of last year was claiming on this list 25  
seconds to do a revcopyfile.

I typed CR into the dictionary and couldn't find it. I think I must  
have added an extra " or quote when I was  typing.

Michael

On May 1, 2008, at 10:06 PM, Sarah Reichelt wrote:

>>  The reason I was using shell() instead of a built in Rev command  
>> were:
>>  1.) I didn't know about it :)
>>  2.) My first objective was to copy a file into a folder. I had used
>> revCopyFile and it was taking 15 seconds to copy a small file. I   
>> new I
>> could use ditto and it would be (is) much faster. So I decided to  
>> do the
>> rest with shell().
>
> Something seems wrong there. However if using ditto works for you,
> then that's fine.
> I haven't done much with copying files. Moving them is very fast using
> the rename command, but copying is different. If the files are small
> you could try:
>   put URL ("binfile:" & tOriginalFile) into URL ("binfile:" &  
> tNewFile)
> but if they are larger than a few MB, that might not be so good as it
> reads the entire file into memory before writing it out again.
>
>>
>>  Do you have cr defined as return?
>
> "cr" is defined in Rev. I prefer using it instead of "return" because
> "return" also means return a value from a function and I prefer to
> make sure they are obviously different. And it's shorter to type :-)
>
> Cheers,
> Sarah
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list