# How to open multiple files in different tabs?

**URL:** <https://support.doubledogsoftware.com/t/how-to-open-multiple-files-in-different-tabs/840>\
**Category:** FoldingText\
**Created:** [March 18, 2020, 11:20am UTC](https://support.doubledogsoftware.com/t/how-to-open-multiple-files-in-different-tabs/840 "2020-03-18T11:20:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Stankus](https://support.doubledogsoftware.com/letter_avatar_proxy/v4/letter/m/f1d935/32.png) [@Mark\_Stankus](https://support.doubledogsoftware.com/u/Mark_Stankus)\
**Post date:** [March 18, 2020, 11:20am UTC](https://support.doubledogsoftware.com/t/how-to-open-multiple-files-in-different-tabs/840/1 "2020-03-18T11:20:34Z")

</div>

I want to use the command line on my Mac to open several folding text files, one per tab. Is this currently a feature?

Mark

---

<div class="post-metadata">

**Author:** ![jessegrosjean](https://support.doubledogsoftware.com/letter_avatar_proxy/v4/letter/j/c6cbf5/32.png) [@jessegrosjean](https://support.doubledogsoftware.com/u/jessegrosjean)\
**Post date:** [March 18, 2020, 1:39pm UTC](https://support.doubledogsoftware.com/t/how-to-open-multiple-files-in-different-tabs/840/2 "2020-03-18T13:39:08Z")

</div>

There’s nothing that FoldingText does specifically to enable this… FoldingText opts into the tabs UI provided by the macOS cocoa frameworks… but doesn’t add custom behavior that I remember.

So if such a thing is possible in another app (such as TextEdit) then the same approach should work with FoldingText I think. With some work I think you can probably do this with AppleScript along the lines of:

1. [Run AppleScript from the command line](https://osxdaily.com/2016/08/19/run-applescript-command-line-macos-osascript/)

2. And then [merge all window](https://gist.github.com/derickfay/7364223), except remember to target FoldingText app instead of Finder as the example shows

---

<div class="post-metadata">

**Author:** ![Mark\_Stankus](https://support.doubledogsoftware.com/letter_avatar_proxy/v4/letter/m/f1d935/32.png) [@Mark\_Stankus](https://support.doubledogsoftware.com/u/Mark_Stankus)\
**Post date:** [March 18, 2020, 5:46pm UTC](https://support.doubledogsoftware.com/t/how-to-open-multiple-files-in-different-tabs/840/3 "2020-03-18T17:46:10Z")

</div>

Merge all windows! Excellent.
