demon386
V2EX  ›  macOS

有没什么办法用Command Line向Notification Center发通知?

  •  
  •   demon386 · Jul 27, 2012 · 4516 views
    This topic created in 5042 days ago, the information mentioned may be changed or developed.
    主要想在Emacs里用到,Mountain Lion有提供工具吗?
    9 replies    1970-01-01 08:00:00 +08:00
    run2
        1
    run2  
       Jul 27, 2012
    自己写个midware?
    demon386
        2
    demon386  
    OP
       Jul 27, 2012
    @sobigfish Mac开发不熟啊。。。
    tsing
        3
    tsing  
       Jul 29, 2012   ❤️ 1
    sectic
        4
    sectic  
       Jul 29, 2012
    gem install terminal-notifier
    demon386
        5
    demon386  
    OP
       Jul 30, 2012
    @tsing
    @sectic
    感谢推荐。terminal-notifier
    hzlzh
        6
    hzlzh  
    PRO
       Jul 30, 2012
    给你3个思路:
    iTerm2 -> Growl(Growl2会整合NC功能)
    iTerm2 -> Growl -> Hiss -> NC
    直接用冒泡通知:
    http://osxdaily.com/2012/07/17/send-a-notification-badge-to-the-terminal-dock-icon-when-a-task-is-finished
    demon386
        7
    demon386  
    OP
       Jul 30, 2012
    @hzlzh
    感谢。不过terminal-notifier已经够我用了。
    leecade
        8
    leecade  
       Jul 30, 2012
    levey
        9
    levey  
       Jul 30, 2012
    有个python的叫APNS Wrapper
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4603 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 06:25 · PVG 14:25 · LAX 23:25 · JFK 02:25
    ♥ Do have faith in what you're doing.