BBEdit 9.6.3 removes a feature that, for me at least, was really useful: you could open a textClipping and its contents would appear in a new BBEdit window. I probably used this feature more than actually viewing clippings with the Finder or dragging them into a text-box.
9.6.3 takes this away and instead opens the text clipping file itself's data fork, which is empty. I can't imagine a single situation in which this useful, but I've emailed BBEdit support and they've made it clear that in order to avoid depending on undocumented data structures, they're not going to change back. Here's how to bring it back. 1. Grab the `clipcat` script I wrote back in November--preferably [this modified one by Morgan Aldridge](https://gist.github.com/733828) and install it somewhere. This script cats the contents of a text- clipping on the command-line. 2. Copy this script: on documentDidOpen(_doc) set _SCRIPT to "/Users/david/Library/Scripts/UNIX/clipcat" tell application "BBEdit" set _doc to document 1 set _file to the file of _doc end tell if _file is missing value then return -- prevents an error when creating new documents end if tell application "Finder" set _type to the file type of _file end tell tell application "BBEdit" if _type is "clpt" then close document 1 set _path to POSIX path of _file set _contents to (do shell script _SCRIPT & " " & quoted form of _path) make new text document with properties {contents:_contents} select insertion point before character 1 of text window 1 end if end tell end documentDidOpen and change the _SCRIPT variable to the path to where you saved the script (this must be in UNIX/POSIX format, delimited by slashes, not classic-Mac format using colons). Paste it into the Script editor and save in `~/Library/Application Support/BBEdit/Attachment Scripts/` as `Document.documentDidOpen.scpt`. 3. Open a text clipping file. Ta-da! I hope this is useful to some of you. — dpk. -- 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>
