Shortcuts: Additional Arguments for selfmade Script in Shortcuts
See original GitHub issueFirst of all: Thank you! I love ueli, it makes my life so much easier.
I use a lot of self made scripts (mostly python). I open the Scripts using Shortcuts type: Comandline. It would be awesome to be able to call the script and giving it addtional Arguments.
example: This script takes two arguments
C:\users\me\.\pythonscript.pyw --ID:1002 --Name:Jon
Defining it in ueli:
C:\users\me\.\pythonscript.pyw --ID:{{arg[0]}} --Name:{{arg[1]}}
And then calling the Shortcut in ueli with:
myshortcut 1002 Jon
Again, Love your work. Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:14
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Passing arguments to shell-script doesn't work : r/shortcuts
Hi! I updated to MacOS 12.1 and tried to pass an text as argument into a shell-script, which doesn't seem to work. Expected...
Read more >Advanced Privacy and security settings in Shortcuts on Mac
Due to the inherent risk of running automation on your device, the Shortcuts app has settings to protect you from malicious actors and...
Read more >Pass shortcut arguments in .bat (batch) - Super User
To pass argument to bat or cmd file - you just run script with parameters, like this: script.cmd parameter1 parameter2.
Read more >Logger Is the Missing Console for Shortcuts Power Users
And today, Hay is launching Logger, another Shortcuts-compatible app ... the multiple scripting-related additions in Shortcuts for macOS), ...
Read more >Notifications, Shortcuts & Triggers - Pushcut
You can pass the Input parameter in the body and URL. This is perfect for triggering IFTTT maker webhooks, custom web services, or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Indeed this is a fantastic work.
I think I have the same request, not for script, but for application. Thus I leave a comment here rather than open a new issue.
Here is the detail:
ueli
has theeverything plugin
to pass the query toes.exe
and theweb search plugin
to search in browser. Thus, I think it work the same if run some other apps.So I try to locate
goldendict.exe
on the setting page of everything, and usees?[word]
on ueli. It turn out to work fine.it work the same as directly execute:
Many applications accept arguments even though they don’t provide command-line interface, so I think this feature will be great.
Thanks again😊
i would also need that. it is actually the only thing we i haven’t migrated from Keypirinha to euli. i have several scripts that i run with different arguments. this would be a gamechanger for me