Re: Get the IP Address of a Mounted Disk
Re: Get the IP Address of a Mounted Disk
- Subject: Re: Get the IP Address of a Mounted Disk
- From: Eric Geoffroy <email@hidden>
- Date: Thu, 07 Jul 2005 12:00:51 -0700
Here's a 'do shell script' starter without any applescript around it yet. Play around in the Terminal with this stuff-
netstat -f inet -W
you can awk just the column with the important stuff
netstat -f inet -W | awk '{print $5}
The lines you want look like this:
168.146.146.40.afpovertcp
Apple File Protocol over TCP. A clever person could grep or awk the IP preceding any line that has "afpovertcp". Then return a list of the results.
Like I said, it's a starter.
- Eric
On Jul 5, 2005, at 5:37 AM, Mark Munro wrote:
Given a folder path of a folder on a mounted disk (or the disk name), is it possible to get the server IP address? If you do a "Get Info" in the finder, you see the "afp" address, which includes the IP address. How can I access this with AppleScript?
Mark Munro
mailto:email@hidden
-------------------------------
Write Track Media, Inc.
P.O. Box 1008
Milford, PA 18337
Tel: 570.296.9970
Web: http://www.wtmedia.com/
Write Track Media solutions eliminate repetition, allowing you to focus on your highest potential.
-------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to 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:
This email sent to email@hidden