Thursday, December 14, 2017

#1 2017-11-14 10:00:21 am

Corbotron
Member
Registered: 2017-07-05
Posts: 16

Can't save InDesign in High Sierra

Hi all,

I recently updated to High Sierra (10.13.1) and Adobe InDesign CC 2018 and it seems to has caused some big issues. I have a number of complicated scripts which are essential to my workflow and have just completely stopped working. Through a process of elimination I've narrowed it down to the point at which I try and save my InDesign document. Previously, this worked fine:

Applescript:

tell application "Adobe InDesign CC 2018"
   tell active document
       save
       close
   end tell
end tell

or this

Applescript:

tell application "Adobe InDesign CC 2018"
   tell active document
       close saving yes
   end tell
end tell

Right now though, those scripts don't work. The first does nothing. The second closes the document, but doesn't save it. In both cases Script Editor gives me this error:

error "Adobe InDesign CC 2018 got an error: User cancelled this action." number -128

Can anyone help me please? I'm losing my mind here!

Ta.

Offline

 

#2 2017-11-14 04:14:34 pm

Budgie
Member
From:: New Zealand
Registered: 2005-02-22
Posts: 643

Re: Can't save InDesign in High Sierra

Hi
take this for a spin, works fine here

tested on 10.13.1

Applescript:

tell application "Adobe InDesign CC 2018"
   activate
   if modified of active document is true then
       close document 1 saving yes
   end if
end tell


Budgie

"Our greatest glory is not in never falling, but in rising every time we fall"    - Batman

Offline

 

#3 2017-11-15 05:45:45 am

Corbotron
Member
Registered: 2017-07-05
Posts: 16

Re: Can't save InDesign in High Sierra

Thanks for the reply Budgie. That works fine. When I tried to use the other snippets I posted though, they worked too.

Anyway, I've got to the bottom of it now. It turns out the issue wasn't the syntax but the InDesign upgrade. My app used templated .indd files which it pulled from its resources folder. These were created with ID2017. For some reason, ID2018 couldn't modify and save those files with either the code you gave me or the code I posted. I went into the folder, opened those templates with ID2018 and resaved them and it fixed the problem.

It's always something simple! Thanks again.

Offline

 

#4 2017-11-15 06:35:55 am

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5199

Re: Can't save InDesign in High Sierra

Corbotron wrote:

These were created with ID2017. For some reason, ID2018 couldn't modify and save those files with either the code you gave me or the code I posted.



This is an issue you have to keep in mind. Whenever InDesign is updated, documents created with previous versions have to be specifically saved.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)