Solved

Creating script to populated empty containers with images

Posted on 2006-11-28
5
246 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

734 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