 */
 
 import Foundation
+#if canImport(AppKit)
+import AppKit
+#endif
 
 internal class ActionsChain {
     internal let steps: [ImageAsk]

            Logging.error("Unhandled content type: \(data.imageContentType)")
            saved = nil
        }
        
        guard let written = saved else {
            return

        }
        
        let saved: Data?
        #if os(iOS)
        switch data.imageContentType {
        case .jpg:
            saved = processed.jpegData(compressionQuality: 0.8)
