Directory Browse Action

image\Action_File_Directory_Browse.jpg

The Directory Browse action allows your publication to open the standard Windows Directory dialog box on the screen. The user can locate any folder on their system, when they click on the OK button in the Directory dialog box, Opus will save the pathname to the folder in a variable you specify in this action.

Note:
This action simply copies the pathname of the folder to a specified Opus variable. You can then use this information to perform a number of operations within Opus, for example, you could copy files into the folder using the Copy File action.

Setting up the Directory Browse action:

1. Add the Directory Browse action to your trigger, as described in adding actions. The Directory Browse tab will automatically appear when you add the action.

2. Use the Description box to type a description that will appear inside the Windows Directory dialog. The description should explain to the user why they need to locate a folder (e.g. Find the folder in which you want to save your files).

3. Alternatively, you can use the Insert Variable button to add one of the variables in your current publication to the Description field. The contents of the variable will be displayed in the Windows Directory dialog when the publication is run.

Note:
This option is useful when you intend to show the Windows Directory dialog for a variety of tasks in your publication because the same action can be triggered repeatedly but the description can be different every time.

If you have not created the variable yet, click on the New Variable button instead – this will open the Insert New Variable dialog.

4. Use the Store result in variable option to save the pathname of the folder the user selected when the Windows Directory dialog appeared in the publication. Click on the down arrow to the right of the box to list all of the variables currently used in your publication. Alternatively, click on the New Variable button if you have not created the variable yet – this will open the Insert New Variable dialog.

5. Click on the Apply button to save your changes.

Related Topics:

Introducing the File Management Actions

Choosing an Action