답 :
try참고 : [실행] 에 do shell script 가 들어가도 에러를 캐치한다.
[실행]
on error
[에러처리]
end try
즉 do shell script 가 단순히 외부 프로그램 호출하는 식으로 작동하는게 아니라는 얘기
(실행 결과가 에러인지 성공인지 캐치한다는 것)
키워드 : exception handling
try참고 : [실행] 에 do shell script 가 들어가도 에러를 캐치한다.
[실행]
on error
[에러처리]
end try
< marquee>텍스트 스크롤링 ㄴ'ㅅ'ㄱ< /marquee>그러면 다음과 같이 됨
레퍼런스 : http://www.bloggertricks.com/2007/12/scrolling-text-marquee-html-codes-for.html
< a onclick="this.nextSibling.style.display=(this.nextSibling.style.display=='none')?'block':'none';" href="javascript:void(0)">제목(이걸 클릭)< /a>< div style="display: none;">그러면 다음과 같이 됨
내용
< /div>
repeat with this_item in theSelected이는 다음과 같이 try 를 이용하면 해결된다
set filepath to FinderUtil's myFinderGetSelectedItemsFilepath(this_item)end repeat
set end of filepaths to filepath
repeat with this_item in theSelected
tryend repeat
set filepath to FinderUtil's myFinderGetSelectedItemsFilepath(this_item)end try
set end of filepaths to filepath
chmod -R +rwX foldername요약 : 폴더에는 execute permission 넣어줘야 함