MCPcopy Create free account

hub / github.com/andybrewer/mack / functions

Functions51 in github.com/andybrewer/mack

↓ 29 callersFunctionwrapInQuotes
Wrap text in quotes for proper command line formatting
mack.go:60
↓ 16 callersFunctionparseResponse
Parse a button response
mack.go:103
↓ 14 callersFunctionrunStringAssertTests
* ** Test Helpers */ Compare two string values
mack_test.go:195
↓ 12 callersFunctionbuild
Build the AppleScript command, ignoring any blank optional parameters
mack.go:65
↓ 11 callersFunctionbuildDialogBox
Parse the DialogBox options and build the command
dialog.go:68
↓ 8 callersFunctionbuildAlertBox
Parse the AlertBox options and build the command
alert.go:65
↓ 8 callersFunctionrun
Build the AppleScript command from a set of optional parameters, return the output
mack.go:21
↓ 6 callersFunctionbuildAlert
Parse the alert options and build the command
alert.go:32
↓ 6 callersFunctionbuildDialog
Parse the dialog options and build the command
dialog.go:33
↓ 6 callersFunctionmakeButtonList
Parse and format the button values
mack.go:87
↓ 5 callersFunctionbuildNotification
Parse the notify options and build the command
notification.go:31
↓ 4 callersFunctionbuildSay
Parse the say options and build the command
say.go:28
↓ 4 callersFunctionrunWithButtons
Build the AppleScript command from a set of optional parameters, return a Response
mack.go:35
↓ 3 callersFunctionSay
Say triggers a voice notification that will read the text provided in a given voice. mack.Say("Hi in Fred's voice!", "Fred") // Have the "Fred" vo
say.go:22
↓ 3 callersFunctionbuildBeep
Parse the beep options and build the command
beep.go:26
↓ 2 callersFunctionAlertBox
AlertBox triggers a desktop alert with the option for custom buttons. Either an error is returned, or the string output from the user interaction. a
alert.go:60
↓ 2 callersFunctionBeep
Beep triggers a given number of system beeps. mack.Beep(1) // Beeps once mack.Beep(3) // Beeps 3 times Parameters: times int // Required - Th
beep.go:20
↓ 2 callersFunctionbuildClipboard
Build the command
clipboard.go:14
↓ 2 callersFunctionbuildList
(list ListOptions)
list.go:56
↓ 2 callersFunctionbuildSetClipboard
Wrap the content in quotes and build the command
clipboard.go:25
↓ 2 callersFunctionfail
Global fail message format
mack_test.go:220
↓ 2 callersFunctionrunErrorAssertTests
Compare two error values
mack_test.go:204
↓ 2 callersFunctionrunList
(list ListOptions)
list.go:41
↓ 1 callersFunctionClipboard
Clipboard returns the content of the clipboard
clipboard.go:9
↓ 1 callersFunctionDialogBox
DialogBox triggers a desktop dialog box with the option for custom buttons. Either an error is returned, or the string output from the user interactio
dialog.go:63
↓ 1 callersFunctionSetClipboard
SetClipboard changes the content of the clipboard
clipboard.go:19
↓ 1 callersFunctionTell
Tell tells an application the specified commands mack.Tell("TextEdit", "activate") // Activates TextEdit mack.Tell("TextEdit", "quit") // Qui
tell.go:20
↓ 1 callersFunctionbuildTell
Parse the Tell options and build the command
tell.go:25
↓ 1 callersFunctionmkList
Construct an applescript string list
mack.go:78
FunctionAlert
Alert triggers a desktop alert with custom buttons. Either an error is returned, or the string output from the user interaction. mack.Alert("Alert")
alert.go:27
FunctionDialog
Dialog triggers a desktop dialog box. Either an error is returned, or the string output from the user interaction. mack.Dialog("Dialog text")
dialog.go:28
FunctionList
List triggers a desktop list selection box. It accepts a title and one or more string items for the user to select from Use ListWithOpts for more con
list.go:18
FunctionListWithOpts
ListWithOpts trigger a desktop list selection box accepting custom parameters. list := mack.ListOptions{ Items: []string{"item one", 'item two"}
list.go:37
FunctionNotify
Notify triggers a desktop notification. mack.Notify("My message") // Display a notification with the content "My
notification.go:25
FunctionTestBuild
Test building a command
mack_test.go:80
FunctionTestBuildAlert
(t *testing.T)
alert_test.go:12
FunctionTestBuildAlertBox
(t *testing.T)
alert_test.go:39
FunctionTestBuildBeep
(t *testing.T)
beep_test.go:12
FunctionTestBuildClipboard
(t *testing.T)
clipboard_test.go:12
FunctionTestBuildDialog
(t *testing.T)
dialog_test.go:12
FunctionTestBuildDialogBox
(t *testing.T)
dialog_test.go:39
FunctionTestBuildList
(t *testing.T)
list_test.go:5
FunctionTestBuildNotification
(t *testing.T)
notification_test.go:12
FunctionTestBuildSay
(t *testing.T)
say_test.go:12
FunctionTestBuildSetClipboard
(t *testing.T)
clipboard_test.go:23
FunctionTestMakeButtonList
Test parsing a button list
mack_test.go:92
FunctionTestParseResponse
Test parsing an alert or dialog response
mack_test.go:116
FunctionTestRun
Test executing the commands
mack_test.go:15
FunctionTestSetClipboard
(t *testing.T)
clipboard_test.go:34
FunctionTestTell
(t *testing.T)
tell_test.go:10
FunctionTestWrapInQuotes
Test wrapping a string in quotes
mack_test.go:68