Anybody got any idea on this issue?
I uses this code below to select a image
Code: Select all
on mouseup
put "*.jpg;*.gif;*.png" into types
if there is not an image "photo" then
create image "photo"
end if
answer file "Select file" with type types
if it is empty then exit mouseUp
put it into fn
if there is a file fn then
set the fileName of image "photo" to fn
end mouseup