Indesign and PageNumber symbol

Hi Darudh,
If you are talking about the auto page number special character that you put into a text frame to tell you what page you are on, then there is no direct way from scripting of setting text to contain that character. Depending on how bad you want to do this, one option is to export the character to an RTF or tagged text file and then import it, copy and paste whenever you need to use it.
Future versions of InDesign scripting will better support special text characters.
Also, as an FYI, you can ask a page for its name and you’ll get the page number.
Hope this helps,