On 2 Mar 2017, at 5:56 am, Stockly, Ed <email@hidden> wrote:
Use the built-in command:
set theFile to choose file with prompt "Choose .epub file" set dest to (path to desktop as text) & "Epub contents" tell application id "com.adobe.InDesign" -- Adobe InDesign CS6.app unpackage UCF UCF file theFile destination folder dest end tell
There's nothing to stop you doing what you want -- the information you need is accessible. And I suspect InDesign's resolution setting is enforced with some flexibility in the name of quality, so you might actually save a few bytes your way.
It's just that you're not in the QuarkXPress of last century any more, and there are other settings related to images and image import that you could easily end up missing. Getting the resolution, rotation, scaling and bounds and doing the sums, which is about all you had to do in XPress, is the simple part. You have to cover frame fitting options and image IO preferences, among other things.
And I suspect the reason that no-one is saying "Here, use this code", is because the built-in options cover most requirements with less effort and risk.
|