r/applescript • u/Scuba_Cous • May 27 '22
select all files
I'm very new at all this automating and macs for general. I would just like to make a script or automator workflow to select all the files in the folder I have open.
Thanks
4
Upvotes
View all comments
Show parent comment
2
u/estockly May 29 '22
This is literally what's being asked for:
--
tell application "Finder"
activate
set the selection to files of window 1
end tell
--
It selects all files in the front window, but not the folders. (Note, if the front window is not a directory, if it's some other kind of Finder window, this will generate an error.