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.

Filemaker Script to trigger Apple Finder Script?

Featured Replies

  • Newbies

Hi,

Ive been building a script that inserts a picture into a container field, that has its location specified by a calculated text field, this works sequentially. This works quite well. However as the script works through the 40K records in the database I would like to run an Applescript that changes the label of the files as they are imported, to see if there are any that have not been incorporated, (or otherwise mark them).

The bit that works OK so far is:

Fo to Field [select/perform; Macintosh_HDOld Converted::picref]

Set Variable [$File_Name; Value:Macintosh_HDOld Converted::picref]

Go to Field [Macintosh_HDOld Converted::Pic]

Insert Picture [Reference; "$File_Name"]

Go to Record/Page[Next]

Perform Applescript ["tell application "Finder"……………

Perform Script ["New INSERT PIC"]

The bit I'm having problems with is:

"tell application "Finder"¶

set label index of "" & to 2

Let( [

path = GetField ( Macintosh_HD_Old Converted::picloc ) ;

pathTrim = Replace ( path ; 1 ; 1 ; "" ) ;

pathMac = Substitute ( pathTrim ; "/" ; ":" ) ;

result = pathMac & Macintosh_HD_Old Converted::picloc

] ;

result )

& ""¶end tell"

I basically copied the second half from a script that would tell the finder to delete the file, and tried to modify it for my own uses.

Thanks,

Patrick

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.