PSmacOS icon indicating copy to clipboard operation
PSmacOS copied to clipboard

PowerShell cmdlets for macOS

Build Status

PSmacOS

PowerShell module containing convience or platform-specific cmdlets for macOS.

Installation

Install-Module PSmacOS to install from PSGallery

Documentation

Look in the docs folder.

Cmdlet list

  • Get-Clipboard - get clipboard content as a string and return to the pipeline

  • Set-Clipboard - set clipboard content

  • Show-MessageBox - show a message/alert box

    Show-MessageBox Plain Type screenshot Show-MessageBox Note Type screenshot Show-MessageBox Caution Type screenshot Show-MessageBox Stop Type screenshot

  • Out-GridView - show a searchable table of objects from the pipeline

    Out-GridView screenshot

Planned/Future

  • Start-Process or equivalent that knows about macOS app bundles [like the open command but powershelly]

  • Invoke-AppleScript - why not?