Dataviews scripting error
Hello,
I am taking my first steps in scripting in InDesign and I am faced with a simple issue. I am trying to execute this script from the Scripts Panel in InDesign CC 2021:
var easyCatalogFilePath = "testFile.txt"
Hello,
I am taking my first steps in scripting in InDesign and I am faced with a simple issue. I am trying to execute this script from the Scripts Panel in InDesign CC 2021:
var easyCatalogFilePath = "testFile.txt"
Very interesting! I didn't know that EasyCatalog is scriptable. Do they have some sample scripts? Found them here. I don't have it installed but your very first line makes me embarrassed. From the variable name, I assume, it should be a full path to the file, not the file name. Something like this:
var easyCatalogFilePath = "/C/folder/subFolder/subSubFolder/testFile.txt";
Make sure to check if the file exists and if so go on with your code.
if (File(easyCatalogFilePath).exists) {
// do something
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.