I have done a applescript for Moving and renaming PDF files from one folder to other folder choosen by the user. so that i have wrote a syntex to choose folder dialog box as "choose folder with prompt" .i need to find out only pdf files. i mean, if i choose a folder in choose folder prompt means it only choose the pdf files in the folder. and one more thing. i handled the sub folder also.
PDFFolder -> One.pdf, Two.pdf.... i need to handell this ..
PDFFolder -> PDFSubFolder-> One.pdf, Two.pdf..... i need to handele this also..
(PDFFolder ->One.pdf, Two.pdf.
->PDFSubFolder-> One.pdf, Two.pdf.) and this too...
Yes you can do this but it is a little tedious. If you have just one level of sub folders it's OK. If you have more it becomes difficult.
You could use "tell app "Finder" - set myContents to entire contents of folder mySelectedFolder - end tell
This returns all the items including PDFs and folders as a flat list. From there you can move files or process them.