to the end of your batch.
How would you know when the batch ends?
Note I don't really have a traditional loop in the code. Instead, the label gets applied to the first open document and then the remaining hidden documents which were selected for the batch. After no more hidden documents are found, then it stops labeling and therefore ends the batch. This was my work around for not being able to have a loop in the code b/c the action wizard sequence makes it difficult to have one.
I need to be able to reset the global variable after the batch ends so any advise would be so appreciated. Some thoughts I had were:
1) Is there a way to identify the last hidden document in the sequence?
2) Is there a way to force the closing of the entire Adobe Acrobat after (1) is identified?
Then I can create an if then statement to do (2) when (1) happens or delete global variable when (1) happens.
1) Only if you know the number of files that are going to be processed in advance.
2) No, but you don't need to. If you know the number of files you can simply delete the global variable when you get to it.
How do I count the number of files the user decides to batch label? This is going to vary so I would need to get the count each time.
Again, using a global variable, but if it varies each time then you'll have the same issue.
My solution of manually resetting the variable at the end of the process is the one only that will work, I think.
So the user would have to manually reset the global variable if they decide to do another batch of labeling without closing the entire Adobe application?