- Registriert
- 29.07.10
- Beiträge
- 18
Hallo zusammen!
mich plagt mal wieder ein kleines, sicher auch superschnell gelöstes, Problem. Ich soll für eine Kollegin ein Script schreiben, das PDF-Dateien in Photoshop öffnet, diesem Dokument dann ein ICC-Profil zuweist und das ganze dann als tiff speichert.
Soweit alles kein Problem, nur die Sache mit dem "Profil zuweisen" macht mich wahnsinnig. Ich finde einfach nicht den Befehl dafür. "In Profil konvertieren" wäre kein Problem, es soll aber das Profil explizit nur zugewiesen werden.
Hat evtl. jemand den Befehl parat? damit wäre mir sehr geholfen.
Hier noch mein Script bisher:
Vielen Dank schonmal!
Grüße
Patzi
mich plagt mal wieder ein kleines, sicher auch superschnell gelöstes, Problem. Ich soll für eine Kollegin ein Script schreiben, das PDF-Dateien in Photoshop öffnet, diesem Dokument dann ein ICC-Profil zuweist und das ganze dann als tiff speichert.
Soweit alles kein Problem, nur die Sache mit dem "Profil zuweisen" macht mich wahnsinnig. Ich finde einfach nicht den Befehl dafür. "In Profil konvertieren" wäre kein Problem, es soll aber das Profil explizit nur zugewiesen werden.
Hat evtl. jemand den Befehl parat? damit wäre mir sehr geholfen.
Hier noch mein Script bisher:
Code:
on open {input}
tell application "Finder" to set theFiles to document files of input whose name extension is in {"pdf", "PDF"}
repeat with oneFile in theFiles
tell application "Adobe Photoshop CS4"
open (oneFile as alias) with options {class:PDF open options, crop page:bounding box, mode:CMYK, page:1, resolution:300, use antialias:true, bits per channel:eight, suppress warnings:true}
activate
--hier sollte noch der befehl "Profil zuweisen" hin.
save document 1 in input as TIFF with options {byte order:IBM PC, embed color profile:true, image compression:LZW, save alpha channels:false, save annotations:false, save image pyramid:false, save layers:false, save spot colors:false, transparency:true}
close document 1 saving no
end tell
end repeat
tell application "Finder"
make new folder in input with properties {name:"TIFFs"}
set tiffls to (document files of input whose name extension is in {"tif", "tiff"})
move tiffls to folder "TIFFs" of input
end tell
return input
end open
Vielen Dank schonmal!
Grüße
Patzi