Jump to content

importing image in FM Pro


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

Recommended Posts

  • Newbies

Hello,

I'm a beginer in development in FM Pro and applescript.

I'm trying to make an applescript that import (every night) a lot of pictures into a database and also some information (modification date, size,...).

I have made it but i have a problem with pictures. I try to import and embedded pictures into my database and not import references. Because, when i use the web sharing of FM PRO 7 (with safari or IE) i don't see the pictures.

1. If i use the web sharing with FM PRO server with the advanced package should i see the pictures that are in references into my database ?

2. If you have a part of script that import picture (not references) into a container ...

Thank a lot

PS: Sorry for my english but (i'm french)

Mac Os X.3

FM Pro 7

Link to comment
Share on other sites

You have to use "GraphicsImporter" osax.

Then, you can use this script :

set theimagepath to choose file

set theimage to giconvert theimagepath

tell application "FileMaker Pro"

set cell "image" of current record to theimage

end tell

And the picture has be imported (not the reference only) into the container field named "image".

Nota: I'm french to. If you prefere to use french to talking about FileMaker, look here : fmsource .

Link to comment
Share on other sites

This topic is 6999 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.