Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Display current network location via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display current network location via the Terminal
Authored by: m@ on Sep 23, '04 12:28:45PM
I use this apple script wraper for a couple of shell commands for my iChat status, so people know where i am and what time it is where i am:

set localtime to do shell script "date \"+%I:%M %p %Z\""
set location to do shell script "scutil <<EOF | sed -n 's/.*UserDefinedName : \\(.*$\\)/\\1/p'
open
show Setup:/
close
EOF"

return "@ " & location & " [" & localtime & "]"



[ Reply to This | # ]