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.

Want to treat files ending .csv as text

Featured Replies

Hi...

For a variety of reasons, I'm trying to import a folder full of text files into a FM10 table, with the entire contents of each file appearing as one field of one record, and the title of the file appearing as another field of the same record.

I am using:

Import Records > Folder

then specifying the folder path.

Unfortunately, this fails because the files within the folder are supplied with the '.csv' file extension (even though they are not .csv files) - FM is clearly seeing the '.csv' extension and deciding to reject the file based on that.

Is there any way of telling FM to 'get over it' - ie. to force it to treat files within a folder as text regardless of the file extension?

(Renaming the files to end .txt works, but is a little tedious to do across a number of files and also requires manual intervention on the user's part).

Any ideas?

Thanks,

Rob.

If this is on a Mac, you could use Applescript to rename the files. The user wouldn't have to intervene, since you can perform Applescript during Filemaker's importing script.

  • Author

Hi,

Yup, thought of that. In fact, on a Mac you don't even need to rename the file: you can just set the file type to text. FM clearly checks that before checking the file extension and so quite happily imports the files.

Trouble is, this solution will ultimately be used on PCs as well as Macs...

Rob.

Edited by Guest

Well, maybe you could do something similar with Send Event on Windows - though I don't know if you can avoid forcing the user to select the folder twice there.

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.