• 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
Re: Filemaker Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filemaker Script


  • Subject: Re: Filemaker Script
  • From: Bruce Robertson <email@hidden>
  • Date: Sun, 25 Jan 2009 10:46:16 -0800

Why use applescript for this?

FileMaker has a native import image folder routine, and fully scriptable
selection of source folders.

You could use the first line of your applescript to get the path, but from
there on FileMaker can do the job.

> 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


 _______________________________________________
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

References: 
 >Filemaker Script (From: Leonide Principe <email@hidden>)

  • Prev by Date: Re: How to get Pattern Count of variable
  • Next by Date: Flattening Nested Lists
  • Previous by thread: Re: Filemaker Script
  • Next by thread: Re: Filemaker Script
  • Index(es):
    • Date
    • Thread