graphic:javascript:photoshop

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
graphic:javascript:photoshop [2021/08/22 19:48] – created yinggraphic:javascript:photoshop [2022/01/20 09:51] – [Conclusion] ying
Line 1: Line 1:
 +====== Javascript Version and Compatibility ======
 +
 +  * JS ES3 (1999): photoshop js based on.
 +  * JS ES4
 +  * JS ES5: .trim()
 +  * JS ES6 (2015): let const, arrow
 +  * JS 2016: array.includes()
 +  * JS 2017: string padding
 +  * JS 2018: 
 +
 +  * note
 +    * function with default parameter: <code javascript>
 +function hex2rgb(hex, asList) {
 +    asList = asList || 0; // default not as list but as dict
 +}
 +</code>
 +      * ref: https://code.tutsplus.com/tutorials/how-to-use-optional-function-parameters-in-javascript--cms-37376
 +    * startswith support
 +    * check JS version: $.about()
 +
 +  * 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 868: Line 892:
  
   * 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