• Apfeltalk ändert einen Teil seiner Allgemeinen Geschäftsbedingungen (AGB), das Löschen von Useraccounts betreffend.
    Näheres könnt Ihr hier nachlesen: AGB-Änderung
  • Was gibt es Schöneres als den Mai draußen in der Natur mit allen Sinnen zu genießen? Lasst uns teilhaben an Euren Erlebnissen und macht mit beim Thema des Monats Da blüht uns was! ---> Klick

Photoshop-Befehl "Profil zuweisen" via applescript

HFPatzi

Jonagold
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:


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
 

-hans-

Jamba
Registriert
02.09.10
Beiträge
56
Nun,

in cs2 geht
... set color profile name of document 1 to "ISO Coated" ... zum Bleistift

Tschöle

Hans
 

HFPatzi

Jonagold
Registriert
29.07.10
Beiträge
18
Guten Morgen Hans,

super, funktioniert 1A.
Vielen Dank für die Hilfe!

Grüße
Patzi