Temporary folder on OSX

Richard Gaskin ambassador at fourthworld.com
Tue Jun 24 12:29:00 EDT 2003


Thierry Arbellot wrote:

> I have an iBook running OSX 10.2.6 and Rev 2.0.1
> 
> On this computer, the specialFolderPath("Temporary") command returns
> "/private/tmp/502/Temporary Items"
> Notice that the Rev documentation doesn't say temporary folder is
> available on OSX.
> 
> Also, I have an iMac with OSX 10.2.6 and Rev 2.0.1
> 
> But on this other computer, specialFolderPath("Temporary") returns
> empty.
> I checked the disk - with the help of FileBuddy as the temporary folder
> is invisible - and found the path "/private/tmp/501".
> I created the "Temporary Items" folder, and then
> specialFolderPath("Temporary") returns "/private/tmp/501/Temporary
> Items"
> Looks good.
> Unfortunately, when I restart the system, the "Temporary Items" folder
> is deleted.
> 
> At this stage, I would like to know what is correct: should
> specialFolderPath("Temporary") returns a path or not ?
> 
> Please, could someone check on his own computer and let me know what
> does return specialFolderPath("Temporary") ?

OS X 10.2.6, Rev 2.0.1 returns "/private/tmp/501/Temporary Items"

That this folder is deleted between sessions may not be mysterious; could
that temporary nature be expected?  I haven't read Apple's spec on this so I
don't know.

If you need a persistent folder, you may consider using
specialFolderPath("Preferences").

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list