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.

works in applescript not FM

Featured Replies

This works in apple script but not in Filemaker.

and falls over at the line-

"set this_data to ((read FMFile) & return as string)"

I am adding a tab separated file (exported from FM) to another file which is created by the script and contains the exported files field titles.

For the script to work it needs a tab separated file on the desktop called "export.txt" (with 6 fields)

Any ideas why it works in applescript and not in file maker?

Thanks as always

--------------------------------------

set this_data to "First" & tab & "Last" & tab & "Company" & tab & "Job title" & tab & "Email" & tab & "mobile" & return

set this_file to (((path to desktop folder) as text) & "temp_header.txt")

my write_to_file(this_data, this_file, true)

set FMFile to (((path to desktop folder) as text) & "Export.txt") as alias

set this_data to ((read FMFile) & return as string)

set this_file to (((path to desktop folder) as text) & "temp_header.txt")

my write_to_file(this_data, this_file, true)

on write_to_file(this_data, target_file, append_data)

try

set the target_file to the target_file as text

set the open_target_file to

I believe it's that you need to put the entire write to file block inside a tell application "Finder" block. There are a few commands that only work in FileMaker if you do this.

  • Author

I'll try that, thanks

For reference I had to wrap separately the main script and the sub routine

Edited by Guest

  • 2 months later...

Hi,

Refer my post for http://fmforums.com/forum/showtopic.php?tid/155161/..

Let me know if it helps...

Regards,

MetaSys Software Pvt. Ltd.

www.metasyssoftware.com

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.