Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Check for file or host availability

Featured Replies

Check for file or host availability

Hi,

I'm trying to make a script that checks if a filemaker file hosted on my office network is available or not. If it is the script continues and imports a few records. If the laptop running the script can't see the office network (the laptop is not connected to the office network) the script should stop.

What's the best way to implement this?

The File hosted in the office network is described in the External Data Sources as:

fmnet:/internalofficeservername.ourdomain.com/OfficeFile

The name internalofficeservername.ourdomain.com only resolves internally (there's a record in our internal dns server, but not on our external dns servers).

I tried using:

Open File [Open hidden; "OfficeFile"]

if[Get (LastError = 802] */ Unable to open file

Exit Script[]

Else

etc........

also tried

if[Get (LastError = 100] */ file is missing

Exit Script[]

Else

etc........

if[Get (LastError = 803] */ Host cannot be resolved

Exit Script[]

Else

etc........

All 3 attempts are not giving me what I'm looking for, even if the "OfficeFile" is not available the script continues...

What gives?

Thanks for your help!

Federico

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.