Skip to main content
Participating Frequently
September 24, 2014
Question

Applescript server 10 2014

  • September 24, 2014
  • 2 replies
  • 1313 views

Hi There

Have anyone tried to use applescript with a CC 2014 (10) server  ???? almost nothing works for me...

I can create a document and save it, but can't open the same document....

Just a simple script...

tell application "InDesignserver"

set MyDok to make new document

save MyDok to "Mac HD:file.indd"

end tell

then...

tell application "InDesignserver"

Open "Mac Hd:file.indd"

end tell

i get : The document "file.indd" could not be opened. InDesignserver cannot open files of this type

very strange because the file was created by the same server ???

This topic has been closed for replies.

2 replies

Lively_Palette15D5
Participating Frequently
October 17, 2015

It's late here in Italy as well; just tried and launched InDesignServer from the terminal. Then opened the script editor and created a script like yours and it worked. The document was created BTW I wasn't able to open it with another script. I received your same message.

Why didn't you say goodbye to "applescript" and switch to "extendscript"?

Best,

Luca

Participating Frequently
October 18, 2015

Hi Luca

I have made an application fore media/newspaper produktion, and from there i can execute applescript and VB script, so instead of developing plugin i have be using this instead, it has worked even on the server until version 6, and it works fine on the InDesign Client, i have one customer running on a client as a server (they are paying fore a server that don't work and a client) - i don't no what Adobe did, but something changed when CC came out, as you can see i have tried to get this solved fore a year, i have tried to contact adobe serveral times, and when i tell them to test the sample script, i don't hear from them.....

But thanks for your help, now i no it's not because i made something wrong during installation.

Today i triede to change the language (US English) on my mac and the reinstall InDesign server..... same result.

I have a meeting tomorrow where a guy will look at the problem, i will post the result here.....

Best

Michael

Participating Frequently
October 18, 2015

Hi Luca

Does Extendscript work on your server, i get the same error with extendscript.

Best

Michael

Participating Frequently
February 22, 2015

Soory to say... but i have the same problem.... and still not solved.

If anyone no how to solve this please tell.

Participating Frequently
October 8, 2015

Hi

Does anyone have a solution, i still have the problem even with CC 2015.....

Please help me.....:0)

Lively_Palette15D5
Participating Frequently
October 17, 2015

Hello Sandstroem,

just a quick question: it seems to me that you are not closing the document at the end of the first script. I do not remember Applescript anymore, in javascript this would be:

var myDoc = app.documents.add();

var myFile = new File(strFilePath); //strFilePath is complete path i.e. "/Users/myname/Desktop/test.indd"

myDoc.save(myFile);

myDoc.close();

then, to open:

var myNewDoc = app.open(File(strDocPath));

Best,

Luca