T O P I C R E V I E W |
schneide |
Posted - 06/06/2018 : 07:10:41 AM Origin Ver. 2018 b9.5.0193 Operating System: WIN10
I am trying to open Origin from a Python script, fill a worksheet with data, execute a labtalk script, save the file and close origin.
I do not manage to close origin. Neither by a python command nor by closing out of Origin ("in use by another application").
How can I close Origin from Python, so that it is no longer running actively or in the background?
My Code is import win32com.client org = win32com.client.Dispatch("Origin.Application")
org.NewProject
...more code....
org.Save(r"c:\temp\test.opju")
org.Exit del org
Giselher |
1 L A T E S T R E P L I E S (Newest First) |
YimingChen |
Posted - 07/20/2018 : 4:58:14 PM Hi,
Can you try the following script to close Origin?
org.Exit()
Thank you,
Yiming |
|
|