So, I just wanted to give the basic idea of this method without providing the code to avoid updating this part of the code frequently. NOTE: The documentation of Apple has been constantly changing since the release of Swift. Integrating Swift-Keylogger with Cocoa App To change the path edit bundlePathURL in Keylogger.swift All the data is grouped according to day in each folder.
Key folder stores all the keystrokes according to application.Īpp folder stores all the timestamps of applications being active.ĭevices folder stores the information about the connected keyboards.īy default, it creates a folder where the executable is present.