Can Someone help I have a Source Folder With a File and I want to remove the extension (.gif) from the filename to get the string value of just the file. Then I want to go to find mode in my filemaker db called BUILD that has a layout in it called INVEN. Next would be to go to field state and enter the filename to Find. Then go to field pic and import the filepath.
set SourceFolder to (choose folder with prompt)
tell application "Finder" to set filelist to get the name of every file of folder SourceFolder as list
repeat with thisFileName in Filelist
--path of file
set thisPath to (SourceFolder as string) & ":" & thisFileName as string
tell application "FileMaker Pro"
tell BUILD
Layout INVEN
set cell "state" of request 1 to "thisFileName"
find layout INVEN
set cell "Pic" to Import thisPath
end tell
end tell