# Closing the active tab in the destination pane

**URL:** https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741
**Category:** Help & Support
**Created:** [August 16, 2012, 3:44pm UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741 "2012-08-16T15:44:35Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![AKA-Mythos](https://resource.dopus.com/user_avatar/resource.dopus.com/aka-mythos/32/26158_2.png) [@AKA-Mythos](https://resource.dopus.com/u/AKA-Mythos)
#### Post date: [August 16, 2012, 3:44pm UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/1 "2012-08-16T15:44:35Z")

</div>

I tried to create a command to close the active tab in the destination pane.

Unfortunately this one doesn't work as expected ...

Go TABCLOSE OPENINDUAL

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [August 16, 2012, 5:08pm UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/2 "2012-08-16T17:08:19Z")

</div>

Do the docs say openindual works when closing tabs? I'm not at my computer to double-check but I think openindual is only for opening tabs. (Apologies if I am wrong.)

Try this instead:

Set source=toggle  
Go tabclose

---

<div class="post-metadata">

### Author: ![AKA-Mythos](https://resource.dopus.com/user_avatar/resource.dopus.com/aka-mythos/32/26158_2.png) [@AKA-Mythos](https://resource.dopus.com/u/AKA-Mythos)
#### Post date: [August 16, 2012, 6:21pm UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/3 "2012-08-16T18:21:04Z")

</div>

To be honest I was in front of a portable edition without helpfile installed. But I have had in mind that OPENINDUAL works for other commands (e.g. Go UP) also. But it's not mentioned in the help for TABCLOSE (I just had a look).

After I figured out that "Go TABCLOSE OPENINDUAL" doesn't have any effect I tried the following ...

Set source=toggle  
Go TABCLOSE  
Set source=toggle

... but unfortunately the tab of the source pane is closed (as if the toggle command isn't there).

Since there isn't a "CLOSEINDUAL" argument there is no obvious solutions anymore.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [August 16, 2012, 8:19pm UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/4 "2012-08-16T20:19:32Z")

</div>

Here you go:

`dopusrt /acmd Set SOURCE=Toggle
dopusrt /acmd Go TABCLOSE
dopusrt /acmd Set SOURCE=Toggle`

---

<div class="post-metadata">

### Author: ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)
#### Post date: [August 16, 2012, 8:30pm UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/5 "2012-08-16T20:30:40Z")

</div>

Or just click the close button on the tab.

---

<div class="post-metadata">

### Author: ![AKA-Mythos](https://resource.dopus.com/user_avatar/resource.dopus.com/aka-mythos/32/26158_2.png) [@AKA-Mythos](https://resource.dopus.com/u/AKA-Mythos)
#### Post date: [August 21, 2012, 7:20am UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/6 "2012-08-21T07:20:53Z")

</div>

> [@jon](#):
>
> Or just click the close button on the tab.

🙂

It's part of an automatism that depends on a script that needs to create and close a destination tab to work accordingly.

Are there any chances to make the DOpus internal solution working in one of the next betas?

Set source=toggle  
Go TABCLOSE  
Set source=toggle

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [August 21, 2012, 8:47am UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/7 "2012-08-21T08:47:35Z")

</div>

If you're automating something that requires opening and closing tabs, there is probably a better way to do whatever you are doing.

---

<div class="post-metadata">

### Author: ![AKA-Mythos](https://resource.dopus.com/user_avatar/resource.dopus.com/aka-mythos/32/26158_2.png) [@AKA-Mythos](https://resource.dopus.com/u/AKA-Mythos)
#### Post date: [August 21, 2012, 9:02am UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/8 "2012-08-21T09:02:35Z")

</div>

> [@leo](#):
>
> If you're automating something that requires opening and closing tabs, there is probably a better way to do whatever you are doing.

It's part of creating and maintaining virtual file collections. One of these collections is something like a virtual basket having a certain name (e.g. "scratch") to collect several files for later processing (e.g. mailing, packing, etc.). This "scratch" collection resides in the destination pane most times. Thus I have shortcuts to show, clear and clear+close this collection (which tab resides in the destination pane).

Since I often have reusable collections with temporary files that needs to be cleared and closed it would be convenient for me to have a shortcut for that.

That's only one of my simplest use-cases for such a command.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [August 21, 2012, 9:47am UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/9 "2012-08-21T09:47:30Z")

</div>

There's no need to mess around with tabs, or show the collection in a window at all, just to modify a collection.

See the [Scrap Collection toolbar](https://resource.dopus.com/t/scrap-collection-toolbar/6615/1) for examples.

---

<div class="post-metadata">

### Author: ![AKA-Mythos](https://resource.dopus.com/user_avatar/resource.dopus.com/aka-mythos/32/26158_2.png) [@AKA-Mythos](https://resource.dopus.com/u/AKA-Mythos)
#### Post date: [August 21, 2012, 10:38am UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/10 "2012-08-21T10:38:26Z")

</div>

[quote="leo"]There's no need to mess around with tabs, or show the collection in a window at all, just to modify a collection.

See the [Scrap Collection toolbar](https://resource.dopus.com/t/scrap-collection-toolbar/6615/1) for examples.[/quote]

Yes, thanks for the hint.

But I need the collection on the screen (in the destination pane) when collecting files (in the source pane) since the collection is created incrementally/manually.

However, your solution based on dopusrt.exe works fine for me. Thanks again for the quick answer.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [August 22, 2012, 7:02am UTC](https://resource.dopus.com/t/closing-the-active-tab-in-the-destination-pane/13741/11 "2012-08-22T07:02:41Z")

</div>

We've added Go TABCLOSE=dest and some related commands to the forthcoming update.
