question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shortcuts: Additional Arguments for selfmade Script in Shortcuts

See original GitHub issue

First 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:open
  • Created 4 years ago
  • Reactions:14
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
herbhuangcommented, Mar 23, 2020

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 the everything plugin to pass the query to es.exe and the web 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 use es?[word] on ueli. It turn out to work fine.

input: es?test

it work the same as directly execute:

C:\...\GoldenDict.exe test

Many applications accept arguments even though they don’t provide command-line interface, so I think this feature will be great.

Thanks again😊

1reaction
ascii-tscommented, Mar 30, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found