Document folder on MacOS

Monte Goulding monte at sweattechnologies.com
Wed Sep 4 22:46:01 EDT 2002


Can't the name be changed or something? Anyway I've now just added an option
in the preferences dialog to set the folder with a default to a folder on
the desktop on Mac and in My Documents on PC. I am still surprised it wasn't
included in the specialFolderPath function as there must be an API to get it
because there are quite a number of apps that use it to store user data.
Perhaps appleScript?
>
> I was wondering about this too, but then I realised that in OS X, the
> user's Desktop folder is in the same place as their Documents folder,
> so you can use the following script:
>
>    put specialFolderPath("Desktop") into fName
>    set the itemDel to "/"
>    put "Documents" into last item of fName
>    -- fName now contains the path to the user's Documents folder
>    -- if you want to know, item -2 of fName is the user's login name
>
> With OS 9, but it's probably easier to find the disk name and work from
> there.
>
> Sarah
>
>
> On Thursday, September 5, 2002, at 12:52  pm, Monte Goulding wrote:
>
> > Hi All
> >
> > Just wondering if there is a way to get the Document folder on MacOS
> > and OS
> > X?????? Pity it was missed in the specialFolderPath spec.
> >
> > Cheers
> >
> > Monte Goulding
> > B.App.Sc. (Hons.)
> >
> > Executive Director
> > Sweat Technologies
> >
> > email: monte at sweattechnologies.com
> > website: www.sweattechnologies.com
> > mobile: (+61) 0421 138 274
> >
> >
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the Use-livecode mailing list