Section 7: TSP command reference  Model 2657A High Power System SourceMeter® Instrument Reference Manual
 
7-158  2657A-901-01 Rev. B/December 2012 
 
script.delete() 
This function deletes a script from nonvolatile memory. 
Type  TSP-Link accessible 
Affected by  Where saved  Default value 
Function No 
 
 
Usage 
script.delete(scriptName) 
 
scriptName 
The string that represents the name of the script 
Example 
 
script.delete("test8") 
Deletes a user script named "test8" from 
nonvolatile memory. 
Also see 
Delete user scripts (on page 6-9) 
Delete user scripts from the instrument
 (on page 6-46) 
scriptVar.save()
 (on page 7-167) 
 
script.factory.catalog() 
This function returns an iterator that can be used in a for loop to iterate over all the factory scripts. 
Type  TSP-Link accessible 
Affected by  Where saved  Default value 
Function Yes 
 
 
Usage 
for name in script.factory.catalog() do body end 
 
name 
String representing the name of the script 
body 
Code that implements the body of the for loop to process the names in the catalog 
Details 
Accessing this catalog of scripts allows you to process the factory scripts. The entries will be enumerated in no 
particular order. 
Each time the body of the function executes, name takes on the name of one of the factory scripts. The for loop 
repeats until all scripts have been iterated. 
Example 
 
for name in script.factory.catalog() do 
   print(name) 
end 
Retrieve the catalog listing for factory scripts. 
Also see 
None