If the file is embedded in the container, the function GetAsText ( Images ) will return only the file name. For example: "image.jpg"
Note that if you use external storage, it will say "remote:image.jpg".
Thanks! It worked like a charm.
The method of getting the filename embedded in a container only works if the container does not use external storage. If you Have three different files named something like "Test.jpg" and place them in three different records Filemaker and the operating system need to change the name of the file since you cannot have the same names in a directory. The first will be named "Test.jpg" but the second and third will be renamed to "Test_1.jpg" and "Test_2.jpg". The only accurate way of finding the accurate name is to use GetLayoutObjectAttribute(containername;"content") and then parse the name from the result. The container name requires a named object. It is not the field name.
Ah! Good to know, thanks!
What didn't occur to me until just now is that if a user wants to export the container's contents to desktop, a simple way of doing it is to right-click on the container's contents then select Export Field Contents... in the contextual menu.