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
put image "image" into URL ("binfile:"&specialFolderPath("documents")&"/pic.jpg")
This was answered by runrevneil, I reposted here to help anyone who runs into the same bug and finds this thread.
--sefro
Forgive me, but this workaround is not at all useful if the intention is to allow an image to be viewed/used outside of the LC app. It is useful if one simply needs to save an image for later use by the same LC app, but is not a workaround for mobileExportImageToAlbum for those that wish to expose the 'saved' image to the user for use outside of the app. Am I missing something?