Hi,
When you drag and drop a file into Origin, it will use default template and filter to import your file.
So I suggest you can new a filter with import after script to edit the column format.
For example:
wks.col1.format = 3; // Set the first column format to Time, Time = 3
wks.col1.subformat = 11; // Display Time format HH:mm:ss.###
1. Select " Tools: Import Filters Manager" in the menu.
2. In the "Filter Manager" dialog, choose "ASCII" filter, and click on "Edit" button.
3. In the filter edit dialog, set the "File Name Filter" to "*.txt"
And copy and paste the above labtalk script to the "Labtalk Script after Import" text box.
4 "Save As" the filter in the "Filter" Folder under User File Folder. Close the dialog.
After that, when you import the txt file, the "Select Filter" dialog will pop-up.
You can choose the new filter for importing the file, and the first column will be set to Time format, and display to "HH:mm:ss.###"
Thanks
OriginLab
Jacquline