#1
|
|||
|
|||
![]()
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 15: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 ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#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 22: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 13: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 10: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 11: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?
|
![]() |
Thread Tools | |
Display Modes | |
|
|