graphic:javascript:photoshop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
graphic:javascript:photoshop [2021/12/11 13:50] – [My Photoshop Script] yinggraphic:javascript:photoshop [2022/11/13 14:58] – [Javascript Version and Compatibility] ying
Line 1: Line 1:
 +====== Enable Javascript in Photoshop 2022 above ======
 +
 +  * to avoid warning pop dialog, you need to create a file at <code>%appdata%\Adobe\Adobe Photoshop 2022\Adobe Photoshop 2022 Settings\PSUserConfig.txt
 +at path:
 +%appdata%\Adobe\Adobe Photoshop 2022\Adobe Photoshop 2022 Settings\
 +</code>
 +  * with content inside PSUserConfig.txt<code>WarnRunningScripts 0</code>
 +
 ====== Javascript Version and Compatibility ====== ====== Javascript Version and Compatibility ======
  
   * JS ES3 (1999): photoshop js based on.   * JS ES3 (1999): photoshop js based on.
   * JS ES4   * JS ES4
-  * JS ES5+  * JS ES5: .trim()
   * JS ES6 (2015): let const, arrow   * JS ES6 (2015): let const, arrow
   * JS 2016: array.includes()   * JS 2016: array.includes()
Line 19: Line 27:
     * check JS version: $.about()     * check JS version: $.about()
  
-  * ref: https://helpx.adobe.com/after-effects/using/legacy-and-extend-script-engine.html+  * ref:  
 +    * https://helpx.adobe.com/after-effects/using/legacy-and-extend-script-engine.html 
 +    * https://www.w3schools.com/js/js_versions.asp
  
 ====== My Photoshop Script ====== ====== My Photoshop Script ======
Line 94: Line 104:
 } }
 </code> </code>
-    * after CS5 <code javascript>activeDocument.guides.add(Direction.VERTICAL, 100); // orientation and offset</code>+    * after CS5 <code javascript>activeDocument.guides.add(Direction.VERTICAL, 100); // orientation and offset 
 +activeDocument.guides.removeAll() 
 +</code>
  
  
Line 890: Line 902:
  
   * so conclusion, if you are not stuck with old technology, and you willing to move to adobe CC version, HTML5 is the way to go for all new techs instead of Python fighting into adobe apps.   * so conclusion, if you are not stuck with old technology, and you willing to move to adobe CC version, HTML5 is the way to go for all new techs instead of Python fighting into adobe apps.
 +
 +Update 2022:
 +  * PS automation tech age:
 +    * oldest: Actions (since v4) - macros by record and playback but no logic and no interface
 +    * older: ExtendScript (AppleScript/VBScript), ScriptUI, C++ 
 +      * jsx - (js v3)
 +    * old: CEP panel (Common Extensibility Platform) https://github.com/Adobe-CEP
 +      * html5
 +    * new and fresh: UXP (Unified Extensibility Platform) for PS 2021+ (v22)
 +      * new js support
 +      * ref: https://medium.com/adobetech/xd-and-creative-cloud-extensibility-faq-e615dd6ecbfe
 +      * https://gregbenzphotography.com/photography-reviews/what-are-uxp-plugins-in-photoshop
 +      * Building Plugins for Adobe Photoshop and XD using UXP: https://www.youtube.com/watch?v=6iFVozCJ1aw
 +      * Rundown of the UXP Announcement at MAX 2020: https://www.youtube.com/watch?v=zAOUBpDjc1Q
 +
 +UXP feature:
 +  * modern JS, new File API
  • graphic/javascript/photoshop.txt
  • Last modified: 2023/03/05 03:02
  • by ying