6 lines
271 B
Swift
6 lines
271 B
Swift
|
|
import Cocoa
|
||
|
|
let pid = pid_t(CommandLine.arguments[1])!
|
||
|
|
let app = AXUIElementCreateApplication(pid)
|
||
|
|
let t: CFTypeRef = kCFBooleanTrue!
|
||
|
|
let r = AXUIElementSetAttributeValue(app, "AXEnhancedUserInterface" as CFString, t)
|
||
|
|
print("set AXEnhancedUserInterface: \(r.rawValue)")
|