[javascript-dev] Re: Re: Re: creating files problem in a standalone
Jean-Baptiste Thiebaut
pplato at gmail.com
Tue Jan 22 05:42:45 MST 2008
- Previous message: [javascript-dev] Re: Re: creating files problem in a standalone
- Next message: [javascript-dev] Re: Re: Re: creating files problem in a standalone
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quote: Emmanuel Jourdan wrote on Tue, 22 January 2008 08:15
----------------------------------------------------
> On 22 janv. 08, at 08:55, Jean-Baptiste Thiebaut wrote:
>
> > I changed the name of my function to "_save()" and the same problem
> > occurs: the data can not be saved when the function is called from a
> > standalone, while it works when it is called from Max.
> >
> > I'm not too sure where the file would be created though. When the
> > function is called from Max, the file is created in the same folder
> > that contains the JS file. Within a standalone in Mac OS, where
> > should the file be created anyway?
>
> Can you try to provide an absoulte path to your File object? You may
> use the max.apppath property to find where the standalone is.
>
> ej
>
>
----------------------------------------------------
Trying this, I had another unexpected error:
function _save(n)
{
var f = new File("bkp","readwrite");
f.foldername = max.apppath; //this makes the both max and the standalone crash
}
- Previous message: [javascript-dev] Re: Re: creating files problem in a standalone
- Next message: [javascript-dev] Re: Re: Re: creating files problem in a standalone
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
