OFWProjectGenerator Drag and Drop

I’m just writing to share a tool I’ve just wrote
It is a drag and drop shortcut to command line project generator ( you will need to adjust your OFW path manually)

You drag and drop the project or example folder inside the window and project files are immediatly regenerated.
It runs without confirmation so have a backup of your projects, in the case you have customization on XCODE projects.

Here is the entire code, paste it on main.cpp and remove the other sources

#include "ofMain.h"

string pgPath = "/Volumes/ofw/of_v0.9.8_osx_release/apps/projectGenerator/commandLine/bin/projectGenerator";

class ofApp : public ofBaseApp{
	void setup() {
		ofSetWindowPosition(60, 60);

	void draw(){
		ofDrawBitmapString("Drag and drop project file here", 30, 40);

	void dragEvent(ofDragInfo info) {
		if( info.files.size() > 0 ){
			string dir = info.files[0];
			string f = dir + "/addons.make";
			if (ofFile::doesFileExist(f)) {
				string c = "cd " + dir + "; "+pgPath+" -o\"../../../\" .";
				//ofSystemAlertDialog("yes!! "+f);
int main( ){
	ofSetupOpenGL(320,160,OF_WINDOW);			// <-------- setup the GL context
	ofRunApp(new ofApp());