• 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
e: Removing items from a project using AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

e: Removing items from a project using AppleScript


  • Subject: e: Removing items from a project using AppleScript
  • From: "Jim O'Connor" <email@hidden>
  • Date: Thu, 22 Jun 2006 12:55:11 -0500

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>
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


  • Follow-Ups:
    • Re: e: Removing items from a project using AppleScript
      • From: Gouri Jonnalagadda <email@hidden>
  • Prev by Date: Re: Shark Crisis
  • Next by Date: Re: Which SDK?
  • Previous by thread: perl embed
  • Next by thread: Re: e: Removing items from a project using AppleScript
  • Index(es):
    • Date
    • Thread