Skip to main content
Inspiring
May 8, 2024
Answered

Need Help With Droplet Script - Export > Adobe Acrobat (Interactive)

  • May 8, 2024
  • 2 replies
  • 1480 views

Hi been a very very long time since i wrote apple script. I am attempting to write a application/droplet that upon dropping an indesign file:

1. file opens

2. a export is created - specifically Adobe Acrobat (Interactive) without options

3. the result is uploaded to a defined bath

4. file closes

property PDFPresetName : "[Adobe PDF (Interactive)]"

on open droppedItems
	repeat with aFile in droppedItems
		set PDFFilePath to "mypath"
		tell application "Adobe InDesign 2023"
			try
				open aFile
				set PDFPreset to export PDFPresetName
				export front document format PDF type using PDFPreset to PDFFilePath without showing options
				close front document saving no
			end try
		end tell
	end repeat
end open

i know its something simple but i am not seeing it - as i said its been years. thnk you inadvance!

This topic has been closed for replies.
Correct answer rob day

would it be

set PDFFilePath to "server:destination folder:" & baseName & ".pdf"

Yes set a variable for the path to the folder:

 

on open droppedItems
	set fldr to "server:destination folder:"
	repeat with aFile in droppedItems
		tell application id "com.adobe.indesign"
			try
				set d to open aFile
				set n to name of d as string
				set fp to fldr & n
				set PDFFilePath to text 1 thru -6 of fp & ".pdf"
				set view PDF of interactive PDF export preferences to false
				export d format interactive PDF to PDFFilePath
				close d saving no
			end try
		end tell
	end repeat
end open

2 replies

leo.r
Community Expert
Community Expert
May 8, 2024

what error do you get? also, what's your PDFFilePath? if it's HFS then change it to POSIX - InDesign dropped support for HFS paths in 19.4. 

leo.r
Community Expert
Community Expert
May 8, 2024

...plus there's no such preset: "[Adobe PDF (Interactive)]". you need to use "format interactive PDF" instead of "format PDF type" as well as remove "using PDFPreset" (as interactive PDF export doesn't have any presets).

Inspiring
May 8, 2024

3. the result is uploaded to a defined path - NOT bath lol