22 March, 2010 (03:01) | AppleScript | By: hubi
Das ist quasi die Vorstufe von dem Automator Skript gewesen... Nutzt sips zum verkleinern der Dateien. Hier also der Code des Skript-Droplets: Code 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 [...]
Tags: AppleScript, pdf, resize, sips | 3 comments
12 March, 2010 (01:16) | scripting | By: hubi
Anstatt die ImageEvents via AppleScript anzusteuern, kann man auch über ein Shell Script (das dürfte vielleicht schneller sein) auch sips (scriptable image processing system) aufrufen. Damit kann man sogar die Auflösung von Grafiken in PDFs verändern: sips -s format pdf -s dpiHeight 72 -s dpiWidth 72 -s formatOptions low /path/to/pdf.pdf --out /path/to/converted/pdf.pdf So ist z.B. [...]
Tags: AppleScript, convert, image, imageevents, pdf, sips | No comments
Letzte Kommentare