September 30, 201312 yr 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.
October 1, 201312 yr 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.
October 2, 201312 yr 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?
October 2, 201312 yr 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