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