Converting scripts to commands while converiting opt to pmoptz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there!
I tried learning PM-Post to improve my existing opt file. It worked well, thanks to the advises from this forum.
Now I have a better understanding of JScript and the post-processor engine, so I am trying to convert an old opt file to pmoptz file. My strategy is to
1) Import the opt file and save it as a pmoptz and
2) Minimize the scripts involved and improve the option file wherever possible.
I observed that the pmoptz file has plenty scripts in it which is called to do a specific function instead of commands in PM-Post. Most of these scripts assign values to parameters using SetParam and GetParam, and pass over the execution to the command by StandardResponse. The command would be empty mostly and does not output any code. So mostly the purpose of the command is to execute the scripts.
I wonder if there is any method to achieve what the script does in the command itself ? That is to perform' assigning values to certain parameters as the script does' inside a command and not output any code.
Any help would be greatly appreciated. Thanks a lot for your time!

