Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hello FM lovers,

I am looking for a way to see the contents of a OS X folder via a container box. Is this possible?

If possible, is it possible to open the files by clicking on them via FM ?

Thanks

Posted

Kind of and Kind of.

You could use the Trio File Plugin to list the contents of any folder, then, you could use a script to launch the file.

Alternatley, with applescript you might be able to list the files, and set a field in Filemaker, then launch the file with applescript also, but I'm not for sure!

Posted

A Container field is not someplace where you can see a list of anything. It is a place where you can Insert a file or files. So I kind of wonder what you're wanting to do. It is possible, on a Mac using AppleScript, or using a plug-in such as Troi File, to see the files in a chosen (or specified) folder. You can then either open them all, or choose from the list. Here is an AppleScript that can do various things. It is separated in sections, with some commented out, as you would either use one or the other of the sections.

set theFolder to (choose folder)

set fileNames to list folder theFolder without invisibles

tell application "Finder"

(*

-- to open the 1st file (not very useful)

set theFile to (theFolder as string) & item 1 of fileNames

open alias theFile

*)

(*

-- to open all files

repeat with aFile in fileNames

set theFile to (theFolder as string) & aFile

open alias theFile

end repeat

*)

-- to choose file(s)

choose from list fileNames with multiple selections allowed

set chosenList to result

if chosenList is not {} then

repeat with aFile in chosenList

set theFile to (theFolder as string) & aFile

open alias theFile

end repeat

end if

end tell

-- comment a single line, text in this case

(* comment multiple lines,

remove pairs to turn on a section,

add to disable *)

Posted

Gentlemen,

Thank you very much for your help. I am investigating the Trio avenue first ( as it is the easier option) but I will try to apply the the Fenton script.

Thank you again.

This topic is 6961 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.