Getting the name for a Mac Users 'home'
adrian at clubtype.co.uk
Fri Apr 24 11:55:21 EDT 2009
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.
On 24 Apr 2009, at 16:39, Marc Siskin wrote:
> 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
> Dutch forum: http://runrev.info/rrforum
> Simple, inexpensive, reliable web hosting. €11/year.
> On Apr 24, 2009, at 11:28 AM, Adrian Williams wrote:
>> Hello all,
>> Installing fonts into the Public domain is a breeze:
>> But I need to install and uninstall fonts in the Users domain. For
>> How can I retrieve 'someunknownname' from any computer and place it
>> in a variable in the pathname?
>> Club Type
>> <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:
> 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:
More information about the use-livecode