RosettaCodeData/Task/Walk-a-directory-Non-recursively/AppleScript/walk-a-directory-non-recursively-2.applescript
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07: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"}