1. I want to have a list box that is filled with a list of files in a folder (I can do this part I think)
2. When I double click on one of the file names have that file open in whatever program (worddoc in word, etc)
3. How can I include the folder with these files in a stand alone?
Thanks!
Files in folder with stand alone program?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 56
- Joined: Sat Jun 20, 2009 2:41 pm
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Contact:
When you fill in the field with the list of files, you could store the path to the folder as a custom property of the field, and then prepend it to the file name when it is clicked.
assume that this is in the script of the field:
then, when a file name is clicked
Best,
Mark Smith
assume that this is in the script of the field:
Code: Select all
on ShowFiles pFolder
set the directory to pFolder
put the files into me
set the currentFolder of me to pFolder
end ShowFiles
Code: Select all
on mouseUp
put line (word 2 of the clickLine) of me into tName
put the currentFolder of me & "/" & tName into tFile
-- launch tFile etc
end mouseUp
Best,
Mark Smith
-
- Posts: 56
- Joined: Sat Jun 20, 2009 2:41 pm