Page 1 of 1

Error executing shortcut via commandline

PostPosted: Sat Apr 01, 2023 3:35 pm
by SpaghettiCat
Hi There,

I have a rule that monitors a folder for a new subfolder, and when one is detected, it is copied to another folder. This rule works fine. However, after the folder has been copied, it should trigger a shortcut to create a new project in things. Every time this rule runs it fails with the error "error executing shortcut via commandline." I've run shortcuts from Hazel before, but now this is working with a few different shortcuts that I've tried. Any ideas? I'll post the shortcut here.

https://www.icloud.com/shortcuts/85eef7 ... 748916576e

Thanks for the help!

Re: Error executing shortcut via commandline

PostPosted: Mon Apr 03, 2023 9:39 am
by Mr_Noodle
That Shortcut doesn't seem to be set up properly. You need to have it take a file as input. This one doesn't seem to have any inputs at all.

Re: Error executing shortcut via commandline

PostPosted: Mon May 08, 2023 6:38 pm
by SpaghettiCat
I'm not sure why my shortcut shows up as not accepting any inputs in the shared link, because that is not the case on my machine. I'm having the same issue with another shortcut I wrote that is set up to accept files, folders, and text. I'm not sure what I'm doing wrong!

In this example I'm having hazel act on a folder. I need to pass the folder name and file path to the shortcut, but I'm getting the same "error executing shortcut via commandline" message.

https://www.icloud.com/shortcuts/47877e ... d7071155af

Re: Error executing shortcut via commandline

PostPosted: Tue May 09, 2023 9:08 am
by Mr_Noodle
I'm seeing "Receive [Files and 4 more] input from [Share Sheet, Quick Actions, What's On Screen]" when viewing that. Is that what you are seeing on your end?