Getting the name for a Mac Users 'home'

Marc Siskin msiskin at andrew.cmu.edu
Fri Apr 24 12:10:50 EDT 2009


Adrian,

Another option would be to install the fonts in the /Library/Fonts  
directory which should make the fonts available to every user on the  
machine.

Marc

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

> Thanks to Mark and Marc, both solutions are useful.
> The Administrator will be using this Installer in all cases.
> So I guess a simple "~/library/fonts" will suffice.
>
> Many thanks,
> Adrian
>
>
> On 24 Apr 2009, at 16:39, Marc Siskin wrote:
>
>> Adrian,
>>
>> 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
>
>> Hi Adrian,
>>
>> On the Mac, that's "~/library/fonts".
>>
>> --
>> Best regards,
>>
>> Mark Schonewille
>>
>> Economy-x-Talk Consulting and Software Engineering
>> http://economy-x-talk.com
>> http://www.salery.biz
>> Dutch forum: http://runrev.info/rrforum
>>
>> Simple, inexpensive, reliable web hosting. €11/year.
>> http://economy-x-talk.com/server.html
>>
>>
>> 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
>>> http://www.clubtype.co.uk
>>> <adrian at clubtype.co.uk>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>> ---------------
>> Marc Siskin
>> Manager, Modern Language Resource Center
>> Carnegie Mellon University
>> msiskin at andrew.cmu.edu
>>
>>
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
>

---------------
Marc Siskin
Manager, Modern Language Resource Center
Carnegie Mellon University
msiskin at andrew.cmu.edu






More information about the use-livecode mailing list