chlowden Posted January 4, 2006 Posted January 4, 2006 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
Zero Tolerence Posted January 4, 2006 Posted January 4, 2006 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!
Fenton Posted January 4, 2006 Posted January 4, 2006 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 *)
chlowden Posted January 5, 2006 Author Posted January 5, 2006 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now