List pages

I had a script that made pdf’s out of Quark, it gave me a list of the pages I wanted to make pdf of. We are making the switch to indesign and I redid the script to work in indesign, but I can’t get it to show me a list of pages that I want to pdf. This is what I have so far… any help would be great thanks


	set thePages to every page
	set PagesToPrint to choose from list thePages with prompt "Choose Pages to PDF:" with multiple selections allowed
	repeat with anItem in PagesToPrint
		set page_number to name of anItem as string