I planned on using the clipboard as the means of transferring to image data from my livecode application to Pages but I have encountered problems when attempting to do the paste. The file path is correct and the correct image is being processed but when I try to paste it into pages this error is posted: "The media can't be used because you don'y have access privileges, or because it has no content or is corrupt".
Well I do have access and I am able to post the image back into livecode so it seems that Pages does not like the format. Any ideas?
Code: Select all
on mouseUp
put fld"folder" & "/" & "testimage.jpg" into tTarget
import paint from file tTarget //imports the image into the stack/card
set the clipboarddata["image"] to the last image
--copy the last image
delete the last image
end mouseUp