Closed kliner closed 7 years ago
@kliner you must escape special characters like terminal-notifier -message "\(\\)"
or terminal-notifier -message "\(._.)"
Ty. Anything else needs to be escaped?
You're welcome. I suppose everything that can be interpreted as part of a shell command should be escaped (ie. quotes, parens...).
Eg.: (), (.), (_), (._.)
Exception messages:
2017-04-16 15:54:40.942 terminal-notifier[13649:1704417] -[NSSingleObjectArrayI stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x7ff7f6502ce0 2017-04-16 15:54:40.942 terminal-notifier[13649:1704417] -[NSSingleObjectArrayI stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x7ff7f6502ce0
2017-04-16 15:55:03.134 terminal-notifier[13659:1704629] -[NSArray0 stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x7fba3ad032c0 2017-04-16 15:55:03.134 terminal-notifier[13659:1704629] -[NSArray0 stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x7fba3ad032c0