Looking to create a service in Automator so when I select multiple files in the Finder, I can in one right-click create a new folder and move the selected files into that newly created folder. This action could include a step that will ask me to name this folder but it's not mandatory. Any idea?
-
2You asked "Any idea?", well sure but what have you tried?– user3439894Commented Sep 12, 2019 at 1:02
-
Automator > New > Service | setting Service receives selected files or folders in Finder | add a Move Finder Items action, setting Options to: Show this action when the workflow runs– user3439894Commented Sep 12, 2019 at 1:10
-
Firstly, welcome to Ask Different! :) I hope you come to find this site has a lot to offer! In case you haven't already, it's worth taking the time to read the tour. You may also want to read how to ask a question to improve your chances of getting a good answer.– Monomeeth ♦Commented Sep 12, 2019 at 1:43
Add a comment
|
1 Answer
Here is an alternate solution.
Not sure if you're aware of this but there's already a keyboard shortcut in Finder, (control + command + N) which creates a new folder containing the selected finder items. This can also be accessed through the contextual menu when right clicking on selected Finder items.
This AppleScript code works for me using the latest version of macOS Mojave.
-
Thanks a lot. But for stability and compatibility reasons, I am still with High Sierra.– MartyCommented Sep 13, 2019 at 13:24
-
1
-
Sometimes you want to create a new Folder with only one item (e.g. so you can add more later) and then—doesn't work …– user38541Commented Sep 7, 2020 at 12:33