2009-08-13 6 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 

のようなものを考えたが、それは、removeはそのコンテナによってサポートされていないことを私に伝えます。 アイデア

答えて

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 
関連する問題