Quote:
Originally Posted by Jiaz
does the terminal notifier work?
try in shell
|
@neoyoli,
If the 'terminal-notifier' is working correctly, you should be able to get notifications using this script.
Code:
// Notify download finished.
// Trigger: "A Download Stopped".
// OS: macOS 10.8 and higher.
if (link.isFinished()) {
var notifier = "./terminal-notifier.app/Contents/MacOS/terminal-notifier"; // <- Set path to "terminal-notifier"
var title = "JDownloader";
var subtitle = "Download Finished";
var message = link.getName();
var sound = "default";
callAsync(function() {}, notifier, "-title", title, "-subtitle", subtitle, "-message", message, "-sound", sound);
}