January 13, 201015 yr 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.
January 13, 201015 yr 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.
January 13, 201015 yr Author 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.
January 14, 201015 yr 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.
January 14, 201015 yr 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 []
January 14, 201015 yr Author 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.
Create an account or sign in to comment