'actapp'は任意の名前。activeapplication。subprocess.runのrunはcallに代わる新系。'osascript', '-e',はosascriptの宣言。 'tell application "System Events" to get name of first application process whose frontmost is ...