Skip to main content
Inspiring
May 22, 2023
Answered

Indesign 2023 - Javascript reference for hiding the home screen

  • May 22, 2023
  • 1 reply
  • 750 views

 

Hi all,

 

I'm using javascript within an applescript app to help setup preferences for Indesign 2023.  I want to disable the Home Screen but can't seem to find the javascript reference anywhere? I think it used to be something as follows, but this no longer works...

 

app.generalPreferences.showWhatsNewOnStartup = false

 

Any help would be much appreciated! 🙂

 

Cheers,


Sam

This topic has been closed for replies.
Correct answer SpaghettiSam

Hello @SpaghettiSam,

Take a look here...

https://www.indesignjs.de/extendscriptAPI/indesign-latest/index.html#GeneralPreference.html

Regards,

Mike


@Mike Bro You legend, I managed to find what I was looking for from that website, which I know is going to help me a lot going forward! A snippet of the final applescript (including the missing javascript reference) is written below:

 

tell application "Adobe InDesign 2023"
   tell active document
	
	do script "var myDoc = app.activeDocument;
app.generalPreferences.showStartWorkspace = false;" language javascript

   end tell
end tell

 

Cheers,

 

Sam

1 reply

Legend
May 22, 2023

Hello @SpaghettiSam.

I'm not sure if this is what you're looking for but here's a bit of applescript I use within my jsx code.

var as = 'tell application "System Events"\r';
    as += 'set ID_Process to name of application id "com.adobe.Indesign"\r';
    as += 'end tell\r';
    as += 'tell application "System Events" to tell process ID_Process to set visible to false\r';
app.doScript(as, ScriptLanguage.APPLESCRIPT_LANGUAGE, undefined, UndoModes.ENTIRE_SCRIPT);

Regards,

Mike

Inspiring
May 22, 2023

Thanks for the response Mike Bro! I can hide indesign no problem, my issue is to stop the home screen popping up on initial load, as this can impact the script and stop it from working... In my previous post, I'm trying to work out the target of the homescreen reference (ie. what I'll be replacing 'showWhatsNewOnStartup' with, as this is no longer supported). Cheers, Sam

Legend
May 22, 2023