Hi there
I am running a script there is writing a log file for processing on a pc server (Notes). I run my script on a Mac and save the script to a share.
My question is :
Is there a way to write PC compatebel file and getting the right line break ?
this is some of the test i have done:
function myWriteLogfile(myLogText, myLogFilePath){
var myFilePath = myLogFilePath ;
var myFile = new File (myFilePath);
var myFileOpen = myFile.open("e","UTF-8");
if (myFileOpen) {
myFile.seek(0,2);
myFile.write (myLogText+"\r"+"\n");
myFile.close();
}
}
and "\n"+"\r"); and I have tried to open the file with the "\uFEFF" first.
Hoping someone can help
/T
Hi Ther
It just run in one long string without line break.
When i open a text file from windows it have 2 line break codes. I think one for new line and one for returing to start og new line.
the only way i can getting it write is to translate with BBedit.
I am just wording if it posible to write pc text file on a mac ?
/ regards
North America
Europe, Middle East and Africa
Asia Pacific