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.

Creating records from tabbed data list in text box

Featured Replies

I had a previous solution in Windows using Sendevent to select a folder, then create a text file of it's contents, then import that list into a field, one tabbed item per record.

"cmd /c cd " & $importdir & "&&" & "dir /b > filelist.txt"

Moving to a OS X, I'm trying to use the excellent BaseElement plugin. I've used BE_ListFilesInFolder to get the list of files in a folder and have it dropped into a text field. The output is tabbed, one item per line. I can't figure out how to create a script to get the contents of that field, and populate each line into a field, one per record. Any ideas?

2 hours ago, jarmen said:

The output is tabbed, one item per line.

I am not sure what you mean by "tabbed". I believe the output is a return-separated list. To create a record for each item in the list, make your script do:

Set Variable [ $files; Value:BE_ListFilesInFolder ( "/Users/YourUserName/Documents/SomeFolder" ) ]
Go to Layout [ “Files” ]
Loop
  Set Variable [ $i; Value:$i + 1 ]
  Exit Loop If [ $i > ValueCount ( $files ) ]
  New Record/Request
  Set Field [ Files::Fielname; GetValue ( $files ; $i ) ]
End Loop
Commit Records/Requests 

where "Files" is the table you want to use in order to store these records.

 

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.