• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Filemaker Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filemaker Script


  • Subject: Filemaker Script
  • From: Leonide Principe <email@hidden>
  • Date: Fri, 23 Jan 2009 15:47:04 -0430

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
http://www.leonideprincipe.com/photokey/
Community Forum
http://www.leonideprincipe.com/forum/









 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Filemaker Script
      • From: Bruce Robertson <email@hidden>
    • Re: Filemaker Script
      • From: "Roger Howard" <email@hidden>
  • Prev by Date: FileMaker & Address Book image
  • Next by Date: Re: Filemaker Import
  • Previous by thread: Re: FileMaker & Address Book image
  • Next by thread: Re: Filemaker Script
  • Index(es):
    • Date
    • Thread