Jump to content
dzejar

PowerShell for Run Script action?

Recommended Posts

Hey guys,

would you consider to add PowerShell into pick-up menu in Run Script action?

 

I like that shell and I would love to use it for my Alfred workflows...

 

Best Regards and Take Care!

 

 - Jan

Share this post


Link to post
Share on other sites
Posted (edited)

You don't need explicit support for a language. Use a separate executable script with the appropriate shebang and set Language = External Script, or use Language = /bin/bash and treat the Script box like a shell prompt to run your script (/path/to/interpreter ./scriptname "$1").

Edited by deanishe

Share this post


Link to post
Share on other sites

Yep, I do that. But it is annoying to create a separate file when I need to add just one one-liner written in PS into my workflow. Direct support would be superb!

 

 - Jan 

Share this post


Link to post
Share on other sites
14 minutes ago, dzejar said:

Direct support would be superb!

 

Alfred can’t give you direct support because PowerShell isn’t installed by default. You’ll notice all the interpreters point to the paths that come bundled with macOS—for good reason, Alfred can’t easily guess what you have installed yourself and where and what you want to use, and pointing to something that’s not there by default would lead to issues.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...