Newbies petefeth Posted August 28, 2006 Newbies Posted August 28, 2006 I've created an "Insert Picture" script to go into a container field with the following script steps: "New Record/Request Go to Field [Flexi Jobs::Job Sheet} Insert Picture[Reference]" When I perform this script, a dialogue window appears displaying "My Documents" allowing me to choose the picture I want to insert. However, the pictures I need, reside in 2 more folder levels within "My Documents". I want to create a folder path to a folder(s) within "My Documents" folder where the pictures I need are kept. Can anyone please tell me how to create this folder path? I've tried using the Open URL script step but I'm obviously doing something wrong. So what I need is a folder path script that navigates to a particular folder and not a particular file, I need to choose a different file each time. Can anyone help Please? Thank you for your help.
Genx Posted August 29, 2006 Posted August 29, 2006 You arent making yourself clear. Do you want to open a folder, do you want to open a default folder pop up when selecting your file, do you want to store a particular pattern image name? Do you want to know the general file path syntax... do you want to store a folder? You really have to make yourself clear.
Newbies petefeth Posted August 29, 2006 Author Newbies Posted August 29, 2006 Thanks for the reply and please excuse my inexperience. I think I need to know how to create a default folder pop up. I need to have the same folder to open in the "insert picture" dialogue window every time I run the script so I can manually choose which picture I want to insert into the container field every time I create a new record. I hope I have explained myself more clearly. Thank you for your patience.
Genx Posted August 29, 2006 Posted August 29, 2006 I think i understand what your after... part of it is doable. Unfortunatley... to the best of my knowledge, you cannot open a specified "default" folder when selecting a file. FileMaker just remembers the last folder opened and opens that. As per how to actually make anything popup so that you can actually choose a file, go into script maker, choose your insert picture[] step and uncheck the boxes that have the words "specify file" etc as these remove user interaction and assume you want the script to perform everything by itself. As per the enexperience... don't worry about it, i wasn't trying to be harsh its just that unless the actual situation is known... its hard for people to help.
Newbies petefeth Posted August 29, 2006 Author Newbies Posted August 29, 2006 Thanks for your help anyway, I tried un checking the specify file box in "insert picture" previously but, as you said, Filemaker only remembers the last opened folder. I was searching help and found a topic that might help me, I searched for "creating file paths" and at the very bottom of the topic there was a reference to "Specify a directory (Not a file). I think that's what I need but I have no Idea on how to implement it. Perhaps you might have any ideas on that.I suppose I'll just keep tinkering until the penny drops so to speak! I realise you weren't being harsh, I taught Photoshop in another life and had the same communication problems with my students back then. Cheers ....Peter
Fenton Posted August 29, 2006 Posted August 29, 2006 Cheap trick: Export a little file to the folder you want. Use a container global to hold a small file/picture for this use. Insert the file (or picture) you exported. This will set the default path to that folder. Apparently Insert File and Insert Picture share the same default path (it seems to me anyway). Of course, now you've got an extra file/picture in the folder. You can use OS commands to delete it, if you really need to. To make this automatic you'd need to know and use the FileMaker syntax path to the folder/file in the Set Variable script step.
HPage Posted September 9, 2006 Posted September 9, 2006 Yeah thanks for the trick, I want to do exactly the same thing. Cant believe there is no easier way though...
Recommended Posts
This topic is 6652 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