Thread View: adobe.scripting.indesign
7 messages
7 total messages
Started by HenryL
Mon, 02 Mar 2009 08:01
Workspace chagne to Default setting
Author: HenryL
Date: Mon, 02 Mar 2009 08:01
Date: Mon, 02 Mar 2009 08:01
9 lines
909 bytes
909 bytes
Hi, Is there any script function to change the workspace to use the default setting? The action I would like to do in the script function is just like click on the Menu [Window] => [Workspace] and then select [Default] using the mouse. Please advise. Thank you. Henry
Re: Workspace chagne to Default setting
Author: Kasyan_Servetsky
Date: Mon, 02 Mar 2009 08:47
Date: Mon, 02 Mar 2009 08:47
2 lines
678 bytes
678 bytes
var myMenuAction = app.menuActions.item("$ID/Default Workspace");
myMenuAction.invoke();
Re: Workspace chagne to Default setting
Author: Peter Kahrel
Date: Mon, 02 Mar 2009 08:48
Date: Mon, 02 Mar 2009 08:48
3 lines
642 bytes
642 bytes
application.applyWorkspace ("henry");
Peter
Re: Workspace chagne to Default setting
Author: HenryL
Date: Mon, 02 Mar 2009 11:09
Date: Mon, 02 Mar 2009 11:09
11 lines
940 bytes
940 bytes
Hi Kaysyan & Peter, Thank you for your response. Actually, I want to use VB.net to call the function and the version of InDesign I'm using is InDesign CS. I've tried both your codes and found there were no such functions in my version of Indesign for calling. Do you know how can I trigger the function in VB.net? Please advise. Thank you. Henry
Re: Workspace chagne to Default setting
Author: Peter Kahrel
Date: Mon, 02 Mar 2009 11:59
Date: Mon, 02 Mar 2009 11:59
5 lines
882 bytes
882 bytes
Henry, CS and CS2 don't have a method applyWorkspace (which rules out my method), and before CS3 (or CS4) you couldn't invoke menu items (which rules out Kasyan's method). So this looks difficult. Maybe there's a trick in VB but I don't know. Peter
Re: Workspace chagne to Default setting
Author: HenryL
Date: Mon, 02 Mar 2009 12:11
Date: Mon, 02 Mar 2009 12:11
5 lines
647 bytes
647 bytes
Hi Peter, Noted and Thank you very much for the details. Henry
Re: Workspace chagne to Default setting
Author: Olav_Kvern
Date: Mon, 02 Mar 2009 19:38
Date: Mon, 02 Mar 2009 19:38
7 lines
834 bytes
834 bytes
Peter wrote: "Maybe there's a trick in VB but I don't know." You might be able to do it using SendKeys, which simply sends keystrokes to an application. This would probably be awkward and fragile, but it might work. Thanks, Ole
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads