I am writing an AppleScript that takes a photo in photoshop, adds a black border and then placing a logo on the border. What I can’t figure out is how to do the logo. There is no applescript command to place another image.
on open potw
tell application "Finder"
set the_desk to folder "Desktop" of (path to current user folder)
set target_folder to the_desk as string
end tell
repeat with thepotw in potw
tell application "Finder"
set the doc_name to name of thepotw
end tell
tell application "Adobe Photoshop CS2"
set ruler units of settings to pixel units
set background color to {class:RGB color, red:0, green:0, blue:0}
set display dialogs to never
open thepotw showing dialogs never
flatten current document
set the target_file to (target_folder & doc_name)
set originalwidth to the width of current document
set originalheight to the height of current document
resize canvas of current document width (originalwidth + 10) height (originalheight + 10)
set smwidth to width of current document
set smheight to height of current document
resize canvas of current document height (smheight + 150) anchor position top center
make new art layer in current document with properties {name:"logolayer", kind:normal}
end tell
end repeat
end open