Hi all, I am new to this list, developping a FileMaker solution (Digital Assets Management).
This is my script:
set this_folder to (choose folder with prompt "Pick the folder containing the images to process:") as string tell application "System Events" set these_files to every file of folder this_folder whose name does not start with "." and (file type is "TIFF" or file type is "JPEG" or name extension is "tiff" or name extension is "tif" or name extension is "jpeg" or name extension is "jpg") end tell
repeat with i from 1 to the count of these_files set this_file to (item i of these_files as alias)
tell application "FileMaker Pro Advanced" tell database "PhotoKey" tell current record do script "Create New Image Record" set the cellValue of cell "PathtoInternalDisplay" to this_file end tell do script "Set New Image Record" end tell end tell end repeat
tell application "FileMaker Pro Advanced" activate end tell
I use it to import images, but it dont work at this line:
set cellValue of cell "PathtoInternalDisplay" of current record of database "PhotoKey" to alias "Alchemy:Users:leoprincipe:Pictures:PhotoKeyDatabase:images:archive02:untitled folder:A65_1495_043.jpg" "FileMaker Pro Advanced got an error: Object or property is the wrong type."
I spent several hours to fix it, verifying the cell name the syntax, documentation... no way. It seems that is a very common error, I have other scripts with a similar line that works.
Please, I appreciate any tips, thanks
Leo
PhotoKey Solution Keywording, Tracking and Selling RM Photographs Community Forum
|