- Registriert
- 27.02.13
- Beiträge
- 384
Servus,
ich habe mit dem Automator eine Schnellaktion erstellt, die im Finder (rechtsklick, Schnellaktionen) einzelne Word docx in pdf umwandelt.
(Oder: meine uralt Aktion mit Fragen an ChatGPT repariert)

macOS 15.5
Word ist ein Microsoft 356 Abo mit Version 16.98
Vielleicht hilfts jemanden.
ich habe mit dem Automator eine Schnellaktion erstellt, die im Finder (rechtsklick, Schnellaktionen) einzelne Word docx in pdf umwandelt.
(Oder: meine uralt Aktion mit Fragen an ChatGPT repariert)

Code:
on run {input, parameters}
tell application id "com.microsoft.Word"
activate
repeat with aFile in input
open aFile
set docPath to (aFile as text)
-- Erzeuge Pfad für PDF-Datei
set pdfPath to (characters 1 thru ((length of docPath) - 5) of docPath) as string
set pdfPath to pdfPath & ".pdf"
-- Speichern als PDF
tell active document
save as it file name pdfPath file format format PDF
close saving no
end tell
end repeat
end tell
end run
macOS 15.5
Word ist ein Microsoft 356 Abo mit Version 16.98
Vielleicht hilfts jemanden.

