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 ArticlePhotoshop 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 ArticleRe: 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 ArticleIs 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 Articleplease 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleHow 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 ArticleRe: 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 Articleabort 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 ArticleRe: 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 ArticleRe: 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 ArticleCan 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 ArticleRe: 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