How to create new project in XCode using AppleScript?

I want to do a simple task with XCode and AppleScript:

  1. I want to create a new project
  2. Save created project with desired name in desired folder.

Can someone tell me how can I achieve it using AppleScript??

Thanks,

Miraaj

Answers


You can't do this directly, but you can do it by setting up a template project which you then use to create new projects. There are some useful details on doing this here.


This gist shows how to use AppleScript to create a new C++ project. You could probably adjust it to create whatever type of project you're interested in. Note that is uses UI scripting, which is not very friendly, but that is about all Xcode 4 supports.


I tried to archieve the same and the solution for me was just to create a dummy project folder find all places, where you have to rename the project name (and the bundle identifier) and on running your script just copy this folder and rename project name and bundle identifier. Dirty but easy.


Need Your Help

Draw a circular segment progress in SWIFT

xcode swift uiview draw cgcontext

I would like to create a circular progress with slices where each slice is an arc.

Titanium Studio 3.2.1 requires Android 5.0

android sdk titanium android-sdk-tools

I've tried to install Android SDK and configure it with Titanium Studio for 5 days. I used every method described in stackoverflow/appcelerator and nothing. Below you've got screen shots from Titan...