how to adress a users folder on Mac OSX
Ken Ray
kray at sonsothunder.com
Thu Jan 18 11:29:50 EST 2007
On Jan 18, 2007, at 10:23 AM, Devin Asay wrote:
>
> On Jan 18, 2007, at 9:00 AM, Phil Davis wrote:
>
>> Hi Richard,
>>
>> Here's one way:
>>
>>
>> -- button script
>> on mouseUp
>> put ($HOME & "/Library") into tTargetFolder
>> set the defaultFolder to tTargetFolder
>> put the files into fld 1
>> end mouseUp
>>
>>
>> "$HOME" is an environment variable - always there, no need to
>> define it.
>
> Here's another approach:
>
> put put specialFolderPath("cusr") & "/Library" into tTargetFolder
> set the defaultFolder to tTargetFolder
> put the files into fld "LibContents"
Also, for a quick lookup of specialFolderPath codes, see my tip on
the subject:
http://www.sonsothunder.com/devres/revolution/tips/file010.htm
Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list