# OnGetCopyQueueName

The **OnGetCopyQueueName** event can be implemented by a [script add-in](../../../scripting/script_add-ins) to override the default copy queue behavior when the _Automatically manage file copy queues_ option on the [**Copying Files**](../../../preferences/preferences_categories/file_operations/copying_files) page in Preferences is turned on. The event is passed the default copy queue name along with information relating to the copy operation. It can accept the default queue name, provide its own or disable queuing and run the operation immediately.&#x20;

| **Method Name:**   | OnGetCopyQueueName                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Argument Type:** | [**GetCopyQueueNameData**](../scripting_objects/getcopyqueuenamedata)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Return Type:**   | <p><em>string</em> to provide a new queue name.<br><strong>False</strong> to accept the default queue name.<br><strong>True</strong> to bypass the queue and run the copy immediately.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **Description:**   | <p>The <strong>GetCopyQueueNameData.sourcetab</strong> and <strong>desttab</strong> properties identify the <a href="../scripting_objects/tab"><strong>Tab</strong></a> objects involved in the copy operation, and the <strong>source</strong> and <strong>dest</strong> properties provide the source and destination <a href="../scripting_objects/path"><strong>Path</strong></a> objects.<br>The <strong>source_drives</strong> and <strong>dest_drives</strong> properties return a string consisting of <strong>0</strong> and <strong>1</strong> characters, indicating which physical drives are involved in the operation. For example, if drive A: was involved, the first character would be a <strong>1</strong>, otherwise it would be a <strong>0</strong>; if drive B: was involved, the second character would be a <strong>1</strong>, and so on.<br>The <strong>name</strong> property indicates the default copy queue name, and <strong>move</strong> is <strong>True</strong> if the operation is a <strong>move</strong> rather than a copy.<br>You can accept the default name by returning <strong>False</strong>, or return the a new queue name to use. If you return <strong>True</strong> the queue will be bypassed.</p> |
