Einstellungsebenen in Photoshop per Applescript erstellen ?

C

Candyman85

Mitglied
Thread Starter
Dabei seit
30.01.2020
Beiträge
5
Reaktionspunkte
0
Hallo zusammen ;)

ich bin leider, in der Vergangenheit, nicht fähig gewesen heraus zu finden wie man per Applescript in Photoshop eine neue Einstellungsebene erstellt. Das was ich weis das es kein problem ist eine text oder pixel ebene zu erstellen :

tell application "Adobe Photoshop CC 2018"
set currentDoc to current document
set testLayer to make new art layer in currentDoc with properties {kind:text layer}
end tell

Sobald ich den kind zu z.B. "solid fill layer" ändere bekomme ich eine Fehler Meldung :

„Adobe Photoshop CC 2018“ hat einen Fehler erhalten: „current document“ kann nicht gelesen werden.

Kenn irgendwer einen workaround oder sieht den Fehler.

Vielen Dank im voraus ;)
 
Danke für die Schnelle Antwort, leider bin ich dort auch nicht fündig geworden.
 
dort steht als Beispiel:
set theDocRef to the current document

probiers doch mal mit "the"
 
dort steht als Beispiel:
set theDocRef to the current document

probiers doch mal mit "the"


das funktioniert auch ohne das problem liegt bei "with properties {kind:text layer}" . Sobald das kein text layer mehr ist sondern eine einstellungsebene, also z.B. {kind:gradient fill}, dann bekomme ich eine Fehler Meldung
 
was ich noch gesehen habe was ich allerdings nicht ganz verstehen zumindest wie man es anwendet sind "events id" da gibt es eine id für "gradient fill"

tell application "Adobe Photoshop CC 2018"


set test_ID to "GrMp" as string

set newGR to (make new event test_ID)

end tell

das funzt aber leider auch nicht
 
so geht das auch nicht :

tell application "Adobe Photoshop CC 2018"

activate


set theDocRef to the current document


set theTextLayer to make new art layer in theDocRef with properties {kind:solid fill layer}



end tell
 
Zurück
Oben Unten