Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

SCRIPTING: Startup script to Force reset (current named) Workspace at Startup

Community Expert ,
Dec 20, 2022 Dec 20, 2022

Copy link to clipboard

Copied

Many problems with more than one display and m1 Macs with sleep, wake restart etc. where InDesign 18.1 'forgets' the second display so I have to rest my workspace again to show all panel.

Is there a startup(!) script that can Reset (name of my workspac) Workspace at Startup of InDesign?

Reset, not 'load'!

(Using Dutch version!)

Thanks in advance!

TOPICS
Bug , Feature request , Scripting , UXP Scripting

Views

907
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 20, 2022 Dec 20, 2022

Hi Frans, I have not upgraded to 2023, but this works in 2021 from Applications⁩ ▸ ⁨Adobe InDesign 2021⁩ ▸ ⁨Scripts⁩ ▸ ⁨startup scripts⁩:

 

 

#targetengine "session"

app.eventListeners.add("afterActivate", setWorkspace);

function setWorkspace(e){
    var menuItem =  app.menuActions.itemByID(91219)
    if(menuItem.enabled){  
        menuItem.invoke();  
    };  
    app.removeEventListener("afterActivate", setWorkspace);
}

 

Votes

Translate
Community Expert ,
Dec 20, 2022 Dec 20, 2022

Copy link to clipboard

Copied

Hi Frans, I have not upgraded to 2023, but this works in 2021 from Applications⁩ ▸ ⁨Adobe InDesign 2021⁩ ▸ ⁨Scripts⁩ ▸ ⁨startup scripts⁩:

 

 

#targetengine "session"

app.eventListeners.add("afterActivate", setWorkspace);

function setWorkspace(e){
    var menuItem =  app.menuActions.itemByID(91219)
    if(menuItem.enabled){  
        menuItem.invoke();  
    };  
    app.removeEventListener("afterActivate", setWorkspace);
}

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2022 Dec 21, 2022

Copy link to clipboard

Copied

Hi Rob,

great thanks! Do I need to insert the name of the current workspace to be reset anywhere in the script? I don't believe so this way, but I'm no scripter 😉

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2022 Dec 21, 2022

Copy link to clipboard

Copied

No it’s the same as choosing the Reset (ws name) menu item. There is an app.applyWorkspace(“Name”) method if you wanted to switch workspaces.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2022 Dec 21, 2022

Copy link to clipboard

Copied

Thanks Rob, a simple reset current is all I wanted 😉

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 21, 2022 Dec 21, 2022

Copy link to clipboard

Copied

Frans, the bug I keep encountering is that it resets my custom workspace to "Essentials". I've taken my custom workspace and renamed it "essentials" and replaced in preferences where the other Essentials workspace is stored. This solved the issue for me.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2022 Dec 21, 2022

Copy link to clipboard

Copied

That is a completely different problem, I do not see that problem. Mine is that sometimes Adobe apps do not see the second display after sleep, then reset the workspaces to one display and remember that when restarted, so I have to reset my workspace. This script does that for ne, it works perfectly!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

I have the same problem, but I do not need the reset at startup, but I would like to trigger this manually. Because the bug of the moved panels in indesign is caused every time the mac wakes up. Or is it possible to trigger the script at 'awake' instead of 'startup'?

Still not understanding why Adobe does not resolve this bug with Indesign. They where able to resolve the same bug with Photoshop and Illustrator…, is Indesign not important, less users?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

Hi @waldemarker , you should be able to assign a key command to the Workspace:Reset menu item—look under the Keyboard Shortcuts>Window Menu

 

Screen Shot 18.png

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

Hi Rob, thank you, yes this how I supposed to to. But in german Version, there is no Workspace in keyboard shortcuts.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

Try assigning this a shortcut
var menuItem =  app.menuActions.itemByID(91219)
if(menuItem.enabled){  
    menuItem.invoke();  
};  

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

thank you, I will try

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 29, 2024 Sep 29, 2024

Copy link to clipboard

Copied

Hallo @waldemarker ,

im deutschen InDesign heißt das

Arbeitsbereich: Name des Arbeitsbereichs zurücksetzen

 

Gruss,
Uwe Laubender
( Adobe Community Expert )

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 02, 2024 Oct 02, 2024

Copy link to clipboard

Copied

Danke für die Info, aber das Hauptmenü mit Arbeitsbereich scheint es nicht zu geben.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 02, 2024 Oct 02, 2024

Copy link to clipboard

Copied

LATEST

Doch, doch, das gibt's. Von meinem deutschen InDesign 2024 Version 19.5.0.83:

 

Produktbereich: Fenster-Menü

Beispiel mit Arbeitsbereich: Typografie zurücksetzen:

( Der aktuelle Arbeitsbereich ist also Typografie )

 

Bildschirmfoto 2024-10-02 um 12.34.34.png

 

Gruss,
Uwe Laubender
( Adobe Community Expert )

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2023 Jan 10, 2023

Copy link to clipboard

Copied

Hi @davecourtemanche ,

I've seen that recently with InDesign version 18.1 on Windows and Macs as well.

Not with the Mac or the PC I am using as a lecturer (with no admin rights), but with nearly all the machines my students are working with. So I think the cause of this could be the rights management that is more restricting to my students. Or perhaps syncing the user folders throughout a network of machines all over the campus.

 

Now my course is over so I have no chance to do any tests…

 

And yes, Frans has a different issue.

Yours should be debated in a different thread.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

Hi, I have the same problem since a few versions back (also on my previous Intel Mac). Question: Does "startup script" mean that the script is run when I start InDesign, or is the script somehow also run automatically when the computer is woken up from sleep? Now I ALWAYS have to reset my workspace when I start working after a break, tedious.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

Hi @H Chinaski , The startup script listens for an InDesign activation and resets the workspace. I can’t replicate the problem here, so I can’t really test. Does the script reset happen if you click to the Finder then go back to InDesign?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines