i setup two buttons. the first did this
Code: Select all
global myvar
on mouseUp
answer file "Get your image"
set the filename of img "try" to it
put "image! "& the imageData of img "try" into myvar
end mouseUp
Code: Select all
global myvar
on mouseUp
if the first word of myvar is "image!" then
delete the first word of myvar
set the imageData of img "returnit" to myvar
end if
end mouseUp