Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4069 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

 

 

Posted

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.

Posted

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?

Posted

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

This topic is 4069 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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