2009-08-13 5 views
1

AppleScript로 그룹에 파일을 성공적으로 추가 할 수 있었지만 자식 그룹을 제거 할 수 있어야합니다. 나는AppleScript를 사용하여 xcode 프로젝트에서 그룹을 제거하는 방법

tell currentGroup 
    --remove any groups already present 
    repeat with groupItem in groups 
     --display alert " " & name of groupItem 
     remove groupItem from groups 

    end repeat 
end tell 

같은 것을 생각하지만, 그 제거가 해당 컨테이너에서 지원하지 않는 나에게 말한다. 아이디어가 있으십니까?

답변

0

나는 그것을 알아 냈다. 난 그냥 currentGroup

삭제 그룹을 할 수있는 그룹의 모든 그룹을 제거하려면 내가 비록 단 하나의 그룹을 제거 할 방법을 모르겠어요.

그러한 예는 다음에 의해 달성 될 수
2

:

tell application "Xcode" 
tell front project 
set parent_group to first group 
delete first group of parent_group 
end tell 
end tell 
관련 문제