XML 도구 2 (http://www.latenightsw.com/freeware/XMLTools2/index.html)를 사용하여 AppleScript로 XML 파일을 생성하고 있습니다. 생성 된 XML 파일을 특정 위치에 저장하는 방법을 알 수 없습니다. '-37 번호 오류 "어떤 객체를 파일에 대한 잘못된 이름입니다."'내 HD의 루트 디렉토리에 저장합니다 : 위의 코드를 사용하여XML로 특정 위치에 XML 저장 AppleScript 용 도구 2
는set theFilename to "test_xml"
set theXML to ¬
{class:XML element, XML tag:"FinalCutServer", XML contents:{¬
{class:XML element, XML tag:"request", XML attributes:{reqId:"setMd", entityId:"/asset/STRING_TO_BE_REPLACED"}, XML contents:{¬
{class:XML element, XML tag:"params", XML contents:{¬
{class:XML element, XML tag:"mdValue", XML attributes:{fieldName:" Title", dataType:"string"}, XML contents:{"test01"}}}}}}}}
set xmlPath to "Macintosh HD:XMLin:" & theFilename & ".xml" as Unicode text
generate XML theXML saving as xmlPath with generating UTF8
, 다음과 같은 오류를 반환합니다. 어쨌든 특정 위치에 직접 저장하거나 루트에 저장 한 다음 파일을 이동해야합니까?
나는 그것을 어떻게 놓쳤는 지 모른다. 감사!! – RGilkes