Code: Select all
on mouseUp
if the environment is "development" then
set the defaultfolder to specialfolderpath("desktop")
export snapshot from img id 1039 to file "test.jpg" as jpeg
end if
if the environment is "mobile" then
put the long id of image "coded" into tImageID
mobileExportImageToAlbum tImageID, "test_file"
if the result is empty then
exit mouseup
else
answer the result
end if
end if
end mouseUp
Thanks,
Sefro