저는 방금 xcode에서 applescript로 시작하고 현재 폴더 위치를 묻는 응용 프로그램을 가지고 있으며 폴더 구조를 만듭니다. 하나의 변수를 애플 스크립트로 쓰거나 읽으십시오.
on buttonClick_(sender)
set theLocation to choose folder with prompt "Where to save your project?"
tell application "Finder"
set newFolder to make new folder at theLocation with properties {name:(theTextField's stringValue() as string)}
set fontsFolder to make new folder at newFolder with properties {name:"fonts"}
set jpgFolder to make new folder at newFolder with properties {name:"jpg-pdf"}
set mainFolder to make new folder at newFolder with properties {name:"main"}
set printFolder to make new folder at mainFolder with properties {name:"• for printer"}
set refverFolder to make new folder at newFolder with properties {name:"ref_ver"}
set supportFolder to make new folder at newFolder with properties {name:"support"}
end tell
quit
end buttonClick_
는 이제 앱 받아 "theLocation"폴더 별칭을하고 저장하기 위해 노력하고있어, 그래서 응용 프로그램이 자동으로 시작하는 다음 번에 추가 할 필요없이 저장 위치로 해당 폴더를 선택합니다. 나는 그 안에 들어갈 논리를 이해하지만 정보를 저장/읽는 법을 이해할 수는 없습니다. 나는 info.plist에 글쓰기에 관한 튜토리얼을 시도했지만, 그들 중 누구도 일하지 않았다. 내가 어떻게 애플 스크립트가 작동하는지에 대한 기본적인 정보가 빠졌습니까?
감사
** 편집 당신은 스크립트가 종료 된 후에도 정보를 저장할 수 있도록 스크립트의 시작 부분에 속성을 정의 할 수 있습니다
나는 사과 스크립트에 초보자입니다. info.plist를 편집 할 수있는 방법을 알려주시겠습니까? info.plist 파일의 일부 속성을 내 값으로 편집하고 싶습니다. 도움이 될 것입니다. – user1010819