I'm making an application which is able to limit the amount of time to operate other apps in macOS, and found that I should imitate this app's behavior. Although I searched and tried many things, I finally could't imitate it by myself. So I want you to advise me.
At first, I found that Applescript seemed to be useful only for applications supporting a function to minimize the window because I think blocking limited apps by killing process is not good. Then I decided to observe an app's (1Focus) behavior which had already achieved its function.
Although I am not familiar with reverse engineering, I tried to use strings, otool, dtruss, dapptrace, and Hopper. It is certain that I couldn't get useful information, but I found that com.apple.appkit.xpc.openAndSavePanelService seemed to be involved. It can be easily seen in the energy tab of Activity Monitor and I am reading this document now.