Re: Scripting an Insert File Contents operation

2023-11-20 Thread Roland Küffner
I don't know all your premises, but if you can live without Applescript, why not simply use Text > Run Unix Command… with this: cd /path/to/folder; cat *.txt You could even just write cd and drag your folder from the Finder into the Shell Worksheet (while holding cmd). BBEdit will insert the

Scripting an Insert File Contents operation

2023-11-09 Thread PDeL
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