Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Can InDesign be scripted to load shortcuts workspaces?

Return to Member Forum

  • Author
    Posts
    • #59793
      Chuck Nigash
      Member

      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?

    • #59816

      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

    • #59817
      Chuck Nigash
      Member

      Thanks, Kas, I'll try that.

    • #59826

      Huh, I didn't know about that. There certainl seems to be a parallel, app.applyShortcutSet().

      Though I admit my inclination would be to move aorund the preference file that stores these, which is to say fix the Citrix install's fresh copy of it. Not that I've done that, so there might be hidden gotchas.

    • #59827

      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.

    • #59841
      Chuck Nigash
      Member

      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

    • #59847
      Chuck Nigash
      Member

      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?

    • #59872

      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).

    • #59873
      Chuck Nigash
      Member

      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

Viewing 8 reply threads
  • You must be logged in to reply to this topic.
Forum Ads