BonB Posted September 30, 2013 Posted September 30, 2013 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.
truelifeajf Posted October 1, 2013 Posted October 1, 2013 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.
BonB Posted October 2, 2013 Author Posted October 2, 2013 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?
BonB Posted October 2, 2013 Author Posted October 2, 2013 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
Recommended Posts
This topic is 4462 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 accountSign in
Already have an account? Sign in here.
Sign In Now