ViewController.swift 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // ViewController.swift
  3. // ProcessCheckFile
  4. //
  5. // Created by 朱东勇 on 2022/11/17.
  6. //
  7. import Cocoa
  8. class ViewController: NSViewController {
  9. override func viewDidLoad() {
  10. super.viewDidLoad()
  11. // ProcessFont.processRTFAutoFile(.FontNameWithSize)
  12. // ProcessFont.processRTFAutoFile(.Color)
  13. // ProcessFont.processRTFAutoFile(.SpecialCharacter)
  14. // ProcessFont.processRTFAutoFile(.Chinese)
  15. // ProcessThumbnal.process("/Users/zhudongyong/Desktop/文档/对照文档/PDFConvert_China_Auto_Test.rtf")
  16. FileAttributeKey.busy
  17. let fileAttributy = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping.pdf")
  18. let symbAttributy = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping的替身.pdf")
  19. let fileAttributy2 = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/nrcs141p2_018306.pdf")
  20. let symbAttributy2 = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/nrcs141p2_018306的替身.pdf")
  21. let url = URL.init(filePath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping的替身.pdf")
  22. let string = try! NSDictionary.init(contentsOf: url, error: ())
  23. NSLog("%@", fileAttributy)
  24. NSLog("%@", symbAttributy)
  25. NSLog("%@", fileAttributy2)
  26. NSLog("%@", symbAttributy2)
  27. NSLog("%@", string)
  28. }
  29. override var representedObject: Any? {
  30. didSet {
  31. // Update the view, if already loaded.
  32. }
  33. }
  34. }