1 Reply Latest reply on May 29, 2012 8:30 AM by philmodjunk

    Drag and Drop and capture

    Roger_1

      Title

      Drag and Drop and capture

      Post

      I am looking for a way to drag and drop a image/file into a container field and at the same time capture the file path to the image/file.

       

      I have the container field and the drag and drop is working but I can not figure out how to capture and store the file path at the same time.

       

      As an alternative I could run a script after the fact if I could find a way to get the path of the image in the container field.

       

      Any suggestions?

      Roger

      FMP 12 on a iMac

        • 1. Re: Drag and Drop and capture
          philmodjunk

          As far as I know, this can't be done from drag and drop which copies the file and stores the copy in the container field.

          It's possible for a script to use export field contents to export a file from the field after the drag and drop to a specified folder/file name and then the script can re-insert the file from this specified location with "store a reference" specified in order to put a file path into the container field.

          It's also possible to open up an Open File dialog and use it to select the file and have it be stored as a reference.