• 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
Re: Cannot save line break literal in AppleScript editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot save line break literal in AppleScript editor


  • Subject: Re: Cannot save line break literal in AppleScript editor
  • From: Beinan Li <email@hidden>
  • Date: Sat, 14 Mar 2015 19:55:35 -0400

Thank you, Shane!
I found that the reserved keyword return also works.

Thanks,
Beinan


On Sat, Mar 14, 2015 at 7:48 PM, Shane Stanley <email@hidden> wrote:
On 15 Mar 2015, at 8:50 am, Beinan Li <email@hidden> wrote:

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.

The easiest solution is to use the property linefeed instead. An alternative in Script editor is to go to Preferences -> Editing and check "Escape tabs and line breaks in strings".

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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

 _______________________________________________
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>
References: 
 >Cannot save line break literal in AppleScript editor (From: Beinan Li <email@hidden>)
 >Re: Cannot save line break literal in AppleScript editor (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Cannot save line break literal in AppleScript editor
  • Next by Date: Re: Cannot save line break literal in AppleScript editor
  • Previous by thread: Re: Cannot save line break literal in AppleScript editor
  • Next by thread: Re: Cannot save line break literal in AppleScript editor
  • Index(es):
    • Date
    • Thread