Path name to original file
I'd like to know if there is a way of getting the original path name into a field. For example: I have a file on my desktop called Cars. In the folder I have Makes of cars such as Pontiac, Chevrolet, etc. When I import an image into filemaker I would also like to import the original folder name, C:/User/Desktop/Cars/Pontiac/Trans Am/1979.jpg. Is there a way to get this accomplished? Thanks for the help.
Set Variable [$Path ; value: "file: C:/User/Desktop/Cars/Pontiac/Trans Am/1979.jpg" ]
Then type $Path into the file dialog in your Insert Picture script step.
You can also write it this way:
Set Variable [$Path ; value: "file: " & Get ( DesktopPath ) & "Cars/" & YourTable::Make & "/" & YourTable::Model & "/" & YourTable::year & ".jpg" ]