Re: machine name and user
Re: machine name and user
- Subject: Re: machine name and user
- From: Frank <email@hidden>
- Date: Mon, 13 Aug 2012 18:30:07 -0400
set currentComputer to computer name of (system info)
set currentUser to system attribute "USER"
I find that using system attribute seems like the cleanest way to proceed to me, since it simply reads environment variables, well, at least compared to parsing the output of an external command (or the home folder path) while keeping your fingers crossed. ;)
Hope this helps!
On Monday, 13 August, 2012 at 17:30 , Bob Cuilla wrote:
I am trying to retrieve the current machine name and user. Does anyone know the proper syntax to get that info.
Thanks in advance
Bob Cuilla
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden