# Viewer Select - Make file display track standalone viewer

**URL:** <https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320>\
**Category:** Buttons/Scripts\
**Tags:** script, viewer, jscript, events\
**Created:** [September 6, 2016, 3:45pm UTC](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320 "2016-09-06T15:45:36Z")\
**Posts on this page:** 7\
**Page:** 3

<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:** [November 20, 2020, 2:33pm UTC](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320/43 "2020-11-20T14:33:08Z")

</div>

> [@Felix.Froemel](#):
>
> However, the toggle button only shows its new toggle state (changing the background color) **AFTER** changing the file in the viewer. The code is from the docs and i dont know if this behaviour is intended or a bug. @Leo do you have ideas on this? Also the `@toggle:update` does not help here.

`@toggle:update` wasn't hooked up for viewer toolbars, but we've changed that in the next beta.

---

<div class="post-metadata">

**Author:** ![Felix.Froemel](https://resource.dopus.com/user_avatar/resource.dopus.com/felix.froemel/32/68705_2.png) [@Felix.Froemel](https://resource.dopus.com/u/Felix.Froemel)\
**Post date:** [November 20, 2020, 3:30pm UTC](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320/44 "2020-11-20T15:30:18Z")

</div>

Actually i never tried it with checkbox mode (i dont use that mode). It seems to be working with checkboxmode for me aswell, give it a try.

---

<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:** [November 20, 2020, 10:49pm UTC](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320/45 "2020-11-20T22:49:15Z")

</div>

> [@GQJ17](#):
>
> I would like to use selection mode to pick the file that displays in the viewer, and checkbox mode to "mark" it. Only difference being that I can skim through the thumbnails in DO.

We'll add a way to do this in the next beta. Remind me to update the script if I haven't by the time the beta is released. (I already have the update written, but it doesn't make sense to put it up yet.)

> [@sfuller](#):
>
> I'd like a toggle in viewer preferences "Keep viewer in sync with the launching lister".

We'll also add a better way to do this, for scripts in general, without needing to edit the script code or create variables to toggle things. (I'll add the details to the root post once the beta is released.)

---

<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:** [December 4, 2020, 12:04pm UTC](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320/46 "2020-12-04T12:04:57Z")

</div>

Now that [Directory Opus 12.22.3 (Beta)](https://resource.dopus.com/t/directory-opus-12-22-3-beta/37297/1) is released, I've updated the root post:

- New script version which handles checkbox mode better. (Moves the _selection_ and leaves the checkboxes alone.)

- Added a section on how to make a toolbar button which toggles the script, using the new command for doing so.

---

<div class="post-metadata">

**Author:** ![sfuller](https://resource.dopus.com/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sfuller](https://resource.dopus.com/u/sfuller)\
**Post date:** [December 4, 2020, 9:21pm UTC](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320/47 "2020-12-04T21:21:12Z")

</div>

It works perfectly. Scrollable documentation in the viewer window while manipulating files in another tab.

---

<div class="post-metadata">

**Author:** ![Jonath198](https://resource.dopus.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@Jonath198](https://resource.dopus.com/u/Jonath198)\
**Post date:** [May 19, 2021, 1:46am UTC](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320/48 "2021-05-19T01:46:50Z")

</div>

The script seems to work well, but I'm having constant script errors all of the sudden:

```auto
2021-05-17 3:58 PM Viewer Select: Error at line 92, position 5
2021-05-17 3:58 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-17 8:12 PM Viewer Select: Error at line 92, position 5
2021-05-17 8:12 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-17 8:13 PM Viewer Select: Error at line 92, position 5
2021-05-17 8:13 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-17 8:16 PM Viewer Select: Error at line 92, position 5
2021-05-17 8:16 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-17 8:50 PM Viewer Select: Error at line 96, position 2
2021-05-17 8:50 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-17 9:26 PM Viewer Select: Error at line 96, position 2
2021-05-17 9:26 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-17 9:26 PM Viewer Select: Error at line 96, position 2
2021-05-17 9:26 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:22 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:22 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:25 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:25 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:26 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:26 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:26 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:26 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:26 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:26 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:32 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:32 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:34 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:34 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:34 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:34 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:44 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:44 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 6:54 PM Viewer Select: Error at line 96, position 2
2021-05-18 6:54 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 7:08 PM Viewer Select: Error at line 96, position 2
2021-05-18 7:08 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 7:12 PM Viewer Select: Error at line 96, position 2
2021-05-18 7:12 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 7:12 PM Viewer Select: Error at line 96, position 2
2021-05-18 7:12 PM Viewer Select: Invalid procedure call or argument (0x800a0005)
2021-05-18 7:12 PM Viewer Select: Error at line 96, position 2
2021-05-18 7:12 PM Viewer Select: Invalid procedure call or argument (0x800a0005)

```

---

<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:** [May 19, 2021, 1:58am UTC](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320/49 "2021-05-19T01:58:14Z")

</div>

When do the errors happen? Which folders or files trigger them?

[Previous page](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320.md?page=2)
