T O P I C R E V I E W |
altomare |
Posted - 08/16/2005 : 7:22:46 PM Origin Version (Select Help-->About Origin): 7.5 Operating System: WinXp
I am trying to use a note window to record the output from a script (which fit several datasets). Unfortunately the following script seems only to work if the note window is in the same subfolder where the script is. Any idea how to solve the problem? And is there any way to address a note window which is in a different folder by using the type.notes$ property? Thanks Fabio
/* Script */ win -n n Note; type.notes$=Note; type.redirection=2; type This goes into the note window; type.redirection=1; type This goes into the script window; |
4 L A T E S T R E P L I E S (Newest First) |
altomare |
Posted - 08/17/2005 : 10:31:08 AM Mike, although I would like to be able to treat the note window as a regular window you have a good point (and I didn't know anything of what you said about the note window :-)). Thanks a lot Fabio |
Mike Buess |
Posted - 08/17/2005 : 09:17:32 AM quote: Shouldn't this be consiered a bug? Since the name of a window is unique in the project my script should work fine.
Perhaps, but Notes windows have always been different than other windows. One example, there is no such thing as an active Notes window. (%H will never name a notes window.) Another example, a Notes window can have the same name as a wks, graph, matrix or layout window. That's why there are so many separate 'windows' command options for notes windows.
Mike Buess Origin WebRing Member |
altomare |
Posted - 08/17/2005 : 08:33:18 AM quote:
Hi Fabio,
You can use the extended labtalk commands to move the Note window to the active subfolder (is that what you mean by "where the script is"?)...
Hi Mike you were right, I meant exactly the active subfolder. My original idea was to create a note window in each subfolder but your is better. Thanks a lot
PS Shouldn't this be consiered a bug? Since the name of a window is unique in the project my script should work fine. |
Mike Buess |
Posted - 08/17/2005 : 08:03:15 AM Hi Fabio,
You can use the extended labtalk commands to move the Note window to the active subfolder (is that what you mean by "where the script is"?)...
%M=pe_get_path()$; // current folder %N=pe_get_path(Note)$; // folder containing note window pe_cd %N; // go to note window folder pe_move Note %M; // move note win to %M pe_cd %M; // return to %M
Mike Buess Origin WebRing Member |