4 ms·
> What if Photoshop doesn't just "save" a file, but writes several intermediate files onto the filesystem and does a bunch of file renames to create a "backup"
by saagarjha 7y ago
> What if Photoshop doesn't just "save" a file, but writes several intermediate files onto the filesystem and does a bunch of file renames to create a "backup" of the original image.
Powerbox actually has support for this.
- sammorrowdrums 7y agoSurely it can store files in a working folder of its own, and keep a reference to the original file. The other files don't need to live side-by-side
- justmedep 7y agoThere is official support for auxiliary files in macOS/sandbox. A prime example is the use of SQLite in WAL mode which requires write access to $dir/my_db.sqlite + a bunch of other files in the same directory (for transaction handling etc). But this problem was solved years ago already because Core Data (an apple framework) actually uses SQLite under the hood.
- szc 7y agoAbsolutely, but this then means if apps want to adopt some sort of sandboxing, they will quite possibly have to adopt or obey some rules. Sometimes app developers will refuse. Being pragmatic, what can be done then? Observing the system calls apps make can be eye-opening and sometimes very sad.
- szc 7y agoSure. But does / did Photoshop have its own custom file picker? Some apps or multi-platform frameworks (like QT) have rolled their own in the past.
- saagarjha 7y agoNo idea about Photoshop, but yes, I have heard of custom file pickers being nonfunctional inside of sandboxed applications.