• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cannot save line break literal in AppleScript editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


Thanks,
Beinan

 _______________________________________________
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

  • Follow-Ups:
    • Re: Cannot save line break literal in AppleScript editor
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Test
  • Next by Date: Re: Cannot save line break literal in AppleScript editor
  • Previous by thread: test
  • Next by thread: Re: Cannot save line break literal in AppleScript editor
  • Index(es):
    • Date
    • Thread