i need to find different object types and move them to new layers
example: all the ai files
all the images files
all text files etc
there is a good script for the text but the images part does not work so good
i need to find object in the entire document
For different file types - you need to go through Document.Links collection and check .LinkType or extension in .Name.