Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chidambaram

macrumors member
Original poster
Mar 9, 2008
67
0
Hi All,

My purpose is creating or appending a file in the server. My program is working in Both IE & FireFox in Windows OS. But in MAC OS it throws exception error.

My coding is

file=Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);

try {
file.initWithPath(dscfname);
}catch (e)
{
alert(e);
}

The error is [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: http: saveInput_ff :: line 241" data: no].

Please help me to solve this problem

Thanks in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.