Update send to feature to send to TV app on 10.15.

This commit is contained in:
Damiano Galassi committed 2019-10-15 08:34:35 +02:00
1 parent 6bb26182ba
commit dbe5080541
9 files changed
+112 -77

No files matched your search

+1 -14
View File
@@ -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) {}