Is there a way to add items to Drop Bar via the cli ?
x2197 opened this issue · 4 comments
Use case:
I run a build.sh
script that builds a zip file. I want to add that zip file to dropzone.
Is there a way to add items to Drop Bar via the cli ?
I tried to import the dropzone
package but it says module not found
But if run the python from the /Applications/Dropzone 4.app/Contents/Actions/lib
directory the module imports and all call is successful but it doesn't add the item to the dropzone
What is the issue here is there a way to do to add items to Drop Bar via the cli ?
For clarification I tired the Develop Action
form there it works fine
Those Python API methods can only be used from within an action.
You can still do this though, just a slightly more roundabout way:
Add a new Shortcut in the Shortcuts app setup as shown below:
Then on the command line you can do:
shortcuts run "Add Files To Drop Bar" --input-path <file paths>
The provided file paths will be added to Drop Bar.
If you provide multiple file paths then a Drop Bar stack will be created with all the files.
Ok You have to right click on the files
to bring the Shortcut Input
and then the Receive
section comes up thanks for the demo it works now.