mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 21:20:51 +01:00
Add open-screen-clip.ps1 and open-screen-sketch.ps1
This commit is contained in:
parent
cedd56b8df
commit
27c61eb807
20
Scripts/open-screen-clip.ps1
Normal file
20
Scripts/open-screen-clip.ps1
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Launches Screen Clip
|
||||||
|
.DESCRIPTION
|
||||||
|
This script launches the Screen Clip application.
|
||||||
|
.EXAMPLE
|
||||||
|
PS> ./open-screen-clip
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
#>
|
||||||
|
|
||||||
|
try {
|
||||||
|
start-process ms-screenclip:
|
||||||
|
exit 0 # success
|
||||||
|
} catch {
|
||||||
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
exit 1
|
||||||
|
}
|
20
Scripts/open-screen-sketch.ps1
Normal file
20
Scripts/open-screen-sketch.ps1
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Launches Screen Sketch
|
||||||
|
.DESCRIPTION
|
||||||
|
This script launches the Screen Sketch application.
|
||||||
|
.EXAMPLE
|
||||||
|
PS> ./open-screen-sketch
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
#>
|
||||||
|
|
||||||
|
try {
|
||||||
|
start-process ms-screensketch:
|
||||||
|
exit 0 # success
|
||||||
|
} catch {
|
||||||
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
exit 1
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user