@AddToFolder (Formula Language)

Adds current document to one folder while removing it from another. NULL string can be substituted for either argument to skip the action.

Note: This @function is new with Release 5.

Syntax

@AddToFolder(foldernameadd ; foldernameremove)

Parameters

foldernameadd

Text. Name of the folder the document will be added to.

foldernameremove

Text. Name of the folder the document will be removed from.

Usage

This formula can be used in toolbar button and agent formulas.

@Command([Folder]; Foldername; MoveOrCopy) works just like @AddToFolder except it moves a document from the current folder.

Examples

  1. This example adds the currently selected document to the folder named Work.
    @AddToFolder("Work";"") 
  2. This example adds the currently selected document to the folder named Work and removes it from the folder named Favorites.
    @AddToFolder("Work";"Favorites")