Insert Picture Script Step
Results 1 to 2 of 2
  1. #1
    Limited Access Member
    Location:
    Grimsby, England
    Join Date
    Feb 2012
    Posts
    1
    FM Version
    11 Adv
    Skill Level
    Intermediate
    OS
    Windows
    Rep Power
    0

    Insert Picture Script Step

    FileMaker support and FileMaker services for your business by the FileMaker developers at Excelisys. We are FileMaker Pros for average Joe's!
    Hi

    I have a huge amount of photographs that I would like to be able to search on by keyword.

    I have set up a basic db with the following fields:

    Thumbnail : Container; the thumbnail image imported from the specified directory
    Path ; text ; the pathname to the file
    FileName ; text ; The name of the actual image
    Photo ; container ; the actual photo itself
    Keywords ; text ; keywords associated with that photo

    The idea is that I want to import all pics from 1 directory and all of its subdirectories. No problem here, works fine importing the thumbnail, file path and file name.

    I then want to search on the keywords to narrow down the viewed thumbnails. So maybe I end up with a found set of 15 records (pics)

    Then, if I click on the thumbnail, I would like to 'Insert Picture' to the Photo field. The idea being to keep the size of the db to a minimum by viewing the thumbnail all of the time and only viewing the actual photo if it is selected.

    The imported file path looks like: file://G:/Data/Pics/filename.ext

    I thought that the file:// referred to a network drive though??

    When I try to use Insert Picture in a script though, FM does not find the photo file. I have changed the format of the path for the Insert Picture script step to be imagewin://G:/Data/Pics/filename.ext using a Variable but still won't work. Also tried using imagewin:/G:/.............. No good though.

    I think that I have to use the 'full path' option in the Insert Picture step because I am using several drives to source the thumbnails from.

    Can anyone put me right please on the correct usage of the Insert Picture step in a script?

    TIA
    ChrisD

  2. #2
    Moderator - Editor
    Location:
    New York (Manhattan) USA
    Join Date
    Aug 2006
    Posts
    9,978
    FM Version
    10, 9, 8.5, 8, 7, 6, 5.5., 5, 4.1, 4, 3, 2.1, 1, II; & Nashoba 4, Plus, & the Original. But not 11
    Skill Level
    Developer
    OS
    Windows & Mac
    Rep Power
    10

    Re: Insert Picture Script Step

    I was following you fine until here:

    Then, if I click on the thumbnail, I would like to 'Insert Picture' to the Photo field. The idea being to keep the size of the db to a minimum by viewing the thumbnail all of the time and only viewing the actual photo if it is selected.

    a) Why would you want to go to Insert Picture to the Photo field? It currently already has a picture inserted into it!!! You could insert the picture not as a reference replacing the reference that is currently stored therein, but that sure as hell will not "keep the size of the db to a minimum" because then you'd be storing the picture and not just a filepath reference to it, in FileMaker.

    Can you please explain what you're trying to do / expecting to happen / think you need to do here, where you are attempting to insert a picture where you've already imported it as a reference?


    b)

    I thought that the file:// referred to a network drive though??
    Nope. A file URL is completely valid for local files, network files, anywhere your operating system can see a file.


    c)

    I have changed the format of the path for the Insert Picture script step to be imagewin://G:/Data/Pics/filename.ext using a Variable but still won't work.
    Use Set Field, not Insert Picture.

    Set Field [YourTable::ContainerField; "imagewin://G:/Data/Pics/" & YourTable::File Name]

    Your syntax for the file path looks fine though.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads - The answer to your question may be in one of these posts!

  1. Insert Picture Script Help
    By Hayezy in forum FileMaker Pro 9
    Replies: 20
    Last Post: 05-14-2011, 02:33 AM
  2. Insert Picture
    By grandhawk in forum FileMaker Pro 10 Advanced
    Replies: 3
    Last Post: 12-06-2009, 04:09 PM
  3. Insert Picture in IWP
    By plainsimple in forum FileMaker Pro 9
    Replies: 1
    Last Post: 03-17-2008, 02:15 PM
  4. Insert picture through IWP?
    By nobody in forum FM IWP - Web Companion and Web Publishing
    Replies: 4
    Last Post: 01-18-2007, 11:08 PM
  5. Insert Picture within a script automatically
    By The Digital Man in forum ScriptMaker and Scripting
    Replies: 6
    Last Post: 08-21-2003, 03:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •