• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: e: Removing items from a project using AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: e: Removing items from a project using AppleScript


  • Subject: Re: e: Removing items from a project using AppleScript
  • From: Gouri Jonnalagadda <email@hidden>
  • Date: Thu, 22 Jun 2006 13:02:06 -0700

tell application "Xcode"

delete group "Sources" of root group of project 1

end tell

On Jun 22, 2006, at 10:55 AM, Jim O'Connor wrote:

Date: Wed, 21 Jun 2006 09:42:18 -0700
From: Gouri Jonnalagadda <email@hidden>
Subject: Re: Removing items from a project using AppleScript
To: "Jim O'Connor" <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset="us-ascii"

Some thing like this should get you started:
tell application "Xcode"
tell project 1
delete file reference "main.c" of group "Sources"
end tell
end tell

Gouri


Exactly what I needed, Gouri. Thank you very much.

Do you have some example for removing file groupings? I've tried several different methods.

Also, some sample AppleScripts with XCode to do this sort of thing would be really handy. I AppleScript just often enough to remind myself that I'm really not proficient in it.

Thanks,
Jim
_______________________________________________
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >e: Removing items from a project using AppleScript (From: "Jim O'Connor" <email@hidden>)

  • Prev by Date: tab appears as line break.
  • Next by Date: Ambiguous conversions
  • Previous by thread: e: Removing items from a project using AppleScript
  • Next by thread: tab appears as line break.
  • Index(es):
    • Date
    • Thread