| T O P I C R E V I E W |
| coll@inia. |
Posted - 12/27/2000 : 09:42:16 AM 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? |
| 1 L A T E S T R E P L I E S (Newest First) |
| Laurie |
Posted - 12/27/2000 : 11:36:27 AM 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 |
|
|