Saturday, June 15, 2013

Using Apple Script to get list of files selected in finder

set theFiles to {}
repeat with itemAlias in (get selection of application "Finder")
   set end of theFiles to POSIX path of (itemAlias as text)
end repeat
theFiles

No comments:

Post a Comment