June 7, 200223 yr Why doesn't this work? I get this Execution Error: Can't make <<data Pict>> into a string I found this script on the filemaker site. It's a little old: tell application "FileMaker Pro" -- count the found set of records in the (current) database and -- put that number into NumOfRecords. set NumOfRecords to count record of layout 0 of database 1 -- Loop through all the found set repeat with i from 1 to NumOfRecords -- Get the contents of "Picture" in a certain record of the -- current database set PictureReference to cell "Picture" of record i of layout 0 of database 1 -- Put the contents into "FileName" as text set cell "FileName" of record i of layout 0 of database 1 to PictureReference as text --------------------------- -- THE ERROR SEEMS TO BE HERE "PIctureReference as text" doesn't like the "as text" -------------------------- -- Stop when you run out of records end repeat end tell
June 7, 200223 yr Author Never mind. It works if the file is stored as a reference. Something that the tech note made very clear to all but the stupidest of readers (me).
Create an account or sign in to comment