Re: How do you display the IP Address?
Re: How do you display the IP Address?
- Subject: Re: How do you display the IP Address?
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 25 Aug 2009 18:46:27 -0400
A bit shorter and working:
<script>
set macInfo to system info
try
set ni to "Network Domain: " & text 23 thru -1 of paragraph 1 of (do
shell script "/usr/sbin/system_profiler SPNetworkDataType | grep
'Domain Name:'")
on error
set ni to "Network Domain: unknown"
end try
set helpdeskinfo to "~RRD HELP DESK INFORMATION~
Computer Name: " & computer name of macInfo & "
" & "IP Address: " & IPv4 address of macInfo & "
" & " User Name: " & long user name of macInfo & "
" & "User Location: " & user locale of macInfo & "
" & "Home Directory: " & home directory of macInfo & "
" & "Boot Volume: " & boot volume of macInfo & "
" & "MAC Address: " & primary Ethernet address of macInfo & "
" & "CPU Type: " & CPU type of macInfo & "
" & "CPU Speed: " & CPU speed of macInfo & "
" & "Memory: " & physical memory of macInfo & "
" & "Home Directory: " & home directory of macInfo & "
" & ni & return & return
set the clipboard to helpdeskinfo
display alert helpdeskinfo
</script>
Some notes, I've added the clipboard if someone wants to post the
information somewhere, like an email.
Since you are scripting this whole thing, why wouldn't you just have
the user also send an email, if possible, with all this info.
I, however, like the idea very much.
Deivy Petrescu
email@hidden
_______________________________________________
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