tirtza Posted March 25, 2003 Posted March 25, 2003 in my filemaker database i have an images stored in containers. i have an applescript that tries to extract the path from the image- set image_path_var to get data of cell "SKETCH" of current record The image is an eps file. The problem is that on every record i get an error when trying to use this image_path_var which says something like can't make data eps then a whole bunch of garbage. this script works beautifullly on a different database. what could be the problem?: help!
jfmcel Posted March 25, 2003 Posted March 25, 2003 If the image data is stored within filemaker, you might be getting an error when you try to "use" the data as a text string. Insert error capture in your script like... Try set image_path_var to (get data of cell "SKETCH" of current record) as string on error Display dialog "image is not stored as reference" return end try
tirtza Posted March 26, 2003 Author Posted March 26, 2003 All the images are stored as a reference. I previously ran a filemaker script which copied the image and on error set a field to say error. The current found set are all the records which do not say error.
tirtza Posted March 26, 2003 Author Posted March 26, 2003 sorry - ignore the last post. all that does is flag missing images. However all the images are definetely stored as references.
jfmcel Posted March 26, 2003 Posted March 26, 2003 I usually include a FM script step to check if the container is empty before running the applescript.
Recommended Posts
This topic is 7911 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