我需要將幾張圖像分組到一個photoshop文件中,並嘗試尋找更優化的路徑。我知道我可以使用applescript來做這樣的事情。將圖像放入當前打開的Photoshop文檔(applescript)
tell application id "com.adobe.Photoshop"
activate
open file (CurrentImg)
duplicate layer 1 of current document to end of NewDocRef
end tell
-- CurrentImg is some file path and NewDocRef is a path to some other open document
我可以使用open打開每個圖像,並將其移動到一個文檔中。我的問題是,有沒有人有更好的方式將圖像直接放入打開的文檔中。尋找只是拖動一個圖像的效果。我打開有一個JavaScript函數來做到這一點。 (我不知道JavaScript,但我可以設法大部分了解我讀的內容。)
看起來像這樣做,我可以在applescript中做什麼。試圖看看我是否可以避免打開第二個文件。 – 2014-10-06 14:34:42
我認爲鏈接/放置智能對象的選項不會暴露給腳本API。 – fabianmoronzirfas 2014-10-07 09:56:34