Skip to content

Instantly share code, notes, and snippets.

@judismith
Created August 11, 2012 04:22
Show Gist options
  • Save judismith/3320795 to your computer and use it in GitHub Desktop.
Save judismith/3320795 to your computer and use it in GitHub Desktop.
Test for internet connection within Filemaker
try
set thePing to do shell script "/sbin/ping -o -c 5 www.google.com"
on error
set thePing to "error"
end try
tell application "FileMaker Pro Advanced"
if thePing is not "error" then
set cell "g_internet" to "true"
else
set cell "g_internet" to "false"
end if
end tell
@Vonholt
Copy link

Vonholt commented Jun 30, 2015

How would I go about adding in a specific DNS name where google is? I guess I would have to run it as calculated Applescript?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment