AppleScript → Shell → Python で、trimする。
log my trim({text_:" test "})
on trim(args)
set {text_:aText} to ¬
args & {text_:""}
set test1 to do shell script "
python -c 'print(\"" & aText & "\".strip())'
"
end trim
AppleScript → Shell → Python で、trimする。
log my trim({text_:" test "})
on trim(args)
set {text_:aText} to ¬
args & {text_:""}
set test1 to do shell script "
python -c 'print(\"" & aText & "\".strip())'
"
end trim