The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Problem in output redirection

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000