Path to user's HOME directory in Mac OS X

Alex Rice alrice at
Wed May 14 23:06:01 EDT 2003

On Wednesday, May 14, 2003, at 02:32  PM, RGould8 at wrote:

> I see in the SpecialFolderPath command for Mac OS X, there's paths for:
> Desktop, System, Fonts and Preferences.
> Can anyone tell me how I can get Revolution to tell me what the path 
> is for the user's HOME directory, (where the user's Movies, Music, 
> Pictures, Public folders are)?

Rev also understands the Unix shortcut "~" to designate the user's home 
directory. This works (2.0 rc1):

set the defaultFolder to "~"
get the defaultFolder
-- now "it" is the actual path like /Users/alex

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
alrice at
alrice at

More information about the use-livecode mailing list