desktop

package
v0.0.0-...-050b588 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDesktopImage

func SetDesktopImage(image string) (string, error)

SetDesktopImage sets the desktop background image to the supplied image

func Tell

func Tell(application string, commands ...string) (string, error)

Tell tells an macOS application what to do

Types

type Response

type Response struct {
	Clicked string // The name of the button clicked
	GaveUp  bool   // True if the user failed to respond in the duration specified
	Text    string // Only on Dialog boxes - The return value of the input field
}

Response the response format after a button click on an alert or dialog box

Jump to

Keyboard shortcuts

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