Could someone convert this to objective cThanks!https://developer.apple.com/documentation/webkit/wkwebview?language=objcCreating a WKWebView programmaticallyimport UIKitimport WebKitclass ViewController: UIViewController, WKUIDelegate { var webView: WKWebView! override func loadView() { let webConfiguration = WKWebViewConfiguration() webView = WKWebView(frame: .zero, configuration: webConfiguration) webView.uiDelegate = self view = webView } override func viewDidLoad() { super.viewDidLoad() let myURL = URL(string:"https://www.apple.com") let myRequest = URLRequest(url: myURL!) webView.load(myRequest) }}
Post
Replies
Boosts
Views
Activity
So running this from script editor activates the finder and nothing happens with the keystroke.
M1 mini 11.3.1
Accessibility - Script editor enabled
Full disk access - Script editor enabled
AppleScript
tell application "Finder" to activate
tell application "System Events"
tell process "Finder"
keystroke "x" using control down
end tell
end tell
So what to do??