Stephen_C Posted January 18, 2023 Posted January 18, 2023 This workflow is a Universal Action which enables you to create a single new folder (with a name you choose) in your current active folder (i.e., where you have selected a file or files). It creates the folder and gives the option of moving the selected file(s) to the new folder. There are no dependencies but the workflow uses a number of Automation Tasks so you will need to ensure those are up-to-date. (GitHub download link) Stephen sepulchra and Grug 2
Stephen_C Posted January 19, 2023 Author Posted January 19, 2023 Version 1.1 A minor update incorporating a more efficient way of obtaining initial path. Stephen
Stephen_C Posted January 22, 2023 Author Posted January 22, 2023 Version 1.2 New icon. Stephen Grug 1
deepsea0715 Posted February 10, 2023 Posted February 10, 2023 Cannot succeed when the folder name is Chinese characters ERROR: New folder[Automation Task] Task Error: /Users/shenhai/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/Automation Tasks/7aa060f4654c2836d857c82267441d4f2506da67c8ac54b8dbdf74f2759ba10d:398:449: execution error: “Finder”遇到一个错误:AppleEvent处理程序失败。 (-10000)
Stephen_C Posted February 10, 2023 Author Posted February 10, 2023 @vitor I wonder whether you might have any idea why the Automation Task appears to fail when Chinese characters are used. This was originally raised as an issue on my GitHub repository and I suggested it was raised here in the hope you may be able to assist. Stephen
vitor Posted February 10, 2023 Posted February 10, 2023 (edited) 5 hours ago, Stephen_C said: I wonder whether you might have any idea why the Automation Task appears to fail when Chinese characters are used. Can you reproduce the error? Because I can’t, it works just fine for me, even when making a new folder with Chinese characters from acting on a folder which itself has Chinese characters. @deepsea0715 Please provide the full debug log, as well as any other information relevant to the case, such as the name of the folder you’re creating, which files you’re acting on, your version of Alfred and macOS. Edited February 10, 2023 by vitor
Stephen_C Posted February 10, 2023 Author Posted February 10, 2023 (edited) I am having some problems with the workflow using Chinese names but there's something odd happening anyway because the workflow seems on occasion to be adding the name of one of the selected files to the name of the new folder (when I can get it to work at all). Edit: The problem I'm having is (because my Chinese is not very good 😀) pasting a Chinese folder name into the name field. Stephen Edited February 10, 2023 by Stephen_C Clarification
vitor Posted February 10, 2023 Posted February 10, 2023 I can take a look but I’ll need specific reproduction steps (i.e. a way to reliably cause the error every time).
Stephen_C Posted February 10, 2023 Author Posted February 10, 2023 I think we have to rely on @deepsea0715 to provide some diagnostics. Although I've been able to create manually a Chinese named folder when I run the workflow for some reason I cannot copy and paste Chinese characters into the name field so can't explore further. As I'm not currently having a lot of fun with Ventura (with some really odd bugs) I'm not very keen to set up a Chinese keyboard and try. Stephen
Faris Najem Posted May 6, 2023 Posted May 6, 2023 (edited) On 1/18/2023 at 1:02 PM, Stephen_C said: This workflow is a Universal Action which enables you to create a single new folder (with a name you choose) in your current active folder (i.e., where you have selected a file or files). It creates the folder and gives the option of moving the selected file(s) to the new folder. There are no dependencies but the workflow uses a number of Automation Tasks so you will need to ensure those are up-to-date. (GitHub download link) Stephen Hello Steven, I would like to ask what is the difference between this workflow and the "Create New Folder from Selected Items" option in Finder as shown in the attached image? Thank you so much. Edited May 6, 2023 by Faris Najem
Stephen_C Posted May 6, 2023 Author Posted May 6, 2023 I suspect there's little difference in the end result. I'm just much more used to using Alfred Universal Actions on selected files and much less used to using Finder → Right Click options. Feel free to whichever better suits you! Note I have another workflow which creates a new folder: Move to new folder (which is a link to the relevant post on the forum). That enables you to choose the destination folder for the selected files outside the folder in which those files are located and so that workflow is more versatile than the Finder → Right Click option. Stephen
Stephen_C Posted May 18, 2023 Author Posted May 18, 2023 Updated to version 1.31: slight simplification of Automation Tasks for creating new folder (by deleting preceding Arg and Vars). Make sure your Automation Tasks are up-to-date! Stephen
Peter U Posted August 4, 2024 Posted August 4, 2024 Neat little thing, but it only works with Finder.app. Please consider adding support for Path Finder as well.
Stephen_C Posted August 4, 2024 Author Posted August 4, 2024 Sorry I don't have Path Finder so can't add support for it: apologies. Stephen
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now