I'm testing an app that uses the System temp Directory. Inside of the app, there is some call to a Cocoa function to query this. Is there a way for me to query for this directory name outside of having to write a Cocoa app of my own? Possibly a command that I can issue in Terminal?
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
Just type this command into Terminal. With zero arguments it'll print the names and values of variables in the environment. Alternative with a bit more typing:
|
|||||
|
|
OS X has Python pre-installed, though not necessarily a fresh Python; but this is not cutting-edge stuff. So: Open a terminal
|
||||
|
|