Created
August 11, 2012 04:22
-
-
Save judismith/3320795 to your computer and use it in GitHub Desktop.
Test for internet connection within Filemaker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?