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

Re: Painting Process Documentation: Stamp Visible, Move to layer Set and hide

Do you perchance know what kind of value would be returned by.layerSets.getByName("process") if there is no such Layer Set? Is it undefined? False? Null?How would I go about finding out?

View Article


Photoshop document save on Mac throws Error : The document has not yet been...

Hi,I have a very simple script that would save the changes in a PS document. The script is as practically as mentioned below :if(app && app.activeDocument) {     app.activeDocument.save();}...

View Article


Re: Painting Process Documentation: Stamp Visible, Move to layer Set and hide

Ok, here is the script that does the deed, it requires an additional function to catch what getByName() returns. // Process Image Capture// V 1.0// PIC Stamps Visible (creates a new layer that combines...

View Article

Is it possible to paste the copy content to the text item via script?

Hi All, I am looking into the solution of pasting the copied content (by cntrl + c) to the text item.Following is my scenario,- Have the text (copied from cntrl + c).- Now I want to create a text item...

View Article

please help me

var myDoc = activeDocument;var channels = myDoc.channels;var theNumber = 0;var i=0;for (var m = 0; m < channels.length; m++) {  if (channels[m].kind == ChannelType.SPOTCOLOR) {  theNumber++...

View Article


Image may be NSFW.
Clik here to view.

Re: please help me

Hi roychen, if (k1 = 100){         layercurvesk(1);//==========laod curves 1     } It should be like as follows,if(k1 == 100) {  layercurvesk(1);//==========laod curves 1}

View Article

Re: please help me

hi AI_learneri change IF (k=100) to IF if(k==100)var myDoc = activeDocument;var channels = myDoc.channels;var theNumber = 0;var i=0;for (var m = 0; m < channels.length; m++) {  if (channels[m].kind...

View Article

Re: please help me

all "<= k1 <= 74"   change to "<=K1&& k1 <= 74" ok

View Article


Re: please help me

Great you got it.

View Article


Re: Is it possible to paste the copy content to the text item via script?

Don't know about Photoshop, but InDesign has app.paste(). This creates a text item in the active doc and pastes the content from clipboard.I guess there should be a similar method in the PS APIs.

View Article

Re: Is it possible to paste the copy content to the text item via script?

Yes, there is an API in Ps,app.activeDocument.paste()But it's not working here. I am getting exception every time "The command "Paste" is not currently available". I don't know why it behave like this.

View Article

background layer color

how know background layer color(cmyk) is white by javascript?

View Article

How can i change brush type with script?

I can already set the width, size of it, but i cant find out how to change the type. Even script listener dont produce the needed code for it.

View Article


Re: Is it possible to paste the copy content to the text item via script?

If the layer is a text layer, you can use layer.textItem.contents to get & set the text. Before setting you might have to sanitize line changes like my_text = my_text.replace(/\r\n/g,...

View Article

abort IPP session

xbytor,Is there a graceful technique to abort an IPP session?Lets say for instance the IPP recipe is incorrect. IPP is running processing 100 files.Can the IPP be halted with out force quitting PSCC...

View Article


Re: Is it possible to paste the copy content to the text item via script?

There is no problem to get/set the content of text layer. But here I want to get the content (copied from CNTRL+C command from notepad) present in the memory and set it to the text item. I guess it's a...

View Article

Image may be NSFW.
Clik here to view.

Re: abort IPP session

Is there a graceful technique to abort an IPP session? All you can do is hit the Esc a bunch of times and it might stop the script. Lets say for instance the IPP recipe is incorrect. IPP is running...

View Article


Can you look up a Hard Drive name in Extendscript?

I'm running: alert(Folder.desktop.fsName) Which brings up: /usr/home/<<userName>>/Desktop I need it to bring up: <<hardDriveName>>/usr/home/<<userName>>/Desktop Ex....

View Article

Re: How can i change brush type with script?

what do you mean by 'type'

View Article

Re: Launch external program (email with attachment)

I was not able to set Thunderbird to work with options for attaching image file using file.execute or app.system().  I use windows and all was able to do is write a windows bat file to launch...

View Article
Browsing all 27456 articles
Browse latest View live


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