I’m trying to create an AppleScript that will do the following in BBEdit:
1. From the Edit menu (in an open file), choose Insert » File Contents…
2. In the resulting dialog, navigate to a given folder
3. Once at the desired folder, select all of the listed files
4. Insert the contents of the files
I’m encountering the following difficulties (I’ve tried both recording the steps and just coding them):
• “File Contents…” is not recognized as a menu item (must use the more brittle “menu item 1”)
• Don’t know how to navigate the dialog to the desired directory.
• Can’t find how to select all files in the dialog’s current directory.
Any guidance anyone could give would be most welcome ;-)