自分は最近PowerPointを操作するアプリを作った際に、 PowerPointの操作はC#プログラムで、 PowerPoint操作以外の部分はPythonで という感じでアプリを作った際にsubprocessを使いました。 Pythonでsubprocessを使って、C#で作ったプログラム.exeに対してコマンドライン引数 ...
actapp=subprocess.run ( ['osascript', '-e', 'tell application "System Events" to get name of first application process whose frontmost is true'], encoding='utf-8', stdout=subprocess.PIPE) ...
The SDK fails with JSONDecodeError: Unterminated string when Claude generates very long responses. This occurs because the subprocess pipe buffer truncates large JSON ...