Update send to feature to send to TV app on 10.15.
This commit is contained in:
9 files changed
+112
-77
No files matched your search
@@ -593,20 +593,7 @@ class QueueSendToiTunesAction: NSObject, QueueActionProtocol {
|
||||
override init() {}
|
||||
|
||||
func runAction(_ item: QueueItem) -> Bool {
|
||||
|
||||
if let script = NSAppleScript(source: """
|
||||
tell application "iTunes" to add (POSIX file "\(item.destURL.path)")
|
||||
""") {
|
||||
|
||||
let result = automationConsent(bundleIdentifier: "com.apple.iTunes", promptIfNeeded: true)
|
||||
if result == .granted {
|
||||
var error: NSDictionary?
|
||||
script.executeAndReturnError(&error)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
return sendToFileExternalApp(fileURL: item.destURL)
|
||||
}
|
||||
|
||||
func encode(with aCoder: NSCoder) {}
|
||||
|
||||
Reference in new issue
Block a user