fix(law_monitor): AppleScript 따옴표 이스케이프 수정
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -213,8 +213,8 @@ def _import_foreign_to_devonthink(filepath: Path, title: str, country: str):
|
|||||||
"""외국 법령 DEVONthink 임포트"""
|
"""외국 법령 DEVONthink 임포트"""
|
||||||
country_map = {"US": "US", "JP": "JP", "EU": "EU"}
|
country_map = {"US": "US", "JP": "JP", "EU": "EU"}
|
||||||
folder = country_map.get(country, country)
|
folder = country_map.get(country, country)
|
||||||
escaped_path = str(filepath).replace('"', '\\"')
|
escaped_path = str(filepath).replace('\\', '\\\\').replace('"', '\\"')
|
||||||
escaped_title = title.replace('"', '\\"')[:60]
|
escaped_title = title.replace('\\', '').replace('"', '').replace("'", "")[:60]
|
||||||
script = f'''
|
script = f'''
|
||||||
tell application id "DNtp"
|
tell application id "DNtp"
|
||||||
set targetDB to missing value
|
set targetDB to missing value
|
||||||
|
|||||||
Reference in New Issue
Block a user