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
 begining Origin with "SaveProjectAs"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 12/27/2000 :  09:42:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I would like to start Origin with the dialog box of "Save project as.." to force people to save first the work they are going to perform. I try to copy some scripts from the menu but those did not work. Anybody has an idea?

Laurie

USA
404 Posts

Posted - 12/27/2000 :  11:36:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you Ctrl+Shift+select File:Save Project As, the script file and section name will be echoed back to the Script Window. If you have the latest version, the LabTalk Editor will also open.

The only script that you then need is "run.section(FILE,SaveProjectAs)". You want this script to run when Origin opens, so one way to do that would be to have the script execute when the Data1 worksheet is created. This worksheet is created from the origin.otw worksheet template file.

1. Open a new project.
2. Add a text label to the Data1 worksheet. (It doesn't matter what the actual text says.)
3. Select the text and right-click to choose Label Control.
4. In the Label Control dialog, enter the following script:

run.section(FILE,SaveProjectAs);

5. Set the Script, Run After: to Window Create. Uncheck the Visible checkbox.
6. Click OK.
7. Select File:Save Template As, saving as Origin.otw.
8. Select File:New Project and watch what happens.

I hope this helps.

Laurie
OriginLab Technical Support

Edited by - Laurie on 12/27/2000 11:39:27
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