I have one field "sampleimage" with name of image example House. This image path is /Volumes/HDD/Pictures/House.jpg
Now i create a button and what script is to find and insert automatically this 'House.jpg' into the standalone application using field with name of image.
So
Code: Select all
put the text of field "sampleimage" into tText
....
....
Code: Select all
put the text of field "sampleimage" into tText
put "/Volumes/HDD/Pictures/" into tPath
put ".jpg" into tType
create image "pic9" IN GROUP "red"
set the filename of img "pic9" to tPath & tText & tType
set the resizeQuality image "pic9" to "best"
set the rect image "pic9" to "14,433,124,580"