First of all, there are projects and projects. If you try out some technology or library, or sth else, you probably create a project in your IDE, find out if this thing is interesting to you or not, and then delete your project. That's ok, everybody does this.
Another type of project is real software/sites/etc., which is business, where those 'projects', files, programs are just tools, and developing such complex things requires motivation and the goals:
- what you develop (web site/text editor/mobile app/...)
- what do you need it for (make money, pick up some new technology/contribute to open source/...)
- when would you do (how much time you devote your project, how long are you planning to do that)
What you develop should be new. If you want to make just another text editor because you think some feature you demand is missing, you probably don't need to do that. There are hundreds of open source tools, contribute to one of them.
Even if you make a small single-use tool like a script, you should state those things listed, it would be easier to solve the problem itself.
If you are stuck at writing code (e.g., massively rewrite your code) you are probably not experienced enough to do that. Take a good book on software engineering, your platform (mac/web/etc), read code written by more experienced developers that does similar things. There lots of places to do that now (github, google code, programming blogs, stackoverflow).
Don't try to solve a very complex problem (e.g. writer a compiler or an operating system) from scratch, first decompose it to smaller tasks, mostly often, someone has already created libraries that help you solve your problem.