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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Problem in output redirection
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

altomare

USA
19 Posts

Posted - 08/16/2005 :  7:22:46 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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;

Mike Buess

USA
3037 Posts

Posted - 08/17/2005 :  08:03:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

altomare

USA
19 Posts

Posted - 08/17/2005 :  08:33:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 08/17/2005 :  09:17:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

altomare

USA
19 Posts

Posted - 08/17/2005 :  10:31:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000