What sort of files is your "directory of styles"? It doesn't sound like a common InDesign thing.
it's a jsx file setting up a common object with paragraph styles / character styles etc. eval seems to have done the trick, though i'm getting a rather bizarre error at some point in the main script now:
Cannot execute script in target engine 'main'!
(#8) Syntax error
google throws up a blank for the first line. really?
1 person found this helpful
You can't use #include, but you can use $.evalFile() which will accomplish the same thing...
thanks, and as for the error above, i've just learned the importance of try / catch in indesign! somewhere in the script i was trying to import an object that wasn't there...
try/catch is a double-edged sword. It can hide potential problems and adversely affect performance. Use with care...