What is the meaning of isWriteable?

I have a user who is trying to open a file and the IsWriteable check is failing:

if theFolderitem <> nil and not theFolderitem.IsWriteable then globals.theErrorLog.DialogErrorProceed Replace(kReadOnly, "<<name>>", theFolderitem.Name) Return nil end if

He says he checked the permissions and everything looks okay.

When checking the documentation for isWriteable I’m not sure if it tells me anything:

Is IsWriteable something meaningful or not?

Then I wanted to add a permissions check with PermissionsMBS but this fails completely.

Sounds like your application doesn’t have permission to access this file. Is your application Sandboxed? How are you receiving the file?

The application is not sandboxed. The file is created by my app. I’m not sure if I can trust the user with the permissions.

Hi Beatrix,

You want to open the file to write in it ?

I also had trouble to understand the if line in the code (Not Nil And Not Writeable ?).

Too early in the morning (for me) ?