On macOS, specifically within the Mac App Store Sandbox, your application is restricted from accessing the file system for security reasons. When a user grants your app permission to access a file or folder (via File.bowseForOpen()), that permission normally evaporates as soon as the app quits.
Security-Scoped Bookmarks are the specialized mechanism provided by Apple to « remember » and persist these permissions across app restarts without prompting the user again.
