Getting the name for a Mac Users 'home'

Marc Siskin msiskin at
Fri Apr 24 11:39:58 EDT 2009


If you are referring to the logged on user then the path is always ~/ 
Library/etc.  If you are referring to all users, then you need to list  
the /Users directory which will give you a list of the accounts on the  
local machine. You should be able to parse the username from the  
listing of that directory.  You will probably need to use a sudo  
command if you are trying to install fonts in any other user than the  
one currently logged on.

Marc Siskin

On Apr 24, 2009, at 11:28 AM, Adrian Williams wrote:

> Hello all,
> Installing fonts into the Public domain is a breeze:
> MacHD/Library/Fonts/MyNewFont.ttf
> But I need to install and uninstall fonts in the Users domain. For  
> example:
> MacHD/Users/someunknownname/Library/Fonts/MyNewFont.ttf
> How can I retrieve 'someunknownname' from any computer and place it  
> in a variable in the pathname?
> Thanks,
> Adrian
> ______________________
> Club Type
> <adrian at>
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:

Marc Siskin
Manager, Modern Language Resource Center
Carnegie Mellon University
msiskin at

More information about the use-livecode mailing list