@alien4u, I'm trying to run a saved search where some of the values depend upon another saved search results.
Unfortunately NetSuite doesn't allow inner joins between saved searches, hence, I figured out a script could be executed when the saved search is run and fill in the remaining values.