简体   繁体   English

如何在Growl通知中包含超链接?

[英]How can I include a hyperlink in a Growl notification?

I couldn't find any code to do so on Growl's documentation (which IMO is pretty terrible), nor in the Perl libraries on CPAN. 在Growl的文档(IMO非常糟糕)或CPAN的Perl库中,我找不到任何代码可以这样做。 The most recently updated Perl module, Growl::GNTP doesn't show any code snippet that would enable custom displays , which is apparently how formatting links should be done. 最近更新的Perl模块Growl :: GNTP没有显示任何可启用自定义显示的代码段,显然这是格式化链接的方式。

I know though that it's possible to include hyperlinks in Growl notifications, despite what some say . 我知道尽管有人说过 ,但是可以在Growl通知中包括超链接。

Perl or PHP code preferred. 首选Perl或PHP代码。

Are you specifically targeting Growl on Windows, or just generic GNTP? 您是专门针对Windows上的Growl,还是仅针对通用GNTP? It doesn't really matter though since the sending app can't specify the display - that is up to the receiver (user). 但这并不重要,因为发送方的应用程序无法指定显示-取决于接收方(用户)。 The link you provided to that soapi notifier is using its own custom display style, which the user would then have to set as their preferred display (at least for that notification type). 您提供给该soapi通知程序的链接正在使用其自己的自定义显示样式,然后用户必须将其设置为他们的首选显示(至少对于该通知类型而言)。 When you write a custom display, you can include links or anything you want. 编写自定义显示时,可以包括链接或任何所需的内容。 On Windows, custom displays have to be written in .NET and on OSX, they can be either Obj-C or html. 在Windows上,必须使用.NET编写自定义显示,而在OSX上,它们可以是Obj-C或html。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM