
Archive By Date
Each time a new job arrives, the current date is added to the hierarchy information of a file. This allows you to create a folder structure per year, month or day using the Archive hierarchy tool.
Information
Supported by: PowerSWITCH (MAC and WIN)
Language: JavaScript
Description:
Each time a new job arrives; the script gets the current date from the system and is stored in a string. Depending on what you selected in your flow for this script (Year/Month/Day) only the year, month or the complete date will be remembered.
This information is then added to the hierarchy information which enables you to use an archive hierarchy tool to create this folder structure grouping files in subfolder per year, month or day.
Using this script
- Download and save the script on your computer: download script.
- Select the script element in your PowerSWITCH flow and browse to the script in the script package property.
or - Open the script in the SWITCHscripter and change it to your needs.
Example flow
- Archive By Date
This flow uses a script that archives files per day. The Script element allows you to change this to "per year" or "per month".
