Re: Detecting if connected to internet
Re: Detecting if connected to internet
- Subject: Re: Detecting if connected to internet
- From: Bruce Robertson <email@hidden>
- Date: Sun, 25 May 2008 14:19:16 -0700
> I¹ve written an Applescript that will make a backup of a Filemaker Database
> with unique name then uses CURL to ftp it to a backup server. This DB is a
> standalone and I don¹t trust the user to make an offline backup for safety
> purposes. They travel a lot and I¹m afraid a stolen or dropped laptop would
> really hurt if they lost this file.
>
> But sometimes they work off line. I want to add a line that would check to see
> if they were on the internet and if so, then send the backup, else, not.
>
> Any suggested approaches? Ping something and if it fails then assume you¹re
> offline? Is there an OS status that would indicate this?
>
> Dan
> --
>
> Dan Doughtie
> Augusta, GA
(Sorry accidentallly hit send in previous post)
Applescript is great but sometimes it is not the necessary tool for the job.
You can do this - xlplat even - with native Filemaker features, assuming you
have FileMaker 8.5+.
Investigate the FileMaker function getLayoutObjectAttribute.
For a webviewer, you can get the source (URL) and content.
If you have no connection the content (assuming a valid web viewer URL)
will be empyty.
For your underlying purpose you might be well advised to look into
WorldSync, which is used to sychrnonize FileMaker with remote data sources.
Worldsync will be much faster. It is a data sync service not a file
backup/tranfer process.
http://www.worldsync.com/
(I am not involved with Worldsync and nor am I currently a Worldsysnc
customer.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden