SpecialFolders

By using the SpecialFolders functions, you can retrieve information about the different folders (directories) used by the application. All of the functions are read-only. They return strings that represent folders in use by the various applications. Depending on the application (e.g. Toon Boom Harmony versus Toon Boom Digital Pro), the same content is stored in a different location.

The following is a list of the SpecialFolders functions:

app
bin
config
etc
htmlHelp
lang
legacyPlugins
library
pdf
platform
plugins
resource
root
temp
userConfig

Example

function specialFolder()

{

print( "Special Folders");

print( "root:: " + Application.specialFolders.root );

print( "config: " + Application.specialFolders.config);

print( "resource: " + Application.specialFolders.resource);

print( "etc: " + Application.specialFolders.etc);

print( "lang: " + Application.specialFolders.lang);

print( "platform " + Application.specialFolders.platform);

print( "app " + Application.specialFolders.app);

print( "bin: " + Application.specialFolders.bin);

print( "library: " + Application.specialFolders.library);

print( "plugins: " + Application.specialFolders.plugins);

print( "temp: " + Application.specialFolders.temp);

print( "userConfig: " + Application.specialFolders.userConfig);

}

Related Topics 

Scripting Reference