I see people saying the file (or is it multiple files?) is kept in the HD root. I don't see anything there (I only have one drive) that looks relevant to Photoshop, even when I view invisible files. Anyone know where the file is, and what it's named? Is it invisible?
The reason I ask is that I want to exclude it from my ongoing Time Machine backups. I'm slowly learning the various Adobe folders that I need to exclude manually. (AutoRecover, Application Support/Adobe... in fact, the bazillion CS6 folders within Applications, since I'll just restore them from Creative Cloud if I have a failure.)
Sometimes Time Machine has been doing a big backup for reasons unknown, and I think the recent installation ogf CS6 may be the culprit.
Thanks in advance!
Excellent! Thanks.
I see it there. For the use of posterity, here's the filename (and it's not there when PS isn't running, unless maybe after a crash):
/tmp/com.adobe.csi.ctrl-CS6-shortrusername
Meanwhile, I'd wondered whether auto-saves might go to the same place, but they're in:
~/Library/Application Support/Adobe Photoshop CS6/AutoRecover
(You can get to ~/Library by option-clicking the Go menu). I believe Time Machine DOES back up Application Support (I hope so, since it contains vital stuff) but I excluded the AutoRecover directory.
nagromme wrote:
Excellent! Thanks.
I see it there. For the use of posterity, here's the filename (and it's not there when PS isn't running, unless maybe after a crash):
/tmp/com.adobe.csi.ctrl-CS6-shortrusername
Why do you say that file is the scratch?
That file will be in the system volume regardless of which volume is being used for "scratch disk", and it appears to be used by the CS6ServiceManager process.
My suspicion is that OS X does not reveal the scratch file(s), neither in Finder nor in Terminal. Many GB can be consumed from the scratch volume with no file seen to account for it. Below is a screenshot of a volume when about 20GB is being consumed by the Photoshop scratch. The volume's free space does decline as the scratch grows (and the free space is recovered when Photoshop is quit) but there's no file.
Occasionally, a short-lived file will appear in the TemporaryItems (no prefixed period) directory but it will be only a few MB. The name will have the form "Adobe Photoshop CS631035433849077" (digits vary) but its size is never anywhere near large enough to account for the scratch and it tends to vanish after only a few minutes, although the scratch continues to exist... somewhere.
Will an engineer answer the OP's question, please?
Very interesting.
I'd be surprised to hear that OS X supports 3rd-party creation of a file that the owner/admin using Terminal cannot even see exists! But it sure looks that way. Have you tried an ls -R -a in Terminal too? (R for recursive to see inside subdirectories, a for all to see invisibles.) I ask only because I've found Finder's display of invisible files to be quirky. (Specifically: I change the filename I'm searching for and the list doesn't update. So I could believe the Finder's list might be unreliable in other ways as well. Probably not, I just wonder.)
I hope Adobe's not doing something weird with the filesystem (why would they need to anyway)... that's the kind of thing I don't need to be thinking about in the night!
Chris, thank you for teaching me something new. I wasn't aware that on a Mac the scratch files disappear while in use.
On the outset it sounds to be a bad idea to work outside the normal directories, but I trust that you and the Apple folks know better how to best use the Apple file system for this purpose.
-Noel
nagromme wrote:
I didn't know OS X could do such a thing!
I didn't know about it either but, apparently, the technique is common:
http://en.wikipedia.org/wiki/Hard_link
"If one of the links is removed with the POSIX unlink function (for example, with the UNIX rm command), then the data are still accessible through any other link that remains. If all of the links are removed and no process has the file open, then the space occupied by the data is freed, allowing it to be reused in the future. This semantic allows for deleting open files without affecting the process that uses them. This technique is commonly used to ensure that temporary files are deleted automatically on program termination, including the case of abnormal termination."
Reminds me of the interesting techniques Time Machine uses to make delta backups appear in the file system as complete and self-contained backups.
http://pondini.org/TM/Works.html
(Not the article I remember reading, but it's what came up!)
I think that at one time or an other every OS system that I have work with that it or one of its files system through me for a loop. The one that stands out in my mind I encountered when I was using Microsoft OS2. Which they dumped onto big blue. OS2 was object oriented and I did not fully understand what that meant. One day I fixed a program and tested the fix. I then renamed the old program in the system folder and copied in the new program. Then I went and told my manager. When he launched the program the old bug was still there. OS2 being object oriented had changed all links, shortcut whatever you want to call them to point to the renamed program and it executed it even though its name was something like programname.exeold. You got to love computers
North America
Europe, Middle East and Africa
Asia Pacific