Skip to content

Commit 3286f31

Browse files
committed
Silence apple script error message in release build
1 parent d93c57c commit 3286f31

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Core/Sources/Service/Helpers.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ func runAppleScript(_ appleScript: String) async throws -> String {
1616
task.arguments = ["-e", appleScript]
1717
let outpipe = Pipe()
1818
task.standardOutput = outpipe
19+
#if DEBUG
20+
#else
21+
task.standardError = Pipe()
22+
#endif
1923

2024
return try await withUnsafeThrowingContinuation { continuation in
2125
do {

0 commit comments

Comments
 (0)