where do I find the temp folder on a Mac?
sarah.reichelt at gmail.com
Tue Nov 18 13:45:52 CST 2008
>> Beeing not a Mac guy, I don't know where I find the temp folder on a Mac.
>> used the specialfolderpath("temp") and according to Kens website (@Eric: I
>> used the docs!) it is supposed to be: /private/tmp/501/Temporary Items,
>> I don't see it. Actually I don't even find the "private" path. Is it
>> and if yes, how to show it?
> obviously there are more than ONE temp folder on OS X and they may be even
> different on other machines!
> put specialfolderpath("temp") -> /Users/klaus/Library/Caches/TemporaryItems
> put the tempname ->
> VERY cryptic = geeky :-)
I have found 3 different temporary folders. Try this command in the message box:
put specialFolderPath("temp") & cr & the tempname & cr & $TMPDIR
It gives me:
So my question is: which one should I use?
In my case, I need it to catch the output from a shell command running
in the background.
So the shell needs to be able to write, my Rev app needs to be able to
read, and preferably to delete the file afterwards to tidy up.
I have been using $TMPDIR and that works fine, but
specialFolderPath("temp") looks a lot nicer.
Are they all functionally the same or are there any differences,
particularly if running a non-admin account?
More information about the use-livecode