#1
|
|||
|
|||
Mac Notification Center Integration
Hi Guys,
Is it possible to implement this? It would be nice, and this should be easier than messing with the non-working growl for years now. Cheers Last edited by roundsquare; 04.02.2014 at 14:06. |
#2
|
|||
|
|||
Any reply?
|
#3
|
||||
|
||||
Can you post technical details for mac notification center with java?
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. |
#4
|
|||
|
|||
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Github page of "wokier / java-to-OS-notify" Only requires Terminal Notifier to Install with 'brew install terminal-notifier' and Mountain Lion or higher Thanks! |
#5
|
|||
|
|||
Anything?
|
#6
|
||||
|
||||
Ticket:
GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#7
|
|||
|
|||
Thank you so much!
|
#8
|
||||
|
||||
And What events should we notify?
__________________
|
#9
|
|||
|
|||
Ah, glad to see some activity!
The usual important events, like download file; archive; folder finished, unpacked (download started isn't necessary imo). Is there any chance to see it in the near future? I'm guessing it's not a big task to implement it, isn't it? Last edited by roundsquare; 25.05.2015 at 21:17. |
#10
|
|||
|
|||
Is there any progress on the issue?
|
#11
|
|||
|
|||
Anything?
|
#12
|
||||
|
||||
I've updated the ticket about how to "talk" to the notification center.
You can do all this yourself by using the Eventscripter extension and then call the notification center yourself. Please use board search about this topic
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
I managed to install terminal notifier with home brew, but after that I gave up, I'm completely untrained in programming.
Good luck for someone who understands it! PS: I read also MacOS Script Editor can communicate with JavaScript: Code:
var app = Application.currentApplication() app.includeStandardAdditions = true app.displayNotification("All graphics have been converted.", { withTitle: "My Graphic Processing Script", subtitle: "Processing is complete.", soundName: "Frog" }) Last edited by roundsquare; 15.03.2017 at 12:43. |
#14
|
||||
|
||||
I'm sorry but Javascript doesnt mean that you can use all Methods/Objects.
JDownloader doesn't know about Application.currentApplication. That only works in MacOS Script Editor. does the terminal notifier work? try in shell
__________________
JD-Dev & Server-Admin |
#15
|
|||
|
|||
@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); } Last edited by Jiaz; 21.03.2017 at 09:55. |
#16
|
|||
|
|||
It gets compiled, but when a download is finished, I get this error message:
Quote:
|
#17
|
|||
|
|||
The error indicates JD is unable to locate "terminal-notifier". Please modify the following variable in the script to set the correct path.
Code:
var notifier = "./terminal-notifier.app/Contents/MacOS/terminal-notifier"; // <- Set path to "terminal-notifier" |
#18
|
||||
|
||||
there is little misstake in script
callAsync(function() {}, "notifier", "-title", title, "-subtitle", subtitle, "-message", message, "-sound", sound); must be callAsync(function() {}, notifier, "-title", title, "-subtitle", subtitle, "-message", message, "-sound", sound);
__________________
JD-Dev & Server-Admin |
#19
|
|||
|
|||
@Jiaz,
Yes, Thanks. @neoyoli Jiaz has made the necessary corrections. Please use the modified script. If you still get a similar error, check the path to 'terminal-notifier'. Last edited by mgpai; 21.03.2017 at 10:05. |
#20
|
|||
|
|||
Hey guys, just want to report, that on MacOS Monterey, JDownloader is present in the Notification Centre, which certainly is a progress after these years, but no notifications trigger. Is there still hope for OS level notifications?
|
#21
|
||||
|
||||
@roundsquare: There have been no changes in JDownloader. so no work done and that it now shows up at notification centre isn't because of any changes by us. Have you recently installed fresh JDownloader? have you tried the workaround provided in this thread?
__________________
JD-Dev & Server-Admin |
#22
|
|||
|
|||
I updated the OS on a new machine, and haven't tried the workaround previously, because MyJDownloader app by julien1530 came to be in the meantime. I just thought this time it can be solved natively without a "third party" app, since I haven't seen JDownloader in the Notification Centre before.
Last edited by roundsquare; 27.09.2022 at 06:06. |
#23
|
||||
|
||||
@roundsquare: Thanks for the feedback. The normal notifications from JDownloader should work fine though?!
__________________
JD-Dev & Server-Admin |
#24
|
|||
|
|||
Yes, the bubble notifications work.
|
#25
|
||||
|
||||
@roundsquare: I've found some java work on mac notification but will have to study this first and see if/how we can integrate it into JDownloader.
__________________
JD-Dev & Server-Admin |
#26
|
|||
|
|||
Wow, great news! Fingers crossed!
|
#27
|
||||
|
||||
Please know that this is no high priority so it will take some time before I can find time to work on it.
__________________
JD-Dev & Server-Admin |
#28
|
|||
|
|||
No problem.
|
#29
|
||||
|
||||
@roundsquare: Thanks for your understanding!
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|