Hi. I have a pretty complex organizational structure that I use on all my web projects, using a mixture of folders and collections to arrange things how I like. Arranging everything in BBedit was the most convoluted step in my workflow when starting a new web project. I finally came up with a hack to make creating new bbedit projects a breeze, using a tool called Keyboard Maestro: essentially a third party extended automator. Basically, I have a template set up, a folder of the files that are in the .bbprojectd package, username.bbprojectsettings and project.bbprojectdata, though saved in this folder as regular xml files. I then have an automated process where I click an application icon on my dock, and a prompt asks me for the new project name. When submitted, it then duplicates that folder, does a find and replace on the above mentioned two files, making the project point at the desired folder in my Sites directory. It then renames the xml files, and renames the folder to a .bbprojectd package.
This seems to be working OK, though I experienced some strange behavior. If the site did not already exist in the Sites directory, and I opened the BBedit project, the missing files and folders would initially show up red, as would be expected. However, if I clicked on any of the red files or folders, they would somehow remap themselves to a completely different project. I concluded that BBedit must be encoding path locations in the <data> </data> tags in the project.bbprojectdata file. So, in my template I have stripped all the data out from the <data> tags. Now, if the site directory does not exist, the files and folders stay red even after clicking on them and I don't have to worry about suddenly editing files from the wrong project. Finally my question. Can anyone tell me anything about the data contained in these files, and if editing them the way I am could have unforeseen effects? I especially wonder if cloning all of my projects from a single file, with each item having identical ids and keys as in other projects could cause problems. Thanks in advance for any insight on this. Also, if anyone wants to see my Keyboard Maestro macro for creating projects, just let my know and I'll post it here. -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
