ファイルから直接コピーする必要がある場合、それはもっと複雑で、別のアプリケーション(プレビュー)を開いてプレビューからコピーする必要があります。これは役に立ちます:
set this_picture to choose file
tell application "Preview"
activate
open this_picture
end tell
tell application "System Events"
tell process "Preview"
keystroke "a" using command down
keystroke "c" using command down
end tell
end tell
tell application "Preview" to quit
画像を要求し、プレビューを開き、すべての画像を選択してコピーして終了します。その後、フォトショップに貼り付ける
:
tell application "Adobe Photoshop CS5"
activate
end tell
tell application "System Events"
tell process "Adobe Photoshop CS5"
set newLayer to make art layer with properties {name:"LayerA"}
keystroke "v" using command down
end tell
end tell
そして、それは基本的にはこれだけです!何らかの形で助けてくれることを願っています。
ありがとうございます! Photoshopで開いたドキュメントの間にレイヤーをコピーする方法はありますか?再度、感謝します。 – sumderungHAY