Hi, I wonder if there's any external that can detect quitting the Pd program.
I think I've seen one before but I can't remember what external it was.
Does anyone know what the external is?
External that detects quitting Pd?
Hi, I wonder if there's any external that can detect quitting the Pd program.
I think I've seen one before but I can't remember what external it was.
Does anyone know what the external is?
@cuinjune Do you want to send a message? and where? or stop the Quit?
You can stop it quitting (a confirm message will pop up for both quitting and closing a window)...... with a message to Pd.
[;
pd perf 1(
David.
@whale-av Thanks for you answer, I'm not trying to stop the Quit. I just want to listen to the Quit right before Pd quits.
I'm looking for something like a [quitbang] which would output 'bang' when Pd quits.
@cuinjune This will do it..........
You will have to put your patch in perf mode (maybe with a loadbang).......
You can see that it works (and how) if you disconnect the [quit( message.
quitling.pd
It should complete the operations triggered by the bang before actually quitting.
David.
@whale-av Thanks, but your patch doesn't seem to output 'bang' before actually quitting.
It seems to output 'bang' as soon as the popup message appears.
I tried it by doing [quit bang] -> [write file.txt( -> [text]
I use Pd-0.48-1 on macOS 10.13.6 by the way,
@cuinjune Try opening this quitling.pd and then quitting Pd.
It works in windows Pd.extended and vanilla.
Unless OSX will not write an empty file.....?
You have to quit Pd with the patch still open of course.
David.
@whale-av Thanks, it works now.
@cuinjune Great!
I will work on suppressing the message when a window is closed, with an option to always save, or never save....
David.
Oops! Looks like something went wrong!