Skip to content

Instantly share code, notes, and snippets.

@youandhubris
Last active April 1, 2018 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youandhubris/8ac5730da2b9f06d0a2aeabac4853ef5 to your computer and use it in GitHub Desktop.
Save youandhubris/8ac5730da2b9f06d0a2aeabac4853ef5 to your computer and use it in GitHub Desktop.
# Photoshop Print
tell application "Adobe Photoshop CC 2018"
open file "somePath"
print document 1
delay 3
close document 1
end tell
# Preview Print With Preset
# Notes
# Print using Preview and by seting the active printer preset to 'printPreset'
tell application "Preview"
set filePath to "somePath"
set printPreset to "somePreset"
activate
print filePath with properties {preset:printPreset} without print dialog
quit
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment