osa

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(script string) (string, error)

Execute runs an AppleScript string in-process.

func ExecuteCLI

func ExecuteCLI(script string) (string, error)

ExecuteCLI runs AppleScript via the osascript command line tool. This is useful as a fallback when in-process execution is blocked by TCC.

func RunScript

func RunScript(name string, replacements map[string]string) (string, error)

RunScript loads an AppleScript from the embedded FS and executes it. It performs text replacements based on the provided map.

func SetScriptsFS

func SetScriptsFS(fs embed.FS)

SetScriptsFS sets the file system for loading embedded scripts

Types

This section is empty.

Jump to

Keyboard shortcuts

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