fix(law_monitor): AppleScript 따옴표 이스케이프 수정

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-26 14:04:34 +09:00
parent 6a44b10a3b
commit 0b950a4033

View File

@@ -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