Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Do we have any newline character that we can insert in Mountain Lion's Notification Center. I try to append \n but it doesn't work.

What I am trying to do here is to write a plugin for alfred. And I use echo 'test\nnewline' but it doesn't work. I intend to write this before but it may confuses people with alfred so I didn't write it down :)

share|improve this question
1  
Could you be a little more specific? Development questions are actually off-topic here and are better suited for StackOverflow. –  bassplayer7 Feb 24 '13 at 3:01
    
Are you looking to influence the spacing of distinct notifications or embed a character within one notification? A picture of what you want or more detailed use case might help us find you an answer or decide if this is on-topic here. On a user level, notification center isn't something we generally have an API to influence. –  bmike Feb 24 '13 at 15:34

1 Answer 1

It's not clear how you are trying to display the notifications, but this works for me:

terminal-notifier -message $'a\nb'

-title $'a\nb' is not displayed on multiple lines though (even if you replace \n with NEXT LINE (NEL)).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.