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!
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);
}
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);
}
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 😉
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.
Copy link to clipboard
Copied
Thanks Rob, a simple reset current is all I wanted 😉
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.
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!
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?
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
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.
Copy link to clipboard
Copied
var menuItem = app.menuActions.itemByID(91219)
if(menuItem.enabled){
menuItem.invoke();
};
Copy link to clipboard
Copied
thank you, I will try
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 )
Copy link to clipboard
Copied
Danke für die Info, aber das Hauptmenü mit Arbeitsbereich scheint es nicht zu geben.
Copy link to clipboard
Copied
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 )
Gruss,
Uwe Laubender
( Adobe Community Expert )
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 )
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.
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?