NSURLBookmarkResolutionWithSecurityScope

does not exist on 10.6
mkstemp creates a file. We want a directory