(s string)
| 195 | } |
| 196 | |
| 197 | func escapeAppleScriptString(s string) string { |
| 198 | s = strings.ReplaceAll(s, `\`, `\\`) |
| 199 | s = strings.ReplaceAll(s, `"`, `\"`) |
| 200 | return s |
| 201 | } |
| 202 | |
| 203 | // quoteAppleScriptString returns an AppleScript expression that evaluates |
| 204 | // to s. Lines are emitted as separate quoted strings joined with |
no outgoing calls
no test coverage detected