내가 Omnigraffle 전문 5.Omnigraffle에서 확장자없이 파일 이름을 얻는 방법은 무엇입니까?
tell application "OmniGraffle Professional 5"
set _document to front document
set _path to path of _document
-- Get filename without extension
tell application "Finder"
set {_filename, _extension, _ishidden} to the
{displayed_name, name_extension, extension_hidden} of the _path
end tell
end tell
이 현재 문서 파일의 확장자가없는 파일 이름을 얻으려고하는 것은 나에게 다음과 같은 오류를 제공합니다 : error "Can’t get displayed_name of \"/Users/ca/Downloads/Feb 8.graffle\"." number -1728 from displayed_name of "/Users/ca/Downloads/Feb 8.graffle"
.
관련 질문 및 페이지를 찾았지만 약간 분실되어 실제로 작동하지 않는 이유를 실제로 이해할 수 없습니다. 당신의 도움에 대한
감사합니다!
고맙습니다. 이것은 정말 좋은 대답입니다. 당신의 설명에 감사드립니다. – charlax