Solved

Creating script to populated empty containers with images

Posted on 2006-11-28
5
247 Views
Last Modified: 2010-07-27
If I had a field called IMAGEPATH, is there a way to create a script that will use the field as the actual image path to insert an image from my hard drive in an empty container in the same record?

What I am hoping to do is have the script check for empty containers throughout my database, and fill them with images on my hard drive using the imagepath field to guide it to the appropriate image for that container.
0
Comment
Question by:jarrodprice
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
lesouef earned 500 total points
ID: 18036717
the trick is to declare a variable $imagename = the field which contains the image path, and use this variable as the file reference for the insert file or picture command (you type the variable name in the window where you normally insert a real path for the file to import.)
to insert a file, use a filemaker path (must be specified as filemaker file references, not as the OS path, that is:
file:/C:/Documents and Settings/Utilisateur/Mes documents/ttt/smorsche.jpg for a file or
image:/C:/Documents and Settings/Utilisateur/Mes documents/ttt/smorsche.jpg for a picture
relative paths are also ok:
image:./ttt/smorsche.jpg

so if the paths you have are not formatted like this, you need to work the rigth syntax out of yr existing paths first. but this is normally a bit of subsitute steps when creating the variables; let me know if you need help for this too.
0
 

Author Comment

by:jarrodprice
ID: 18037045
I am confused.  If my image path was "C:/Documents and Settings/Utilisateur/Mes documents/ttt/smorsche.jpg", and that was the content of my imagename field, how would I right the script to start at the first record, and for each record with an empty container, insert an image in the container using the path from the imagename field for that record.  How should I write the variable in the script? what should the syntax be for the image path?  In the "insert image" command, how do I write the path?
0
 

Author Comment

by:jarrodprice
ID: 18037316
disregard...I got it.
0
 
LVL 28

Expert Comment

by:lesouef
ID: 18037354
if you say so... otherwise I am back behind my keyboard...
0
 

Author Comment

by:jarrodprice
ID: 18037422
No it is working perfectly.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question