AppleScript: PDFs verkleinern – Droplet
22/03/2010 Das ist quasi die Vorstufe von dem Automator Skript gewesen... Nutzt sips zum verkleinern der Dateien. Hier also der Code des Skript-Droplets:
3 CommentsCode zum markieren einmal anklicken Code im Skript-Editor öffnen
on open these
repeat with this in these
tell application "Finder"
if name of this ends with ".pdf" then
set newname to (characters 1 through -5 of ((name of this) as text)) as text
set newname to newname & "_mail.pdf"
do shell script "sips -s format pdf -s dpiHeight 72 -s dpiWidth 72 -s formatOptions low " & quoted form of POSIX path of this & " " & "--out " & quoted form of POSIX path of ((container of this) as alias) & quoted form of newname
end if
end tell
end repeat
end open
