mac

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureAccessibility

func EnsureAccessibility() error

EnsureAccessibility checks for accessibility permissions.

func GetMailPID

func GetMailPID() int

GetMailPID returns the PID of Mail.app.

func PasteIntoWindow

func PasteIntoWindow(ctx context.Context, pid int, expectedTitle string, timeout time.Duration, htmlContent *string, plainContent string) error

PasteIntoWindow performs a "fire-and-forget" paste operation. It finds a window, focuses its body, and simulates a paste command. It assumes success if the commands execute without error, but does not verify the final content.

func SetClipboard

func SetClipboard(htmlContent *string, plainContent string) error

SetClipboard sets the system clipboard content.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL