| User | Post |
|
6:45 am June 7, 2011
| Chuckie
| | Bainbridge Island, WA | |
| Member | posts 37 |
|
|
I am working in a Citrix environment in which the startup preferences for Shortcuts & Workspace are forgotten each time. They're there but don't load. Can a script be run to activate both?
|
|
|
7:38 am June 9, 2011
| Kasyan Servetsky
| | Kiev, Ukraine | |
| Member | posts 65 |
|
|
You can apply a workspace like so:
app.applyWorkspace("Advanced");
However, as far as I know, it's impossible to load shortcuts by script.
Kas
|
|
|
7:40 am June 9, 2011
| Chuckie
| | Bainbridge Island, WA | |
| Member | posts 37 |
|
|
Thanks, Kas, I'll try that.
|
|
|
10:28 am June 11, 2011
| Kasyan Servetsky
| | Kiev, Ukraine | |
| Member | posts 65 |
|
|
Oops! I'm sorry for the confusion. I still work mostly in CS3, but the applyShortcutSet method is available only in CS5. How could I miss it? It's just one line above the applyWorkspace which I mentioned in my previous post. Thank you for correcting me, John.
|
|
|
9:48 pm June 11, 2011
| Chuckie
| | Bainbridge Island, WA | |
| Member | posts 37 |
|
|
Hey guys, thanks. You are studs!!
Here is the script and it works great, for anyone whomever needs this. Pay attention to syntax, if you use this.
main();
funtion main()}
app.applyWorkspace("namehere");
app.applyShortcutSet("namehere");
}
17 thank you's, Chuck
|
|
|
10:39 am June 13, 2011
| Chuckie
| | Bainbridge Island, WA | |
| Member | posts 37 |
|
|
Postscript:
In CS3, the app.applyShortcutSet indeed fails. So I wanted to dampen my earlier excitement a wee bit. Still, a very good thing to know. Are there other "app.apply" scripts to reference for automation?
|
|
|
1:20 am June 17, 2011
| Kasyan Servetsky
| | Kiev, Ukraine | |
| Member | posts 65 |
|
|
There's one more method: applyMenuCustomization ("namehere"); which applies the specified menu customization set.
Actually, you can do by script almost everything you can do manually in InDesign. I recommend you to download an InDesign scripting reference by Jongware where you can find all information about the objects their properties and methods (commands).
|
|
|
6:59 am June 17, 2011
| Chuckie
| | Bainbridge Island, WA | |
| Member | posts 37 |
|
|
Thank you, Kas, again.
I tried this and didn't get it to work, but am now reading Jongware's CS3 scripting reference to thread this needle. It really is the bible of scripting for InDesign. The guy is just amazing.
Chuck
|
|