Origin Version 7.0 (Select Help-->Tutorial): Operating System: Windows Xp Dear all, I want to learn about Automating the processes in Origin. The best I thought to look in the Help-->Tutorial-->Programming Tutorials-->Automation Example. After following all the instructions given in the tutorial and finally running the command Process %yTutorial\Sample.txt from the Script Window. I get the "File Not Found" error. However the file is infact present in the designated folder. I am wonder if I am missing something obvious!!! Could someone please help me sort it out? Regards, Ravi
I tried out the issue you documented in Origin7.5 with the same failure!
Please try the following (type into the scripting window ...):
Process %yTutorial\Sample.txt this will lead to the file not found error you reported.
type %yTutorial\Sample.txt shows you the real processed path. %y expands to the Origin User directory NOT as expected in the tutorial to the Origin installation directory where the Tutorial folder is located. So the error message is correct!
%a=system.path.program$ Process %aTutorial\Sample.txt This should work!
Maybe you'll find it usefull to have a look at the following Help section: LabTalk Language Reference -> Overview of the LabTalk Language -> Keywords -> String System Variables
When Origin is installed, by default the User Files folder is set up to be a different folder than the EXE path.
We therefore have a mistake in our tutorial steps because this was done assuming the user files folder and the exe folder are one and the same - it is possible to configure it this way, but not recommended.