Forums > Javascript

Saving files by js

June 2, 2007 | 9:13 am

Hi all

I used to save files from coll contents with a js script on my previous WinXP machine. I don’t use the write message to coll because I am saving the coll data as part of existing png images in private png chunks. Basically, a dump of the coll content triggers a js function which writes each coll line to the disk. It worked always fine even with very big contents.

I changed for a macbook pro recently and I found this way does no longer work. I guess the disk operation is performed at a too slow speed to take the coll dump correctly into account.

Using acknowledgement from the js function to output a bang which reads the following line of the coll works pretty well, but is much much slower.

Could anyone suggest another way of proceeding ? For exemple, copying the coll data into a js array prior writing it to disk would it be a right way ?

Thanks

Domi


June 2, 2007 | 9:17 am

On 2 juin 07, at 11:13, Dominique DAVID wrote:

> I used to save files from coll contents with a js script on my
> previous WinXP machine. I don’t use the write message to coll
> because I am saving the coll data as part of existing png images in
> private png chunks. Basically, a dump of the coll content triggers
> a js function which writes each coll line to the disk. It worked
> always fine even with very big contents.
>
> I changed for a macbook pro recently and I found this way does no
> longer work. I guess the disk operation is performed at a too slow
> speed to take the coll dump correctly into account.
>
> Using acknowledgement from the js function to output a bang which
> reads the following line of the coll works pretty well, but is
> much much slower.
>
> Could anyone suggest another way of proceeding ? For exemple,
> copying the coll data into a js array prior writing it to disk
> would it be a right way ?

I don’t see any reason why it shouldn’t work. Can you post an example?

ej


June 2, 2007 | 9:52 am


Viewing 3 posts - 1 through 3 (of 3 total)