We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d525d3d + 9a9b947 commit 3926ad0Copy full SHA for 3926ad0
BuildTimeAnalyzer/ViewController.swift
@@ -285,6 +285,23 @@ extension ViewController: NSTableViewDataSource {
285
let item = filteredData?[row] ?? dataSource[row]
286
NSWorkspace.shared().openFile(item.path)
287
288
+
289
+ let gotoLineScript =
290
+ "tell application \"Xcode\"\n" +
291
+ " activate\n" +
292
+ "end tell\n" +
293
+ "tell application \"System Events\"\n" +
294
+ " keystroke \"l\" using command down\n" +
295
+ " keystroke \"\(item.location)\"\n" +
296
+ " keystroke return\n" +
297
+ "end tell"
298
299
+ DispatchQueue.main.async {
300
+ if let script = NSAppleScript(source: gotoLineScript) {
301
+ script.executeAndReturnError(nil)
302
+ }
303
304
305
return true
306
}
307
0 commit comments