Build 359 - relative folder path macro

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Build 359 - relative folder path macro

Post by chrisjj »

%[FolderName] (despite its name) inserts the full path of the document. Is there any way to insert the right path part that's relative to the root folder given to Choose Input Files? E.g. myfolder when I gave C:\myproject\ containing myfolder.

Using %[FolderName] undesirably exposes the project location in the output.

Thanks.
Last edited by chrisjj on Mon Sep 26, 2022 7:25 pm, edited 1 time in total.
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path

Post by chrisjj »

Clunky partial workaround: Import instead from a drive created with SUBST to hide the project path, giving e.g. T:\myfolder.

My, what would we do without 20thC relic tech to help us out? :)
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8439
Joined: Wed Jan 03, 2018 6:52 pm

Re: Build 359 - relative folder path

Post by TrackerSupp-Daniel »

Hello, chrisjj

The %[FolderTitle] macro is the item you are looking for. This adds only the folder that the file is in, not the full path to it.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path

Post by chrisjj »

Thanks but I need not just the folder name, but relative folder path entire. i.e. myfolder1\subfolder, myfolder2\subfolder, etc.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8439
Joined: Wed Jan 03, 2018 6:52 pm

Re: Build 359 - relative folder path

Post by TrackerSupp-Daniel »

Hello, chrisjj

In that case, I am afraid you will need to manually enter the desired path.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path

Post by chrisjj »

> In that case, I am afraid you will need to manually enter the desired path.

How? I have %[FolderName] in the footer of a Merge Documents tool and obviously its value varies with input doc.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8439
Joined: Wed Jan 03, 2018 6:52 pm

Re: Build 359 - relative folder path

Post by TrackerSupp-Daniel »

Hello, chrisjj

As you yourself said, the foldername only navigates to the current folder. You have explicitly said you want to save the files to the folder containing the current folder (IE drill up one step), beside the input folder, not within it.

This is not possible to do automatically at this time, and as such, if you wish to save to a location outside of the current folder, you would need to either manually choose where to save each file as this processes. Or manually enter the desired location so that Tools can save the processed items to the desired location all at once.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path

Post by chrisjj »

> As you yourself said, the foldername only navigates to the current folder. You have explicitly said you want to save the files to the folder containing the current folder (IE drill up one step), beside the input folder, not within it.

That's a different issue. I've expanded this issue's Subject to help distinguish.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8439
Joined: Wed Jan 03, 2018 6:52 pm

Re: Build 359 - relative folder path macro

Post by TrackerSupp-Daniel »

Hello, chrisjj

In that case I am not sure what to offer here, the Foldername macro should be perfectly capable of offering this, simply place it as the first item in the filename field of the save step, where you place macros normally, Tools should then save to that folder.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path macro

Post by chrisjj »

> the Foldername macro should be perfectly capable of offering this

Then it is not working as designed.

>, simply place it as the first item in the filename field of the save step, where you place macros normally, Tools should then save to that folder.

Again, that's a different issue - in a separate thread.

As I said here: "I have %[FolderName] in the footer of a Merge Documents tool and obviously its value varies with input doc."
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Build 359 - relative folder path macro

Post by Tracker Supp-Stefan »

Hello chrisjj,

If you need to include the path to a file after it's merged - then do a save operation in PDF Tools, and then open the now saved in the desired folder document, and add the footer with the right macro.

Kind regards,
Stefan
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path macro

Post by chrisjj »

That doesn't work, because I said, "obviously its value varies with input doc."

To clarify. My tool:

1 Opens many source docs
2 Adds a footer containing the source path
3 Merges.

I want the footer to show the path within the source doc set i.e. as I said, relative to the root folder given to Choose Input Files.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Build 359 - relative folder path macro

Post by Tracker Supp-Stefan »

Hello chrisjj,

So you want to add each of the input files their own respective current path as a footer, and then merge them?
You will really just need to reorder the steps your PDF Tool routine is performing and execute that and should be able to achieve the desired output. Unless I am completely not understanding the issue - in which case - can I please ask for a sample of what you want to achieve including the names and paths of the input files, and the desired information written in the output, as well as a description of what you do manage to get using the currently available macros?

Kind regards,
Stefan
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path macro

Post by chrisjj »

> So you want to add each of the input files their own respective current path as a footer, and then merge them?

Yes.

> You will really just need to reorder the steps your PDF Tool routine is performing and execute that and should be able to achieve the desired output.

Great. What macro should I put in the footer, given that neither FolderTItle nor FolderName does this?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Build 359 - relative folder path macro

Post by Tracker Supp-Stefan »

Hello chrisjj,

Can you please check my question in the above post? I am really not 100% sure I am understanding your desired end result, that is why I am asking for a sample from your end which will allow me to understand the current and desired outputs, and then I will see if this can be achieved with the macros already available.

Kind regards,
Stefan
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path macro

Post by chrisjj »

Current: none.

Desired: Each page merged from e.g. C:\myproject\myfolder\mysubfolder\mydoc.pdf has a footer saying "myfolder\mysubfolder\mydoc.pdf".
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8439
Joined: Wed Jan 03, 2018 6:52 pm

Re: Build 359 - relative folder path macro

Post by TrackerSupp-Daniel »

Hello, chrisjj

That will not be possible, we do not have a reliable way to detect at what point you want to start presenting a "relative" path. Earlier on you complain that it "undesirably exposes the project location". Our software would have no reliable way to know what is desirable and what the minimum is to remain useful. It is simply not something that we could assume programmatically, and thus not something we currently offer.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path macro

Post by chrisjj »

> That will not be possible

OK, thanks.

> we do not have a reliable way to detect at what point you want to start presenting a "relative" path.

As I said, "relative to the root folder given to Choose Input Files".
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8439
Joined: Wed Jan 03, 2018 6:52 pm

Re: Build 359 - relative folder path macro

Post by TrackerSupp-Daniel »

Hello, chrisjj

Thank you for the clarification. We have forwarded the idea to the dev team, and if they accept it, a ticket will be made. until we hear back from them though, I cannot make any promises.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path macro

Post by chrisjj »

Thanks!
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8439
Joined: Wed Jan 03, 2018 6:52 pm

Re: Build 359 - relative folder path macro

Post by TrackerSupp-Daniel »

Hello, chrisjj

Unfortunately, as expected, the dev team have reviewed this and decided that we will not be able to implement something of this ilk for the foreseeable future. My apologies.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
chrisjj
User
Posts: 392
Joined: Mon Aug 02, 2021 3:47 pm

Re: Build 359 - relative folder path macro

Post by chrisjj »

OK. Thanks.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8439
Joined: Wed Jan 03, 2018 6:52 pm

Build 359 - relative folder path macro

Post by TrackerSupp-Daniel »

:)
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply