I'm not sure why you are resorting to scripting. AE imports image sequences naturally, assumes by default setting in the preferences that the desired frame rate is 30 fps, and if you create a comp from the imported image sequence you can render that comp to video through the Render Cue and output module or the Adobe Media Encoder. Premiere Pro and the Adobe Media encoder will also recognize image sequences and render them to video. You can change the assumed frame rate in any of the apps. There is no trick to doing this.
I have not tried your script but if it imports an image sequence to the project panel and it shows up as an image sequence then all you have to do is create a comp from the footage and render.
Thanks a lot Rick,
I am very new to scripting, If you could point me coding examples so that it will be very helpful for me.
Thanks a lot,
My point is that you don't need scripting to import an image sequence. It's a waste of time unless you are building something far more complicated. I would never write a script just to import an image sequence.
Thanks a lot for the suggestions. I would also never use the script to import the images, but I am having 1 lack difference sequences. that is the reason I am using the scripting to import a particular sequence and creating video out of that.
Have you succeeded in solving your issue yet? Please let us know how you did it or if you need more help.