I frequently use BBEdit Projects to access files on remote servers.
What I would like to do is figure out how to populate bbprojectdata files on
my own. Here's my use case:

1) I get a list of files to fix.
2) I convert the filenames to ftp URLs
3) add the files to the Project by selecting and dragging each ftp URL into
the project.

What I would like to do instead is select the whole mass of ftp URLs and
drag them all into the project in a single go, in the same way this can be
done when selecting multiple files with a BBEdit FTP browser window.
Currently, this doesn't work: it inserts only the filename of the last ftp
URL in the list, and opening it fails with an error. Looking at the
bbprojectdata file directly, I see that all the ftp URL's are contained
within a single dict->string element; clearly this isn't going to work.

Thus it's a pain to make a project with more than a few ftp URLs.

Looking at a bbprojectdata file, it appears to be hackable to get the
results I want. It's an XML file with an array element containing string
elements which relates to the dict element and establishes the ordering of
the files. Each dict element is preceded by a key element which contains the
same identifier as in the string element under array.

These array->string and dict->key elements contain some sort of hash of
(likely) the ftp URL, e.g. <key>56BCB452-6F4B-4223-94A5-5E3D17B43EAB</key>

So, is there a way to correctly generate these hashes using my list of ftp
URLs, so that I can quickly make custom projects?

Or perhaps, do these keys establish anything other than relating the order
of files in the Project to the individual files' key entries?

So I tried hacking the bbprojectdata file directly (using a different editor
:-) and just replacing these lengthy hashes with a sequence: 1001, 1002 etc.
I then opened the project in BBEdit and lo and behold I was able to edit the
files!

Could it be this easy or am I missing something that will screw me up later?

Thanks,
    -Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "supp...@barebones.com" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to