signal Posted June 7, 2002 Share 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 Link to comment Share on other sites More sharing options...
signal Posted June 7, 2002 Author Share 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). Link to comment Share on other sites More sharing options...
paul_apted Posted August 13, 2002 Share Posted August 13, 2002 where did you find that file ?? Paul Apted Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7951 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