Here is a simple use of ACL (Arbortext Command Language) to remove all the comments in your file. Placing this function in a file, for example, removeComment.acl and store it in <arbortext installation>/custom/scripts/. You can call out the script either by using the command line or place it in a menu.
function removeComments() {
#— Removes all the comments in an instance
find -m ‘<_comment>’;
message "Removed all comments…";
while( selected() ) {
delete_mark;
find -m ‘<_comment>’;
}
}
#— Removes all the comments in an instance
find -m ‘<_comment>’;
message "Removed all comments…";
while( selected() ) {
delete_mark;
find -m ‘<_comment>’;
}
}
Test the function by invoking it from the command line.
First, source the file.
Sourcing the remove comments function
Second, call out the function.

- Running the remove comments function
This function, again, will loop through the file and remove all comments.
This entry was posted on Thursday, June 4th, 2009 at 9:00 am and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.

