3 Replies Latest reply on Feb 11, 2013 12:26 PM by MLL

    Container field not saving to external folder FMPA12

    MLL

      Title

      Container field not saving to external folder FMPA12

      Post

           Hi,

            

           I have a solution that inports a wav file into a container field. 

           The field is set up to save to an external folder. 

           When a file is imported directly into the container from a layout (right click > Import ) it goes to the external folder. 

           When using the script step import video/music (folder ) make new record with each file (loop)

           The script imports the files from a folder on the desktop that is supposed to only temprarily hold these files the script deletes the files after import.

           I can see the files in the container but they are not saved to the external folder. When the files are deleted from the  import folder they go missing from the container.

           They are not stored in the external folder.

            

           Any Ideas?

            

        • 1. Re: Container field not saving to external folder FMPA12
          philmodjunk

               Is "store a reference" specified?

               If so, try it without that option selected.

          • 2. Re: Container field not saving to external folder FMPA12
            MLL

                 No, "store as a reference"  is not checked. 

                 The file(s) will save in the external folder when dircetly imported into the container, just not with the import records script step.

                 Here is the script.

                  Set Variable [ $DLpath; Value:Get ( DesktopPath )&"/Dloaded Items" ]

            Perform AppleScript [ Native AppleScript: tell application "Finder"

            set Filename to "msg"

            set targfolder to (path to downloads folder)

            set destfolder to (path to desktop as text) & "msgcopy"

            set theFiles to every file in targfolder

            set i to 1

            repeat the count of theFiles times

            set theItem to item i of theFiles as string

            if (theItem contains "msg") then

            move theItem to destfolder

            end if

            set i to i + 1

            end repeat

            end tell ]

            Set Variable [ $Msgpath; Value:Get ( DesktopPath )&"/msgcopy/" ]

            Import Records [ Folder Name: $msgpath; Include all enclosed folders; File Type: Picture and movie files; Target: “Phone log”;

            Method: Add; Character Set: “Mac Roman”; Field Mapping: Source field 1 import to Phone log::Msg Container ]

            [ No dialog; Data contains column names ]

            Perform AppleScript [ Native AppleScript: tell application "Finder"

            move every file in folder ((path to desktop as text) & "msgcopy") to trash

            end tell ]

                  

            • 3. Re: Container field not saving to external folder FMPA12
              MLL

                   Well, 

                   Does anybody have an Idea?

                   This is very strange behavior.