Hello @AL-Hasan-Haj-Asaad
Mac platform still a big problem
there are different possibilities to run notepad++ on a mac (not natively but it is possible)
A) run npp within a vm -> parallels support windows
B) use software like winebottles to run npp on mac
I don’t know why does not a big program such NPP++ support this platform _?
npp uses windows api heavily and os’s like osx and linux do have different api,
so in order to support those os’s you need to either provide three different versions
or introduce an additional layer which abstracts each os api with the benefit to slow
down npp execution.
In regards to your question,
is a bit of a hack and works only if char is added.
What needs to be done first is described here
The script itself
import winsound soundfile = "C:\Windows\Media\chimes.wav" def callback_CHARADDED(args): winsound.PlaySound(soundfile, winsound.SND_FILENAME) editor.clearCallbacks([SCINTILLANOTIFICATION.CHARADDED]) editor.callback(callback_CHARADDED, [SCINTILLANOTIFICATION.CHARADDED])Of course you need to change the path to the soundfile.
Cheers
Claudia