Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Browsing all 27456 articles
Browse latest View live

Re: Save As in Parent Directory

Works!   Interesting though....I am opening in .jpg and it does not carry over the .jpg extension when it saves.  Do i need to add extra code to drop the current extension? Last question...I have saved...

View Article


Re: Save As in Parent Directory

To avoid the ExtendScript Toolkit editor opening remove the line $.writeln(parentFolder); $.writeln() writes to the javascript console in the editor and you scirpt opens the editor to complete that...

View Article


Re: Save As in Parent Directory

Perfect!  Many thanks! //Save current file one directory upvar CurrentFolder = activeDocument.path;var parentFolder = decodeURI(activeDocument.path.parent);//$.writeln(parentFolder); var BMPFile = new...

View Article

Is it worth it for me to learn scripting in PS?

I have absolutely NO experience with javascript, and I have failed miserably every time I have attempted to learn. Should I leave Photoshop scripting to the pros? I work in an environment where we are...

View Article

Re: Is it worth it for me to learn scripting in PS?

I think only you can determine if it's worth your time to learn to script Photoshop. It may take some time and effort but I don't think it's beyond most peoples abilities. I think when talking about...

View Article


Re: Is it worth it for me to learn scripting in PS?

Thanks for the reply.   I know PS VERY well, so that is encouraging. Do you know of any resources for getting started for a true beginner like me?    I'd suppose that learning the basics of JS would...

View Article

Re: Is it worth it for me to learn scripting in PS?

I would recommend a course at lynda.com http://www.lynda.com/JavaScript-tutorials/Foundations-of-Programming-F undamentals/83603-2.html It covers basic scripting/programming and uses javascript as the...

View Article

Re: Is it worth it for me to learn scripting in PS?

Like Actions can not record all steps you can do you can do in Photoshop.  Adobe Photoshop DOM does not have methods to use all of Photoshop features. Adobe provides a plug-in names the scriptlistner....

View Article


Re: Is it worth it for me to learn scripting in PS?

The scriptlistener plug-in and Action Manager are things I would list in the 'learn when you need them' category. You will likely need it at some point but wait until then. You can write very...

View Article


Re: Is it worth it for me to learn scripting in PS?

More tips:  Your first set of scripts should not use any UI. ScriptUI has a learning curve that you should put off initially. You can use the File and Folder classes for prompting for files to open or...

View Article

Re: Is it worth it for me to learn scripting in PS?

Yes I agree I only use the ExtendScript Toolkit Object explorer to learn what fields are in objects.  I have trouble using it for debugging because of the way window contents jump about and some of my...

View Article

Re: How to define a certain layer is selected or not?

I'm sorry for longest timeout :-)After I'm started this script in the row "var ref = new ActionReference();" is error -  ActionReference has no a cinstructor. What I can do ?

View Article

How to get event target?

I've registered the following Hide event:  app.notifiers.add("Hd  ", ...file path); Now, how can get object that triggered the event?  [app.active document.activeLayer]  only give me the 'selected'...

View Article


Re: How to define a certain layer is selected or not?

Where are you running the script from? If you are using ESKT make sure Photoshop is the target app or add #target photoshop at the top of the script. As far as I know only Photoshop has an...

View Article

Re: How to get event target?

When notifier calls an event script it passes two arguments. An ActionDescriptor object and the eventID. You have to know how to use Action Manger but you can pull apart the descriptor for any...

View Article


Image may be NSFW.
Clik here to view.

Re: Is it worth it for me to learn scripting in PS?

Mike,   We are using CS5 at work because CS6 and CC have changed the way masks are handled. So older sources of info might pertain.

View Article

Re: How to define a certain layer is selected or not?

Yes ! Thanks !

View Article


Re: Is it worth it for me to learn scripting in PS?

xbytor2,   I use BBedit when I code HTML/CSS. I'm fairly sure that it also has Javascript tools. Would this be a good tool to use to create/edit JS?  Thanks

View Article

Re: How to get event target?

Something like this try {    if (arguments.length >= 2) {        var desc = arguments[0];        var event = arguments[1];        // make sure it's the hide event        if (event ==...

View Article

Re: Is it worth it for me to learn scripting in PS?

With CS5 the javascript ref and the javascript tools guide are already on you system. Along with some sample scripts.

View Article
Browsing all 27456 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>