Hmmm... I thought it could pull out the original file name... it doesn't need to be tho.
I am down to have anything. each record has a unique ID # and most also have model #s.
Again, what I need are the images exported w/ a unique filename and that name in text so I can link to it...
Remix: I'm afraid you're "barking up the wrong tree." You CAN'T get the name of the FILE from an embedded container, 'cause there is no file; that's the nature of embedding that way.
You'll have to get the name (for the file you're going to create I assume from another FileMaker field. In my example AppleScript "thePath" would be the entire file path for the new file; which would have the new unique name at the end, but the rest would be a common folder path.
You might want to try this first on a test file, with just a few records. And, as I told Lee, run the AppleScript from Script Editor, until you're sure it works. It takes me a few tries (at least) to get these things to work. It's crazy to try on a large file. It's going to be slow even when it works right. It will run much faster in an AppleScript step; but wait 'til you're sure it works first. Look carefully at your filepaths, that's the mostly likely error point, once you have the GI OSAX in place.