![]() | InDesign SDK 20.5 |
#include <IScriptFileLocations.h>

Public Types | |
| enum | { kDefaultIID = IID_ISCRIPTFILELOCATIONS } |
Public Member Functions | |
| virtual int32 | GetNumberOfScriptLocations () const =0 |
| virtual PMString | GetNthScriptLocationName (int32 n) const =0 |
| virtual IDFile | GetNthScriptLocation (int32 n, bool16 resolveAlias) const =0 |
| virtual IDFile | GetScriptLocationByName (const PMString &name, bool16 resolveAlias) const =0 |
| virtual void | AddOrReplaceScriptLocationByName (const PMString &name, const IDFile &location)=0 |
| virtual void | RemoveScriptLocationByName (const PMString &name)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
A utility class to access locations for scripts.
| pure virtual |
Add a scripts folder location. If one already exists with the same name, it is updated to the new location.
| name | is the name of the location |
| location | is the folder, which may or may not correspond to an actual folder on disk |
| pure virtual |
Retrieve the nth scripts folder location
| n | is the index of the desired location |
| resolveAlias | if true and the location is an alias, resolves the alias |
| pure virtual |
Retrieve the name of the nth scripts folder location
| n | is the index of the desired location |
| pure virtual |
Retrieve the number of scripts folder locations
| pure virtual |
Retrieve a scripts folder location by name
| name | is the name of the desired location |
| resolveAlias | if true and the location is an alias, resolves the alias |
| pure virtual |
Remove a scripts folder location.
| name | is the name of the location |