extract filepath from sfrecord~

Jan 30, 2009 at 10:32pm

extract filepath from sfrecord~

Howdy Maxites–
Well we can send an (open) message to [sfrecord~], and then a dialogue comes up to create a soundfile to record into, but is there a way to get the filepath and filename from sfrecord~? If not, perhaps this should be a feature…

Jan 31, 2009 at 4:46am

there are a bunch of ways to do this, and this may not be the most efficient, but simple enough. It all depends on how you want to interact with the saving mechanism. Essentially, what you want to do is get that path while you save. savedialog will do:

– Pasted Max Patch, click to expand. –


Jan 31, 2009 at 9:38pm

Thanks Ben–
I would have done it this way, but I think I was misdirected by the documentation for sfrecord. it reads:

“if open is followed by another symbol, it creates a file in the current default volume”

which didn’t indicate to me that one can specify a particular file path. some objects do have this feature specifically documented, while other(s) evidently don’t, which threw me.

It would be good if, for objects that can take file path messages, that that is specifically stated in the documentation for the sake of consistency. Writing documentation is a thankless task; please don’t think I’m having a go at anyone, as it’s generally very clear, comprehensive and concise.

thanks again,


You must be logged in to reply to this topic.