RosettaCodeData/Task/Walk-a-directory-Non-recursively/AppleScript/walk-a-directory-non-recursively-2.applescript
2023-07-01 13:44:08 -04:00

2 lines
182 B
AppleScript

tell application "Finder" to return name of every item in (path to documents folder from user domain) whose name ends with "pdf"
--> EXAMPLE RESULT: {"About Stacks.pdf", "Test.pdf"}