> For the complete documentation index, see [llms.txt](https://help.pixfizz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pixfizz.com/api-and-integrations/syncovery/dpof-profile-setup.md). Agents can also search and read this documentation through its [MCP server](https://help.pixfizz.com/~gitbook/mcp).

# DPOF Profile Setup

Create a new Profile

Add a Provile Name

For the "Left Hand Side" select the folder where the DPOF Order folders are located. This will probably be in the Artwork Folder

For the Right Hand Side select the hotfolder where your Lab Printer Software is reciving the orders

Make sure Copying Directions Left to Right is selected

Select "Move Files to Destination"

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FneK4TbJHHPs2i9WJpAit%2Fimage.png?alt=media&amp;token=a2fee958-e1e6-4ab6-ad4c-6ba8773a6565" alt=""><figcaption></figcaption></figure>

Next Select "Files" from Advanced Settings - see below

Untick "Detect Moved Files and Renamed Folders...."

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FrgYE75dIAj2J12p5Wp3I%2Fimage.png?alt=media&amp;token=8f242391-1167-43a1-a945-21e513e8ae0d" alt=""><figcaption></figcaption></figure>

Again from Advanced Setting - Select "Folders"

Untick "Remove Folders That Were Emptied"

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FJBhswb9ZqicSBzJUCsn2%2Fimage.png?alt=media&amp;token=a7173362-7f0e-4d6a-a8cf-79cb751f6bb8" alt=""><figcaption></figcaption></figure>

Remaining on "Advanced Settings" - Select "Job"

Tick "PascalScript"

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FOxVEZnBJ1H3jXM20CwXh%2Fimage.png?alt=media&amp;token=f5510e2a-13a9-4807-bbc6-67828612da13" alt=""><figcaption></figcaption></figure>

A Pop Up box will appear

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FBYRoAW3ncEu6N0JlXH3O%2Fimage.png?alt=media&amp;token=9abc4b04-5c8c-413e-bb54-0028840d7fa9" alt=""><figcaption></figcaption></figure>

Copy and Paste the following Script

```
function OnBeforeFileCopy(const DirectionIsL2R:Boolean;
        var Source,Dest,DestPath,LeftSubPath,RightSubPath:UnicodeString):Boolean;
var NewDestPath,NewDest,NewRightSubPath:UnicodeString;
    p:Integer;
begin
  Result:=true;
  if not DirectionIsL2R or (RightSubPath='') then
     Exit;

  if RightSubPath[1]<>RightDelim then
     RightSubPath:=RightDelim+RightSubPath;

  if Length(RightSubPath)<2 then
     Exit;

  if RightSubPath[2]=RightDelim then // sanity check
     Exit;

  p:=2;
  while RightSubPath[p]<>RightDelim do begin
     Inc(p);
     if p>Length(RightSubPath) then
        break;
     end;

  if p>Length(RightSubPath) then
     NewRightSubPath:=''
  else begin
    // now p points to the second PathDelim
    // and we want to remove the subfolder before it

    NewRightSubPath:=Copy(RightSubPath,p,Length(RightSubPath)-p+1);
    end;

  Log('Making NewDestPath');
  NewDestPath:=ConcatPathWithDelim(RightBasePath,NewRightSubPath,RightDelim);
  Log('Making NewDest');
  NewDest:=ConcatPathWithDelim(NewDestPath,ExtractFileName(Dest),RightDelim);

  if not MakeSurePathExists(NewDestPath,true) then begin
     Log('Could not create '+NewDestPath);
     Exit;
     end;

  Log('OnBeforeFileCopy');
  Log('Source:'+Source);
  Log('DestPath:'+DestPath+' changed to '+NewDestPath);
  Log('Dest:'+Dest+' changed to '+NewDest);
  Log('LeftSubPath:'+LeftSubPath);
  Log('RightSubPath:'+RightSubPath+' changed to '+NewRightSubPath);
  Log('');

  Dest:=NewDest;
  DestPath:=NewDestPath;
  RightSubPath:=NewRightSubPath;
  end;

function OnBeforeFolderCreate(const DirectionIsL2R:Boolean;
                              var Source,Dest,Reason:UnicodeString):Boolean;
begin
  Reason:='no need to create folders separately';
  Result:=false;
  end;

```

Click on OK

Finally Set this profile to run on a schedule

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FJsYKR6nvXxgP5WQyOd4M%2Fimage.png?alt=media&amp;token=081c19ae-258c-4513-9fd2-9b7c32279bca" alt=""><figcaption></figcaption></figure>

Click on OK

Make sure the Profile is set to Run

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FrzxrOWb2yc4H4HTthEB4%2Fimage.png?alt=media&amp;token=409ed57f-3e16-48a5-b2de-779574864c60" alt=""><figcaption></figcaption></figure>
