애플 스크립트를 작성하여 .txt 파일의 일부 텍스트를 구문 분석하고 별도의 .txt 파일로 출력하는 데 도움이 될 수 있습니다. 1) 섹션을 식별하고 ("»="), 2) 특정 문자 세트가 섹션에 있는지 확인합니다. "[*]", 3) 특정 섹션이 포함 된 섹션을 모두 인쇄하십시오. 문자 세트, 4) 파일 끝까지 반복하십시오. 기본적으로 이들은 작업 항목이있는 메모이며 열린 작업 항목이 들어있는 메모를 추출하려고합니다. NOTES.TXT에서어플 텍스트로 텍스트 파싱
입력 텍스트의 구조는 다음과 같습니다
»===============================
<Date> 2016-09-19
<Topic> The topic of the day
<Attendees> Mario, Luigi
»1) Where to go from here
- Someone said this
[*] Mario: schedule this meeting
- And who wants to do that other thing?
»3) So on and so forth [*] Luigi can order the pizza
»===============================
어쩌면 나는 이것에 약간의 도움을받을 수 있습니다 다음과 같이 actionItems.txt에
»===============================
<Date> 2016-09-19
<Topic> The topic of the day
<Attendees> Mario, Luigi
»1) Where to go from here
- Someone said this
[*] Mario: schedule this meeting
- And who wants to do that other thing?
»2) And on to the next thing
»3) So on and so forth [*] Luigi can order the pizza
»===============================
<Date> 2016-09-18
<Topic> The topic of the yesterday
<Attendees> Zelda, Wario, Snoop Dog
»1) Where we went from there
- Who said this
[x] Mario: scheduled this meeting yesterday
- And who wants to do that other thing?
»2) And on to the next thing again
»3) So on and so forth * Luigi can order the sausages
»===============================
출력 텍스트가되어야 하는가? 감사!