Hyperlink in a dialog box or alert
I need a dialog box with a mix of text and hyperlink . i'm using photoshop cc 2014. I tried with the following code dlg.myText.addEventListener('click', (function() { var fname, shortcut; fname =...
View ArticleWindows does not have a constructor: 244 error message
I'm using CS6 for the first time to process some RAW files using the Photoshop Automate>Fit Image script. When I tried opening one RAW image into Photoshop to create an action I got the following...
View ArticleData Sets in Photoshop Error
how to i fix this? Could not parse the file contents as a data set. There were too many variable names in the first line of the text file.
View ArticleScript doesn't work anymore on 64 bits, but work on 32 bits.
Hello, This code, just below, is just a part of a bigger script to bind some .pxi into a final psd file.It work great on PS 32 bits, but not on 64 bits. I got a error 8000, "unable to open the file,...
View ArticleScript: Page number+custom text on the footer
Hi,I'm doing a catalogue of medical items, and If is possible, I need a script that insert a short text in the center footer of the page plus the page number, like " Family 23 - pag. 1", and the number...
View ArticleAutomatic variable Change of the Place item on a action
I'm begining in the scripting area, but I'm lost realy. I looking in a way to change the place automatic based on the filename/ folder. Today I do like this:I'm aplying a image in the back of a photo...
View ArticleScripting - get Smart Object .psb name
Hey Guys, trying to do a javascript that goes through and saves all the layers as images, but to skip smart objects that have already been saved. However, I'm running into memory issues with large...
View ArticleHow do I skip a dialog box (of an adjustment), by implementing the 'enter'...
I made a custom panel with Adobe Configurator 4 with several adjustments buttons.However, if I press for example 'Brightness/Contrast', I don´t always want to confirm the dialog box (naming the...
View ArticleScript Listener code will not execute...
The code below was generated by the Script Listener in PS CC 2014 with all updates. When I run the code in Extend Script an exception is thrown by the last line stating that the Make command is not...
View ArticleScript Alert: "Sorry I could not process the following files" (Error Message...
I'm a seasoned Photoshop/Bridge CS5 user who recently upgraded to CS6. In Bridge I just ran my first Image Processor batch, trying to convert a set of RAW .NEF files to .PSD files with a basic editing...
View ArticlePhotoshop 2015 artboards in scripting
Anyone seen info / had a chance to test how artboards will workout in scripting? I guess data model could be pretty similar, i.e. an artboard is just new kind of group. The primary effect is in...
View ArticleHow can I draw a rectangle?
I need to simulate drawing a rectangle with the Rectangle tool in a script. One way is to use the Script Listener and modify the code so I can pass the necessary variables. Is there a better solution?...
View Articlehow to convert pixels in mm ?
Hello everybody!I'm making a tool in which the user specifies the size of the frame, I want to give him the opportunity to choose between units of measurement. How do I convert one unit to another?...
View ArticleRadiobutton callback not working...
I am trying to change the visibility of controls in a window when the user clicks one of two radio buttons using the following callback functions. However, nothing happens when I click the radio...
View ArticleLayer Comps To Files - Export error: Could not complete this operation. There...
I have been using the Export Layer Comps To Files scrips that ships with Adobe Photoshop CS5 for a while and found it very useful, apart from the numbers it automatically adds as a prefix to the...
View ArticlePer Layer Metadata: How do I delete an XMP Object from a layer?
The only way I have found so far is to "reset" the XMP object by assigning an empty one : var emptyXMP = new XMPMeta();app.activeDocument.activeLayer.xmpMetadata.rawData = emptyXMP.serialize();
View ArticleHow to use the Photoshop PDFSaveOptions.presetFile property?
Hi, Hopefully this is a relatively simple question for someone - as I'm new to scripting in Adobe Photoshop. I'm trying to retrieve the PDR Presets using the PDFSaveOptions.presetFile property, rather...
View Articleselection.bounds operation?
I have this simple jsx script where I want to get the bounds of a selection: try { var s = app.activeDocument.selection.bounds alert(s.toSource()) }catch(e) { alert("No...
View ArticleNo exception object in catch???
I have the following catch block in the outermost function in a script. } catch(err) {restoreOriginalSettings ();throw err;} When one of my testers runs the script he gets "Error 54: Uncaught...
View ArticleAutomation of picture overlay/screen
Hi! I have many pairs of pictures that need to be overlaid i.e. a1 with a2, b1 with b2 etc. I would like to import the pairs of pictures and then overlay them. Once overlaid, I would also like to...
View Article