Autosave a patcher


    Jan 18 2007 | 1:35 pm
    Is there a way, perhaps with thispatcher to automatically save a patcher
    when it changes (i.e. Gets "dirty")? I don't mean the mode where it saves a
    patcher and appends a number to the name. It must save with the same name.
    I know I can do it with a write message to thispatcher but I want it to be
    automatic. For example, I drag an object to a new position and it saves.
    Cheers
    Gary Lee Nelson
    Oberlin College
    www.timara.oberlin.edu/GaryLeeNelson

    • Jan 18 2007 | 2:19 pm
      Quote: Gary Lee Nelson wrote on Thu, 18 January 2007 14:35
      ----------------------------------------------------
      > Is there a way, perhaps with thispatcher to automatically save
      > a patcher when it changes (i.e. Gets "dirty")...
      Hi Gary,
      I'm using:
      [active] - > poll -> [mousestate] -> write -> [thispatcher]
    • Jan 18 2007 | 4:36 pm
      That is very clever but I felt a bit like Mickey Mouse in the Sorcerer's
      Apprentice. If you use new from clipboard you must save immediately or it
      will put up a new save dialog for every mouse click. While it is polling,
      it doesn't allow typing into message boxes.
      I am using this:
      Pressing the enter key when I want to save. Not automatic but I can type as
      usual and drag things around.
      On 1/18/07 9:19 AM, "Philippe Gruchet" wrote:
      >
      > Quote: Gary Lee Nelson wrote on Thu, 18 January 2007 14:35
      > ----------------------------------------------------
      >> Is there a way, perhaps with thispatcher to automatically save
      >> a patcher when it changes (i.e. Gets "dirty")...
      >
      > Hi Gary,
      >
      > I'm using:
      >
      > [active] - > poll -> [mousestate] -> write -> [thispatcher]
      >
      >
      Cheers
      Gary Lee Nelson
      Oberlin College
      www.timara.oberlin.edu/GaryLeeNelson
    • Jan 18 2007 | 9:46 pm
      Quote: Gary Lee Nelson wrote on Thu, 18 January 2007 17:36
      ----------------------------------------------------
      > That is very clever but I felt a bit like Mickey Mouse in the
      > Sorcerer's Apprentice.
      That's my daily life, always discovering and learning :-)
      > If you use new from clipboard you must save immediately or it
      > will put up a new save dialog for every mouse click.
      Of course, you have to save it first. Just once!
      (double-cancel to defer, not too frequently... an old joke of 'System $i' is still around...)
      > it doesn't allow typing into message boxes.
      You were asking for an auto-save on drag&drop, you got it.
      ;-)
      Let's try this one?
    • Jan 19 2007 | 8:51 am
      Gary Lee Nelson wrote on Thu, 18 January 2007 17:36
      > That is very clever but I felt a bit like Mickey Mouse in the
      > Sorcerer's Apprentice.
      Goethe is probably rolling in his grave, but never mind.
      Anyway, you would probably be better off to paste the snippet into an
      existing file rather than a new patcher.
      -------------- http://www.bek.no/~pcastine/Litter/ -------------
      Peter Castine +--> Litter Power & Litter Bundle for Jitter
      Universal Binaries on the way
      iCE: Sequencing, Recording &
      Interface Building for |home | chez nous|
      Max/MSP Extremely cool |bei uns | i nostri|
    • Mar 07 2012 | 5:03 pm
      If you send the message [keydown 55, key 1] to aka.keyboard ( http://www.iamas.ac.jp/~aka/max/#aka_keyboard ) it simulates a cmd+s stroke on your keyboard and saves your patcher
      so one could have a metro sending bang every 10 minutes
    • Mar 07 2012 | 5:12 pm
      oh I forgot to mention you need to send a [keyup 55] after this message, otherwise it acts as if you're still holding down the command key