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.

How can I set a filemaker 7 field with applescript variable?

Featured Replies

I have an applescript that extracts some file info from a file, and sets a variable with it. Now I want to enter that variable value into a filemaker field. How can I do this??

Here's the code:

set this_file to choose file

try

tell application "Image Events"

launch

-- open the image file

set this_image to open this_file

-- extract the property value

copy the dimensions of this_image to {xres, yres}

copy the name of this_file to originalname

-- purge the open image data

close this_image

end tell

display dialog "The file " & (originalname as string) & " Resolution is " & (((xres as string) & " by " & yres as string) & " pixels")

on error error_message

display dialog error_message

end try

I want to enter "originalname" and "xres" and "yres" values into filemaker fields. How can I do this?

Thanks.

  • Author

I figured it out! The key is the applescript must communicate to Filemaker via Applescript!

Here's the code that works:

set this_file to choose file

try

tell application "Image Events"

launch

-- open the image file

set this_image to open this_file

-- extract the property value

copy the dimensions of this_image to {xres, yres}

copy the name of this_file to originalname

-- purge the open image data

close this_image

end tell

tell application "FileMaker Pro"

activate

set field "Original Filename" in current record to originalname as string

end tell

on error error_message

display dialog error_message

end try

Hope this helps someone!

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.