아래 코드는 AppleScript에서 구문 오류를 발생시킵니다 (Automator를 사용하는 경우). 터미널에서 실행될 때 코드가 올바르게 실행될 때 어떤 문제가 발생했는지 제안 할 수 있습니까?AppleScript 코드
on run {input, parameters}
tell application "Terminal"
activate (do script with command "perl -mURI -lne 'print ((URI->new(/([\S]+) \z/msx)->path_segments)[-1])' <testfile.txt> testfile1.txt")
end tell
return input
end run
무엇이 오류입니까? "정품 인증"후에 반품을 시도하십시오 – alexy13
터미널에 아무 것도하지 말라고 요구하지 마십시오. do shell script "여기에 코드를 입력하십시오" – PHennessey