signal Posted June 7, 2002 Posted June 7, 2002 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
signal Posted June 7, 2002 Author Posted June 7, 2002 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).
Recommended Posts
This topic is 8136 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