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
 multiple open script

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
gelokkir2 Posted - 02/17/2003 : 06:29:47 AM
I would like to write a script that opens multiple ascii files, each in a separate worksheet, and then saves them as separate origin files.
There is an example on the originlab website, but it doesn't seem to be complete, and so it doesn't work.
I would appreciate any help you can offer.

Thank you.
4   L A T E S T    R E P L I E S    (Newest First)
gelokkir2 Posted - 02/18/2003 : 6:54:20 PM
Yes,this was the problem. It's now working alright.

Thank you very much for your help!
Mike Buess Posted - 02/17/2003 : 1:47:06 PM
Are you sure that the directory named in the save command exists? I got this error message when I tried to save to a folder that doesn't exist...

"Can not open file C:\Data\SampleData.ogw for saving. File is in use or read only."

Mike Buess
Origin WebRing Member
gelokkir2 Posted - 02/17/2003 : 09:10:41 AM
Hi,
Thank you very much for your help.
This seems to work. However, although it opens all the files correctly it gives an error message (something like: file cannot be saved because it's being used) when it tries to save them.
Any ideas?

thank you.
Mike Buess Posted - 02/17/2003 : 08:41:07 AM
Hi,

I don't know which script you're referring to or why it doesn't work, but this should do what you want...

getfile -m; // get multiple ASCII data files
for(i=1;i<=count;i+=1)
{
getfile -g i; // get file name into %A
win -t data; // bring up a new worksheet
open -w %A; // import the data
save -i C:\Data\%H; // save wks as C:\Data\wksname.ogw (adjust path as needed)
}

Mike Buess
Origin WebRing Member

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