Skip 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 to pass data from a FileMaker field to an Applescript

Featured Replies

  • Newbies

I need to delete a file off of my Cincinnati Laser from FileMaker. It gets it there via a FMScript that export field contents of a container to this location. So I know the file name and the path its all built in a calculation field on that record. But I don't know how to get that info into an Applescript using the FM12 "Perform AppleScript" script step

When I hard code the path and file name (Shown Below) it works.

 

"set set xpath to "Titanium Brain:Users:smartin:Desktop:Laser:1512-clr-c.cnc"

 tell application "Finder"¶

       delete file xpath¶

 end tell"

 

 

When I try to pass the field contents (Shown Below) it doesn't work.

 

"set xpath to Laser::gCNCPath¶

 tell application "Finder"¶

       delete file xpath¶

 end tell"

 

What am I missing?

I'm no AppleScript expert, but I'm sure that the AppleScript engine can't resolve a FileMaker field reference (the same 'problem' as with ExecuteSQL).

 

Try

 

"set xpath to " & Laser::gCNCPath & "¶

 tell application "Finder"¶

       delete file xpath¶

 end tell"

Create an account or sign in to comment

Similar Content

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.