how to adress a users folder on Mac OSX

Chris Sheffield cmsheffield at gmail.com
Thu Jan 18 11:28:38 EST 2007


You can also simply use the tilde character '~' to specify the user's  
home folder.

So "~/Library" would give you the user's Library folder.

Chris

On Jan 18, 2007, at 9: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"
>
> Devin
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

------------------------------------------
Chris Sheffield
Read Naturally
The Fluency Company
http://www.readnaturally.com
------------------------------------------





More information about the use-livecode mailing list