Question Locked

Run PowerShell script from dock

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi All,

I recently wrote a powershell script to run on MAC. I run from terminal and type pwsh and then call the .ps1 and it runs. Is there any way to add it to the dock if you will so I can click on it like another application and have it load? Any ideas appreciated.

Thanks

1 reply

by bencutting164

Nice work! You can try wrapping your PowerShell script in an AppleScript app using Automator then just drag that app to the Dock. It’s a handy workaround I’ve used for similar scripts. Hope that helps.

This discussion is closed to new replies.