Newbies ewillia Posted October 6, 2009 Newbies Posted October 6, 2009 (edited) Hi, I'm trying to import a folder with several thousand images, and assign the images to specific records already in my DB. I have the files all as "ID#.tif", where the ID# is what I want to match by in filemaker. Unfortunately, since there is the ".tif" at the end, I cannot "match records by name" because FM doesn't separate the extension from the filename. Is a good work-around for this? There are too many images to load them in by hand. I tried removing the ".tif" from the filename, but then FM no longer recognizes the filetype as readable (no surprise). I'm looking at the search results for people with similar problems—I would like to store my images in the container rather than as references. (They're rather small—40kb chemical structures.) Alternately, I could just append ".tif" to the end of all my ID#s (they're not the index IDs, so it's OK) and then remove the ".tif" after import, but I cannot figure out a way to do that either. Thanks! Edited October 6, 2009 by Guest
Newbies ewillia Posted October 6, 2009 Author Newbies Posted October 6, 2009 Ok well, I managed to figure it out in a perhaps stupid way, but I couldn't find any other help for doing what I wanted: I exported the data to Excel, copied the "ID#" column and added a "ID#.tif" column. I then re-imported those two columns in, added a variable for "IDTif", put the "ID#.tif" data in that vector, then imported the images matching the filename to "ID#.tif". It's completely inelegant, and I hope there's a better way to do this. (I'm new to FM; I've been using SQL/python/php for years. Kind of ironic how difficult I find this simple task to be...)
Fenton Posted October 6, 2009 Posted October 6, 2009 Actually, it is pretty easy. Create a calculation field, with Text result. your id field & ".tif"
Newbies ewillia Posted October 6, 2009 Author Newbies Posted October 6, 2009 Ah... thanks, much better than re-importing. Is there a way to do it straight off from the import, though? (I.e. can I change the way 'match' works, or does it have to be perfect correspondence?)
Recommended Posts
This topic is 5526 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