4

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

3 Answers 3

1

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.