MCPcopy Create free account
hub / github.com/nikivdev/go / escapeAppleScriptString

Function escapeAppleScriptString

cli/flow/main.go:2528–2532  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

2526}
2527
2528func escapeAppleScriptString(value string) string {
2529 value = strings.ReplaceAll(value, "\\", "\\\\")
2530 value = strings.ReplaceAll(value, "\"", "\\\"")
2531 return value
2532}
2533
2534func safariFrontmostURL() (string, error) {
2535 script := `tell application "System Events"

Callers 2

focusCursorWindowByTitleFunction · 0.85
runSpotifyPlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected