Jump 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.

Featured Replies

  • Newbies

I have a folder in which files are downloaded on a regular basis every 5 minutes. I need to import these files automatically into filemaker table (existing) with a script that automatically runs every 5 minutes.  Once the file in imported then the file needs to be moved to a "Archive" subfolder. Filenames will vary, but never duplicate.  Files are text tab delimited.

 

Here is the path of the files: /Users/unsername/documents/download/

I know that I can import multiple files with the menu.  However again, this needs to run automatically every 5 minutes.

Thank you for any help you can give.

 

I am using Filemaker pro Advance 15

 

image.png.5a576f5015ecfb6db71d0dbc1d21cffa.png

 

38 minutes ago, teamhyp said:

However again, this needs to run automatically every 5 minutes.

Are you a single user? If yes, will you be working with the solution while all this takes place?

 

38 minutes ago, teamhyp said:

Once the file in imported then the file needs to be moved to a "Archive" subfolder.

Filemaker can't do this natively without the help of a plugin or OS-level scripting*. 

---
(*) Please update your profile to reflect your version and OS. 

  • Author
  • Newbies

Yes, single user.  Profile updated. I can maybe use applescript to detect new file and launch the filemakerscript then use apple script again to move the file?

1 hour ago, teamhyp said:

I can maybe use applescript to detect new file and launch the filemakerscript then use apple script again to move the file?

Yes, I believe that may be your best option: create a folder action script in AppleScript, attach it to your folder and have it handle everything.

  • Author
  • Newbies

I still need a script to load files without knowing their names.  So I need a script to basically upload the whole folder worth of files every 5 min.

You can make a script to import whatever is in the folder at that time. And if you're using AppleScript to watch the folder and call the FileMaker script, then you don't need to do it every 5 minutes (although you could, if you so prefer). 

Alternatively, you could have the AppleScript write the file names to a global field and have the FileMaker script take it from there.

What is the mechanism that adds the files to the folder? The one thing that worries me is the possibility of a file being added while you import. 

  • Author
  • Newbies

I am not looking for the possibilities, I am looking for someone to help me create it.

Create an account or sign in to comment

Important Information

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

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.