I have been trying for days to make this to work. I need to able to have a pdf file count of the chosen directories in the server.
folder 1 has total of 24 pdfs
folder 2 has 10 pdfs
folder 3 has 234 pdfs
If I select folder 1 & folder 2 I would to see these results
folder 1 24 pdf
folder 2 10 pdf
This what I have so far but I'm getting an error:\"Cant make quoted form of POSIX path of {alias \"Macintosh HD:Users:user
esktop:Stuff:folder 2 :\", alias \"Macintosh HD:Users:user
esktop:Stuff:folder1:\"} into type Unicode text." number -1700 from quoted form of POSIX path of {alias "Macintosh HD:Users:user
esktop:Stuff:folder 2 :", alias "Macintosh HD:Users:user
esktop:Stuff:folder1:"} to Unicode text
I was trying using only applescript but scripting the finder takes too long to give me results
folder 1 has total of 24 pdfs
folder 2 has 10 pdfs
folder 3 has 234 pdfs
If I select folder 1 & folder 2 I would to see these results
folder 1 24 pdf
folder 2 10 pdf
PHP:
set target_folder to choose folder with prompt "Choose target folder to count files" with multiple selections allowed without invisibles
set numberOfFiles to do shell script "find " & (quoted form of POSIX path of target_folder) & " -type f -name *.pdf | wc -l"
This what I have so far but I'm getting an error:\"Cant make quoted form of POSIX path of {alias \"Macintosh HD:Users:user
I was trying using only applescript but scripting the finder takes too long to give me results