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.

fileExists?

Featured Replies

Hi,

Is there a clean way to check if a file exist?

Here is my script:


Set error capture [on]

recover file [No dialog; "donoterase.fp7"]

Set variable [$errorCode; Get (LastError)]

Set error capture [off]

if [$errorCode = 0]

  Send Event ["aevt"; "pdoc"; "cmd del "s:donoterase recovered.fp7""]

  exit script[1]

else

  exit script[0]

end if

Actually I want to check if a usb drive was connected. So I left a permanent dummy file on the usb drive.

Thanks in advance for your help!

NB

AFAIK, the only way to currently do this is with a plug-in (in fact, many plugins: Troi File, SmartPill, even SMTPit, whose main purpose is to send e-mail). I'd love to hear otherwise.

  • Author

Do you know if Filemaker can read from command prompt returns? If so, there might be a way then.

zippTools has a free shell script plugin that would probably work. Just google zippTools filemaker.

If you go this route, please post your shell code here, I'd love to have a way to do this.

  • Author

Unfortunately, zippShell is for Mac only... It would have been great to have the same in Windows.

  • 2 weeks later...

From the number one plug-in developer the number one plug-in:

[color:red]Command your shell

With the [color:green]TrFile_ExecuteShell function you can execute a command in the command shell of the operating system. On Mac OS X this will be a command executed in the UNIX Bourne shell, and on Windows this is the Windows CMD shell.

TROI File plug-in

Happy FileMaking

Ralph Nusser

Sogetes Computer-Services

www.sogetes.com

  • Author

I already have some licenses of TroiFile and other plugins dating from 1-2 years, we used them at the beginning. But the maintenance at each new plugin updates was a pain in the ...

So I decided to use only the FM functions and ability.

Edited by Guest

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.