Edit/clear recent items list from within max/MSP

goodparleyandorfing's icon

It seems to me that this should be possible somehow using [shell], but what I'm wondering is how one might clear max's own internal memory of these items. For instance, if you manually clear recentitems.txt and save the file whilst max is open, the file will be populated with all the items you deleted when max closes. Is there a way to call max/MSPs bluff or will it always win this game?

goodparleyandorfing's icon

No takers?

What I want to do is trash the recentitems.txt list from within max and not have max repopulate it with my recent items. Is that possible, or put differently, is there a way to stop max from remembering every new patch you open in the recently opened list?

the terminal command rm ~recentitems.txt deletes it, but then the file magically reappears once max is closed..

goodparleyandorfing's icon

Heh, that's one way.. Feels like a philosophical conundrum the more i think about it. "How do you make max act when there's no max?" Maybe a native solution isn't possible then

Luke Hall's icon

Isn't there a "dbrefresh" type message to max? I'm not sure how much this will actually do but it is probably worth a shot.

goodparleyandorfing's icon

Thanks Luke, I'll look into that. I wonder if there's a way for terminal to receive a command that a program has been closed and then execute a script automatically. A list could therefore be populated from within max/MSP using [shell] and then moved into the preferences folder, replacing the existing file after max/MSP closes.