Last active
April 1, 2018 14:34
-
-
Save youandhubris/8ac5730da2b9f06d0a2aeabac4853ef5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Photoshop Print | |
tell application "Adobe Photoshop CC 2018" | |
open file "somePath" | |
print document 1 | |
delay 3 | |
close document 1 | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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