Cannot save line break literal in AppleScript editor
Cannot save line break literal in AppleScript editor
- Subject: Cannot save line break literal in AppleScript editor
- From: Beinan Li <email@hidden>
- Date: Sat, 14 Mar 2015 17:50:33 -0400
Dear AppleScript gurus,
I try to save my code with this line:
my write_to_file("\n", listFile, true)
in the AppleScript editor. It has to be saved as the binary script as an external module used later.
But whenever I hit Save, the editor decide to replace the \n with line break in the script and the input arg is replaced with a blank.
I tried to replace the literal with "\\n", but then it simply does not break the lines of that generated text file. I can make it work when the script is saved else where as a text file, but simply can't do the same with the AppleScript editor.
I found no online tips about this. Please help.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden