Brackets to Photoshop (Brackets Extension)

Upload Photoshop Scripts, download Photoshop Scripts, Discussion and Support of Photoshop Scripts

Moderators: Tom, Kukurykus

JavierAroche
Posts: 29
Joined: Sat Jul 30, 2016 3:52 am
Location: San Francisco

Brackets to Photoshop (Brackets Extension)

Post by JavierAroche »

Hey everyone,

I made a little Brackets extension called Brackets to Photoshop that executes a JSX file in Photoshop using the osa module (osascript).

It uses Photoshop's AppleScript API, so it only works on MacOS. You can find instructions in the repo.
https://github.com/JavierAroche/brackets-to-photoshop

It's compatible with these versions of Photoshop
Adobe Photoshop CC 2015.5
Adobe Photoshop CC 2015
Adobe Photoshop CC 2014
Adobe Photoshop CS6

Davide Barranca has a similar tool for Sublime, so 2 of the best text editors are covered! :D
http://www.davidebarranca.com/2013/05/s ... d-package/

Hope it's useful for someone!
User avatar
AntonioGomez
Posts: 8
Joined: Fri Jul 29, 2016 7:05 am
Location: San Jose, CA

Re: Brackets to Photoshop (Brackets Extension)

Post by AntonioGomez »

Cool 8-)
JavierAroche
Posts: 29
Joined: Sat Jul 30, 2016 3:52 am
Location: San Francisco

Re: Brackets to Photoshop (Brackets Extension)

Post by JavierAroche »

Hey guys,

I just updated my brackets-to-photoshop extension.
https://github.com/JavierAroche/brackets-to-photoshop

I included a good amount of features, I hope you find them useful when scripting for Adobe applications. The idea is to completely replace the ExtendScript Toolkit app, which is really buggy.

Here are some feature I added

* Added compatibility with multiple Adobe programs and versions
* Replaced osa module with node's exec
* Added maxBuffer to support strings up to 50mbs
* Included JSON and Array polyfill to use functions such as JSON.stringify, JSON.parse and Array.forEach
* Included console constructor to log information to console after the script is done executing
* Added ability to $.write and $.writeln to the console
* Include external files in your JSX script when document is saved
* Ability to select output in Brackets console
* Added execution time
* Cleaned up the console HTML / CSS


### Console Features

JSON polyfill included to use the following functions:
- JSON.stringify
- JSON.parse
- Array.forEach

Array polyfill included to use the following functions:
- Array.forEach

Added ability to log information to the console and use functions such as:
- console.log
- console.error
- console.info
- console.stringify (Logs to the console using JSON.stringify)
- $.write
- $.writeln


Target different programs by using #target photoshop / illustrator / aftereffects / indesign / bridge
Target different program versions by using #target photoshop-100 / photoshop-90, etc...

Hope you find it useful! Would love some feedback.

Happy scripting :)
Last edited by JavierAroche on Wed Nov 16, 2016 10:22 pm, edited 1 time in total.
User avatar
AntonioGomez
Posts: 8
Joined: Fri Jul 29, 2016 7:05 am
Location: San Jose, CA

Re: Brackets to Photoshop (Brackets Extension)

Post by AntonioGomez »

Cool 8-)