• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get the IP Address of a Mounted Disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Get the IP Address of a Mounted Disk
      • From: Martin Orpen <email@hidden>
References: 
 >Get the IP Address of a Mounted Disk (From: Mark Munro <email@hidden>)

  • Prev by Date: Xpost FMserver7 ScriptProperties
  • Next by Date: Mail: Get selected mailbox?
  • Previous by thread: Get the IP Address of a Mounted Disk
  • Next by thread: Re: Get the IP Address of a Mounted Disk
  • Index(es):
    • Date
    • Thread