Importing an image via a button into a different stack?
Posted: Wed Jan 17, 2024 12:44 pm
Imagine, if you will, a palettised stack containing a button with this script:
Now what ACTUALLY happens with this script is that my imported image ends up in the stack containing my button, and NOT my target stack.
Code: Select all
on mouseUp
answer file "Select image:"
if the result is not cancel then
set the lockscreen to true
put the short name of the topStack into STAKK
import paint from file it to stack STAKK
set the name of the last control to "XYZ"
end if
end mouseUp