AnsweredAssumed Answered

insert picture from alias works manually, not in script

Question asked by RowlandCarson on Aug 26, 2010
Latest reply on Aug 26, 2010 by philmodjunk


insert picture from alias works manually, not in script


Mac PowerBook G4, 1GHz, 1GB RAM, Mac OS 10.4.11, FMP Advanced 10.0v3.

I have a FMP file with (inter alia) a text field containing a filename and container field to contain a picture.

I can manually select the picture field, choose "Picture ..." from the "Insert" menu and then navigate to a folder containing aliases of selected files from a folder holding many more JPGs. Choosing an alias appropriate to the filename in the selected record gives the result that the picture appears in the container field.

However, when I try to script this operation to fill all the picture fields in the database file, I get a message "This file type could not be displayed as a picture. It will be inserted and displayed as a file." The container file shows a file icon and name after the script runs.

The script works as expected if the target file is an orginal rather than an alias.

I can't see any options I am missing in order to make the script operation behave like the manual one. Is it me or is this a bug/feature?