set thepath to (full name of document 1) as string
In the ExportSinglePdfs script, there is a line that grabs the path with this line:
set thepath to (full name of document 1) as string
Later in the applescript, it makes single pdfs and saves/names them with this:
export document 1 to file (thepath & "-" & i & ".pdf") format PDF type using PDF export preset thePreset without showing options
The pdfs are made in the same parent folder as the Indesign document.
My issue is that our job folder structure has another sub-folder called "PDF XMF" which would be a better place for them so they don't have to be moved later. It's not a big issue.
I was trying to rebuild the path but had no luck using other variable like these:
set myDocument to (active document)
set myDocumentname to (name of myDocument)
set thepath to (file path of document 1) as string
set thepath to thepath & "PDF XMF" & (document title of document 1)
Anyone know how to edit thePath to use a subfolder named "PDF XMF"?