How do I force preview to write the file? I don't think it's protected in special ways, terminal lets me edit, overwrite, manipulate the file however I want without any errors or warnings about ownership/permissions at all. The containing directory has permissions drwxr-xr-x and is owned by me (my user account), and the file has permissions -rwxr-xr-x before opening in Preview.app, and after attempting editing on the file in Preview.app macOS adds the extended attributes
com.apple.lastuseddate#PS 16 com.apple.quarantine 22
to the file. I just noticed that the .. parent directory, and all directories in the tree between .. and minecraft/resourcepacks/my_resource_pack (including my_resource_pack ) have the extended attribute
drwx------@ com.apple.quarantine 57
Is this the cause of the weird and annoying Preview.app behaviour? Get Info GUI on the file and on every folder in the path to the file (starting with ~/Library/Application Support/minecraft ): The above is different for ~/Library , and ~/Library/Application Support , which are I want to force Preview to write the original file, and not create a duplicate. How can I do so?