Error executing shortcut via commandline

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Error executing shortcut via commandline 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!
SpaghettiCat
 
Posts: 2
Joined: Sat Apr 01, 2023 3:28 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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
SpaghettiCat
 
Posts: 2
Joined: Sat Apr 01, 2023 3:28 pm

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?
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support