Applescript ping from FileMaker Pro.

I am writing an article on executing a “ping” from filemaker, and then returning the results into a field.

On Windows, this is easily executed by using “send event” & entering Cmd /c ping 192.168.1.1 >c:\ipinfo.txt
This saves the result as a text document entitlted “ipinfo.txt” which I import into FileMaker.

I need to be able to do this Mac OS X. Does anyone have any experience with this?

In Kindness
Stephen K Knight :slight_smile:

Model: eMac
Browser: Internet Explorer 6.0
Operating System: Mac OS X (10.4)

hi stephen,

i’m not a FileMaker guru by any means, but i have it on this machine.

i’m guessing you want to do this from the ‘scripts’ portion of Filemaker. when i poke around in there i do see an option under, ‘Miscellaneous’, to ‘Perform AppleScript’. if all you want to do is what you did in DOS, then this would be the command:


do shell script "/sbin/ping 192.168.1.1 /ipinfo.txt"

you’ll have to test this out, but that will put the document at the root level of your HD. if you want to put it somewhere else, give it a POSIX path, like “/here/is/the/path/ipinfo.txt”.

test it out and if you have problems let us know.

Walter, thank you very much! I will do.

In Kindness
Stephen Knight

hi stephen,

i just realized that i left out an important character from my post. rather than edit it, i’m reposting:



do shell script "/sbin/ping 192.168.1.1 > /ipinfo.txt"


i left out the “>” character. DOAH!