Jump to content

Importing photographs into FM from a folder


This topic is 8302 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hello All

I'm a photographer who has been working with FM for about 5 years. I have numerous DB's where I have imported pictures though a loop in a FM script by manually specifying the file to import each time in the dialogue box. I have never used apple scripting and am wondering whether it is possible to write a script that will automatically go to the next file in a folder each time the FM script is calling for an import. Thanks in advance.

Jim

Link to comment
Share on other sites

  • Newbies

Jim,

You may set up a loop in your filemaker table

and for every record call this script to check

your Photo folder and import the file reference.

Use the "Perform Applecsript" script step in your loop using

something like;

tell application "FileMaker Pro"

activate

set thePhotoPath "YourHardDrive:YourPhotoFolder"

tell database "Photos.fp5"

set PhotoName to cell "FM_PhotoName" of current record

set FileRef to thePhotoPath & ":" & PhotoName as string

set cell "FM_Photo" of current record to reference to file (FileRef)

end tell

end tell

Good Luck!

Dave

Link to comment
Share on other sites

This topic is 8302 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.