Hallo Hans,
Deine Geduld tut gut. Manchmal spare ich an der falschen Stelle, und dann nützt es auch nichts.
Dies ist das komplette Script, in dem ich die o.g. Funktionen getestet habe. Es ist eine Auslagerung aus dem großen XPress->ps->pdf-Script, und dient nur dem Zweck, die fraglichen Funktionen ohne weiteres Brimborium zu klären. Die Pfade habe ich für diesen Forumsbeitrag gekürzt.
---
on run
set distPfad to "Macintosh HDns (Mac OS 9):Adobe Acrobat 4.0:Distiller:Settings:"
set d to distPfad & "Bildschirm(1).joboptions"
set p to distPfad & "Color-Druck.joboptions"
set psFile to "Macintosh HD:Users:goar:Documents:TricAS:ps_Dateien_e:d200d.ps" as alias
set ordPDF to "Macintosh HD:Users:goar:Documents:TricAS:pdf_Dateien_e:" as string -- alternativ 'as alias'
set pdfFile to "Macintosh HD:Users:goar:Documents:TricAS:pdf_Dateien_e:d200d.pdf" as alias -- alternativ 'as string'
set jobOptID to d
tell application "Acrobat™ Distiller™ 4.05"
open psFile destination pdfFile -- Testzeile
end tell
end run
(*
geht:
• open psFile
• open psFile with wait
• open psFile changepassword "Test"
• open psFile changepassword "Test" without changing and selecting
• open psFile changepassword "Test" without changing, selecting and notechanging
• open psFile changepassword "Test" without changing, selecting, notechanging and wait
• open psFile destination pdfFile
–> das geht aber nur, wenn in dem Zielordner bereits eine Datei liegt wie in pdfFile definiert; und pdfFile als alias
geht nicht:
• open psFile destination ordPDF
-> Bad name for file. some object •• der Ablageordner als Pfad ohne Dateiname wird nicht akzeptiert (ordPDF als alias)
-> Can't make some data into the expected type. •• ordPDF als string
• open psFile destination pdfFile -- die in pdfFile definierte Datei gibt es noch nicht, soll ja auch erst so angelegt werden
-> Can't make some data into the expected type. •• pdfFile als string
-> File Macintosh HD:…:pdf_Dateien_e:d200d.pdf wasn't found. •• pdfFile als alias (stimmt, gibts ja gar nicht)
• open psFile joboptions distPfad
-> Can't make some data into the expected type.
• open p
-> Can't make some data into the expected type. •• kann man nachvollziehen
*)
---
Im großen Script werden die Pfade per choose-Befehl und Anhängen (&) von Pfadelementen erzeugt. Aber das scheint mir hier nicht das Problem zu sein, zumal die Rückmeldungen auf dieses Script kamen.