From 0b950a4033f95b140d0c882ef696a63a7fb19921 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Thu, 26 Mar 2026 14:04:34 +0900 Subject: [PATCH] =?UTF-8?q?fix(law=5Fmonitor):=20AppleScript=20=EB=94=B0?= =?UTF-8?q?=EC=98=B4=ED=91=9C=20=EC=9D=B4=EC=8A=A4=EC=BC=80=EC=9D=B4?= =?UTF-8?q?=ED=94=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/law_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/law_monitor.py b/scripts/law_monitor.py index 5f9bdee..198c97a 100644 --- a/scripts/law_monitor.py +++ b/scripts/law_monitor.py @@ -213,8 +213,8 @@ def _import_foreign_to_devonthink(filepath: Path, title: str, country: str): """외국 법령 DEVONthink 임포트""" country_map = {"US": "US", "JP": "JP", "EU": "EU"} folder = country_map.get(country, country) - escaped_path = str(filepath).replace('"', '\\"') - escaped_title = title.replace('"', '\\"')[:60] + escaped_path = str(filepath).replace('\\', '\\\\').replace('"', '\\"') + escaped_title = title.replace('\\', '').replace('"', '').replace("'", "")[:60] script = f''' tell application id "DNtp" set targetDB to missing value