We are developing an application for the Mac App Store using Qt 5.2.0.Framework on Mac OS X 10.9.
Here is a simple AppleScript which convert a .PNG image to .jpeg image.
tell application "Image Events"
lanuch
set theImageRef to POSIX file ":private:var:root:Desktop:1.png"
tell theImageRef
save in ":private:var:root:Desktop:save.jpeg"
close
end tell
end tell
This AppleScript works in a non-sandboxed application. It fails in a sandboxed application.
My question is: How do you use an AppleScript in a sandboxed application? Or is there an alternative to this?