< Back to IRCAM Forum

Spat5.sfrecord~ problem writing to external hard disc

I have experienced the following problem with spat5.sfrecord~ for a while, and guessed it was just something simple to solve concerning permissions. But now I dig deeper I can’t fix it:

When I write to my internal hard disc, it’s fine.
When I try to write to any of my external discs I get this error:
“spat5.sfrecord~: Could not open file “/file.wav”. Unsupported format?”

sfrecord~ works fine writing to any discs, and any format (But I don’t want to use sfrecord~).

OS 15.6.1.

So, what I have missed?

Thanks!

Hi Natasha,

This problem had never been reported !
After a quick test with my external hard disk, this actually looks like a (macOS) permission issue.

When Max does not have permission to access “external volumes”, I get the same error message than you (which, admittedly is very confusing. I’ll see if I can improve that).
When this permission is granted the files are properly written on the external hard drive.

Option #1
Go to macOS System Settings. Then “Confidentiality & Security”. Then “Files and Folders”.
Enable “access to external volumes” for the Max application. If necessary restart Max.

Curious note: On my computer, I have both Max8 and Max9 installed. In the macOS System Settings, only Max9 appears, and its setting impacts permissions for both Max8 and Max9.

Option #2
Totally reset the permissions granted to Max.
Quit Max.
In a Terminal, type:
tccutil reset All com.cycling74.Max
Restart Max.
Send a message like “/open /Volume/MY_EXTERNAL_HARD_DRIVE/test.wav” to spat5.sfrecord~. A dialog should now ask you to allow access to the external drive.

Both options worked fine on my system. Let us know if that solves the problem on your side.

Cheers,
T.

Hi T, thanks for the reply.

I have tried all this to no avail:

Max 9 is only listed in the security preferences.
It only show internal volumes, not the removeable volumes option.
Full Disk Access doesn’t solve the problem.

So I remove Max 9. Max 8 now shows up in the security preferences.
Again, no removeable volumes option and Full Disk Access doesn’t solve the problem.

Notes that Max’s own sfrecord~ works, but not spat5.sfrecord~

Then I test on a different computer where I had not installed max9. It still works fine!!

So Max9 seems to have done something mysterious to the security preferences effecting only Spat5. Removing Max9 didn’t help, and maybe there is a library or similar file I missed (there is no deinstall with Max 9 that I can see).

I then downloaded and reinstalled a fresh Spat5. Still no change.

However: “/open /Volume/MY_EXTERNAL_HARD_DRIVE/test.wav” to spat5.sfrecord~ does in fact work! But I do not get a dialogue asking to access the external volume, even though the file is recording now to the external volume. But if I then send “/open” to spat5.sfrecord~ the error message pops up again. The same is true for both Max8 and Max9.

So sending the full path is a work around, but maybe points to something else weird with permissions?

Natasha