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

Is there anyway to set a filemaker variable from applescript.

Example:

If I run:

set Original_Printer to do shell script "lpstat -d"

I want to output Original_Printer to a filemaker variable.

I don't think so. AppleScript cannot write to script Variables. It cannot read them either, unless global variable is ensconced within a calculation field, in which case AppleScript would just be reading the field, which ain't really a variable.

  • Author

That was what I thought since I could not find anything in the applescript dictionary for FileMaker. The only other solution I came up with was writing a small text file and then reading it later. As you said though... that is too is not a variable.

There's always global fields, or a 1-record table.

  • Author

i know but then the field has to be on the layout. I am building a printer selection script. I will call it as a sub-script. I want it to work anywhere in the solution and not worry about if a field is on a layout. FMI... are you listening?:?

The field does not have to be on the layout if you can specify it via "table" in AppleScript (actually a FileMaker table occurrence name, ie., on the relationship graph). This is especially true for global fields (or a 1-record table), ie., where you do not need to know a particular record. Experiment.

I do not have much hope that FileMaker's AppleScript implementation is going to be updated any time soon. I recently complained to them that the AppleScript documentation file, Apple Events Reference was no longer installed with the application. They let me know where I could get it:

http://fmdl.filemaker.com/MISC/fmp10/fp/apple_events_reference_wwe.zip

But not very encouraging. Apple itself seems to have a kind schizophrenic attitude toward AppleScript.

Here's a little test file I made for myself, to see what does and doesn't work for setting a field.

AS_Tests.zip

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.