- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
How to use script to delete all the scripts in the file?
Hello everyone!
How to use script to delete all the scripts in the file? Or no text recording is performed during operation.
Thanks!
This post originally written in Chinese (Simplified) and has been translated for your convenience. When you reply, it will also be translated back to Chinese (Simplified).
2 ACCEPTED SOLUTIONS
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
回复: 怎样用脚本将文件中的脚本全部删除?
Here is an example of one way to delete the scripts
names default to here(1);
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt << delete scripts(dt << Get Table Script Names);
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
回复: 怎样用脚本将文件中的脚本全部删除?
Try( dt << Delete Table Property( "Source" ) );
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Reply: How to delete all the scripts in the file with the script?
Such a record is a waste of space, how to set it up so that after various operations, there is no such "source" record when saving the file?
This post originally written in Chinese (Simplified) and has been translated for your convenience. When you reply, it will also be translated back to Chinese (Simplified).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
回复: 怎样用脚本将文件中的脚本全部删除?
Here is an example of one way to delete the scripts
names default to here(1);
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt << delete scripts(dt << Get Table Script Names);
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
回复: 怎样用脚本将文件中的脚本全部删除?
Try( dt << Delete Table Property( "Source" ) );