しかし、どちらも \" を使用することもquote
、私にとってはうまくいかないようです。たとえば、
set msgDate to "05-06-2013"
set quotedmsgDate to "\"" & msgDate & "\"" as string
do shell script "echo " & quoted form of quotedmsgDate
戻り値
"\"05-06-2013\""
理由がわかりません。教えていただければ幸いです。問題がある場合は、10.8.5 とドイツ語のローカリゼーションを使用しています...
編集:
これは私が仕事をしようとしているスクリプトです
tell application "BibDesk (original)"
set thePublications to selection of document 1
repeat with thePub in thePublications
tell thePub
if value of field "Pages" is not "" then
set the_pages to value of field "Pages"
set quoted_pages to "\"" & the_pages & "\"" as string
set the_script to "/usr/bin/python /Users/Januz/Downloads/sanitize_BibDesk_pages.py -p " & quoted form of quoted_pages
set a to do shell script the_script
set value of field "Pages" to a
end if
end tell
end repeat
end tell
the_script
が正しく設定されていないためにエラーが発生し、
do shell script "/usr/bin/python /Users/Januz/Downloads/sanitize_BibDesk_pages.py -p '\"151-65\"'"
これは正しく実行できません...