sandyinlet Posted January 13, 2010 Posted January 13, 2010 Our client wants a preliminary dialogue and a very simple "open" dialogue for inserting pictures. The programmable Insert Picture dialogue is too intimidating for his users. Is it possible to script a process that yields the same thing as the menu bar's "Insert Picture" function? Much appreciated.
Peter (duksis3) Posted January 13, 2010 Posted January 13, 2010 In response to yours: "Is it possible to script a process that yields the same thing as the menu bar's "Insert Picture" function?" try Script stem "Insert Picture" and leave all options blank (do not specify file). This will allow user to choose picture file to insert.
sandyinlet Posted January 13, 2010 Author Posted January 13, 2010 try Script stem "Insert Picture" and leave all options blank (do not specify file). This will allow user to choose picture file to insert. Using FMP 10.0v3 with all options blank no dialogue appears. The debugger shows the function executing but nothing happens. I've attached a screenshot of my code. Appreciated.
Fenton Posted January 14, 2010 Posted January 14, 2010 If this is all on Macs, you could use AppleScript's choose file command, which brings up the usual "file picker" dialog. You'd then need to either set the container field directly, or coerce the path to a FileMaker syntax path, to use with an Insert Picture step; that paths are very similar.
Peter (duksis3) Posted January 14, 2010 Posted January 14, 2010 I cannot see picture but Script step "Insert Picture" works. Of course - before use Script "Go to field" (as you need to click in to field before inserting image) So: Go to field (PictureField) Insert Picture []
sandyinlet Posted January 14, 2010 Author Posted January 14, 2010 The Goto Field function nailed it. Meanwhile I named the object (the container field), then executed Goto Object and that still didn't work. Much thanks.
Recommended Posts
This topic is 5427 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