Search found 29 matches

by JavierAroche
Wed Jan 25, 2017 4:36 am
Forum: Help Me
Topic: Get selected workspace in Photoshop
Replies: 3
Views: 4219

Re: Get selected workspace in Photoshop

Yep that's what I meant when I said you'd have to manually loop through the descriptors in the list :D
by JavierAroche
Tue Jan 24, 2017 7:41 pm
Forum: Help Me
Topic: Get selected workspace in Photoshop
Replies: 3
Views: 4219

Re: Get selected workspace in Photoshop

If you use my descriptor-info module, you can use the example JSX under the "example" folder, and replace the code in that JSX with this: // Include the JSON helper #include "./helpers/JSON.jsx" // Include the descriptor-info module #include "../jsx/descriptor-info.jsx" // ActionDescriptor example v...
by JavierAroche
Sat Jan 14, 2017 7:27 pm
Forum: Photoshop Scripts
Topic: Descriptor-Info
Replies: 3
Views: 8469

Re: Descriptor-Info

Just a little update on this forum. Main discussion has been in the Adobe forum https://forums.adobe.com/thread/2254499 I just realized v1.0.2 of my descriptor-info JSX module. I've simplified the object returned to make it more useable. I've updated the object examples in the README to show the new...
by JavierAroche
Mon Jan 02, 2017 9:34 am
Forum: Help Me
Topic: Restart/reload extension when new document is created or opened
Replies: 1
Views: 2709

Re: Restart/reload extension when new document is created or opened

You should take a look at this photoshop-dom-event npm module by Antonio. It lets you listen to an event and run a callback function when that event is triggered. He even has a CEP panel example. https://github.com/antonio-gomez/photoshop-dom-event • the example above takles the opening of a documen...
by JavierAroche
Sat Dec 31, 2016 10:12 pm
Forum: Help Me
Topic: Viewless document - examples?
Replies: 6
Views: 5222

Re: Viewless document - examples?

Hey Jaroslav, is that document descriptor from opening a viewless document? That object is different from a regular photoshop document. The descriptor-info module should return a similar object like the one below from a regular photoshop document. { "mode": { "stringID": "mode", "charID": "Md ", "id...
by JavierAroche
Sat Dec 31, 2016 5:07 am
Forum: Photoshop Scripts
Topic: charIDToTypeID and stringIDToTypeID
Replies: 9
Views: 12909

Re: charIDToTypeID and stringIDToTypeID

Hey Kukurykus, sorry I haven't been online as much these days '\n"' + chr + '"' + Cool! Yeah adding those quotes will help developers not get frustrated when their charID doesn't work :) The only thing I had to see how works is how to convert chars to strings, and after putting appropiate phrase to ...
by JavierAroche
Sat Dec 31, 2016 4:41 am
Forum: Help Me
Topic: Viewless document - examples?
Replies: 6
Views: 5222

Re: Viewless document - examples?

Hey Jaroslav, This is the first time I hear about viewless documents. I'll have to do some research :) I found this old forum post by xbytor and davide in an archived version of this forum, or something like that. http://psscripts.tbitdesign.com/archive/viewtopic8365.php It sounds like viewless docu...
by JavierAroche
Wed Dec 28, 2016 4:07 am
Forum: Photoshop Scripts
Topic: charIDToTypeID and stringIDToTypeID
Replies: 9
Views: 12909

Re: charIDToTypeID and stringIDToTypeID

Hey Kukurykus, this is pretty interesting! I'm still trying to identify exactly how you get these values :) I've been depending on xbytor's PSConstants, but it's pretty cool that you can get them directly from ExtendScript. Do you know if this script produces the same number of constants as xbytor's...
by JavierAroche
Wed Dec 28, 2016 3:50 am
Forum: Photoshop Scripts
Topic: Descriptor-Info
Replies: 3
Views: 8469

Re: Descriptor-Info

Thanks Kukurykus! Sharing is the only way to learn! :)
by JavierAroche
Sat Dec 24, 2016 6:53 am
Forum: Photoshop Scripts
Topic: Descriptor-Info
Replies: 3
Views: 8469

Descriptor-Info

Hey guys, I wanted to share a little JSX module I made to recursively get all the properties in an ActionDescriptor. It's always been a struggle to read the contents of an Action Descriptor, so I wanted something fast that could give me all this information without having to loop through every prope...