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.

Applescript help FM8.5

Featured Replies

Using FMPA 8.5

I tried putting this AppleScript directly in a FileMaker script in a file called test1... Idea is from file 1 :) to open file 2 and set a field...

tell application "FileMaker Pro Advanced"

activate

open file "mydrive:myfolder:Testers:test2.fp7"

set cell "testfield" of current record of database 1 to "stuff"

end tell

When I run this - I get -

" no user interaction allowed"

error =

-1713

- this is just 2 new test files with no privileges - it is set to all access

Q: what's wrong here?

Edited by Guest

  • Author

I still could use some help with this... any ideas?

I had trouble with this also. I think the problem is that when FileMaker is running an AppleScript, as opposed to Script Editor or a stand-alone AppleScript applet, it has trouble reaching out to another FileMaker file that is not open.

Because things work fine if the file is already open. But if the file is not open, no matter if I put a delay, it still just sits there waiting, then gives an error that the objects cannot be found.

So, my suggestion would be to either do this stuff with a separate AppleScript file, or alternate between using AppleScript and FileMaker. That is, split the operation up between the 2 files. What is the problem with this? Are you trying to avoid creating, or cannot create, a File Reference between them?

BTW, you'd want to tell application "Finder" to open the file; it will open with its owner, which is FileMaker. FileMaker doesn't "open" files apparently.

tell application "Finder" to open (choose file)

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.