A little late, but I just stumbled upon this and found an answer for that. For this warning / error / no matter what it should disappear, you need to have a content-bound URL (and this is something that can be difficult for you, because to get such a URL you have to use NSOpenPanel and annoy using , even if you have the correct right to the folder!).
Once you have the URL with the security scope, you must call the startAccessingSecurityScopedResource method, and then make your NSWorkSpace call. Remember to call stopAccessingSecurityScopedResource after this (you can do it right after returning selectFile:inFileViewerRootedAtPath: to free up kernel resources and not give more calls to startAccessingSecurityScopedResource .
Justsid
source share