Skip to content

Batch+ Save PDF Macro #143

@millenium-codebug

Description

@millenium-codebug

Hi you project is awesome, I tried to use it with PDM but I saw #111 and i bypassed the issue downloading all PDM files locally.
I think that an if for file exist check will "workaround" the problem.

foreach (var input in inputs)
{
if (Directory.Exists(input))
{
foreach (var file in Directory.EnumerateFiles(input, "*.*", SearchOption.AllDirectories))
{
if (TextUtils.MatchesAnyFilter(file, filters))
{
if (!m_AppProvider.Descriptor.IsSystemFile(file))
{
if (!inputFiles.Contains(input, StringComparer.CurrentCultureIgnoreCase))
{
inputFiles.Add(file);
}
}
else
{
m_JournalWriter.WriteLine($"Skipping file '{file}'");
}
}
}
}
else if (File.Exists(input))
{
if (!inputFiles.Contains(input, StringComparer.CurrentCultureIgnoreCase))
{
inputFiles.Add(input);
}
}
else
{
throw new UserException($"Input '{input}' does not exist");

On the other hand I'm using Batch+ instead of Export+ because of #15, but I'm getting Error '91': Object variable or With block variable not set on my macro when i try to run the a job.

Can you help me? Do I need to buy Standard Edition to fix the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions