AnsweredAssumed Answered

Trouble exporting images from a container field

Question asked by sotura on Jun 13, 2016
Latest reply on Jun 14, 2016 by StephenWonfor

I'm working on a Script to export images from a container all at once and i got most of my framework from the

"Exporting the field contents of a container field" page Exporting the field contents of a container field | FileMaker

 

The problem I'm running into is that the script appears to be running but i cannot find the files that its exporting because it doesn't actually appear to be saving the files to any specific location. I have checked the desktop and documents folders and I have found nothing. Here is the script that I am running with the following values

Table: Inventory

Inventory::EquipmentRecordID == description

Inventory::Image | Container Main

 

 

Go to Record/Request/Page [First]

Loop

     Set Variable [$filePath; Value:

Choose ( Abs ( Get ( SystemPlatform ) ) -1 ;

 

 

     /*MAC OS X*/

     Get ( DesktopPath ) & Inventory::EquipmentRecordID & ".jpg"

;

     /*WINDOWS*/

     "filewin:"& Get ( DocumentsPath ) & Inventory::EquipmentRecordID & ".jpg"

)

]

   Export Field Contents [Inventory::Image | Container Main; " $filepath”] 

       Go to Record/Request/Page [Next; Exit after last]

End Loop

 

I don't understand what the $filepath is doing I believe its a placeholder for my actual filepath but whenever I attempt to enter in a filepath location like filewin:/C:/users/... etc. it returns errors that it contains unusable symbols

Outcomes