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.

Using OSX Preview to open folder from FM

Featured Replies

Sorry if this was covered elsewhere.

 

I use Open URL FM script step to open, from a FM field, a Finder folder containing images or pdf, which a user would drop or open in Preview to view all in a single Preview window.  

 

I would like to automate this process and open the contents of a Finder Folder in Preview by AppleScript or similar, without user interaction.

 

Is it possible? Unfortunately, I don't know AppleScript.

 

Thanks for any help.

 

 

Solved by truelifeajf

Go to solution
  • Solution

Use the "Execute AppleScript" script step with:

 

tell application "Finder"
  open (every file of folder "path:to:folder" whose name extension is "jpg")
end tell

 

replacing path:to:folder with your path (eg; Macintosh HD:Users:My User:Documents:Folder of files)

 

You can remove "whose name extension is "jpg" if you want.

 

I haven't tested this.

  • Author

Thanks so much, it is very helpful. It feels I am almost there.

 

How can I replace "path:to:folder" with a path from calculated FM field?

  • Author

I think I have it now - I had problems defining a calc field.

 

 

"tell application "Finder"¶ 
 open (every file of folder " & """ & PhotoPath_to_Mac & "")" & ¶
 & "end tell"

 

PhotoPath_to_Mac is a path in AppleScript

 

Thank you truelifeajf again

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.