Interactive selection using photoshop script
How to make a script pause till the user makes a selection and continue again using photoshop script?
You can use two Scripts or one Script that, depending on some predetermined factor, performs two different tasks.
So you could for example write something into the metadata, a channel, a txt file, … when a Script is run and that information is absent, and if it isn’t have the Script perform something else and remove that again.
Edit: You probably could also set up the Script Events Manager to check for something on any Selection change and have it run a Script depending on that but I doubt that’s a good idea.
Similar Messages
-
Hi,
Please help me for this.
I need to create XML file for mentioned below. when i run the photoshop script i need deatails for active document name, date, time and status.
<?xml version="1.0" encoding="UTF-8"?>
<sample>
<filename>Cradboard_Boxes_Small.tif</filename>
<date>today date</date>
<starttime>now</starttime>
<status>delivered</status>
</sample>
<sample>
<filename>Cardboard_Boxes_Student_Vaue_Pack.jpg</filename>
<date>today date</date>
<starttime>now</starttime>
<status>delivered</status>
</sample>
I need read that xml after creating and modify based on file name. i need to modify status after file finished.
if the file name is already exist i want to modify or delete or add whatever i need.
Kindly help me simple wayYou may want to look into getting Xtools ps-scripts - Browse Files at SourceForge.net then. Most of the support is for ActionManager script code where XML code is use as an intermediate step. There are quite a few Photoshop script in XTools . Ross Huitt is an expert javascript programmer though is is fed up with Adobe's lack of support for Photoshop scripting particularly the bugs in ScriptUI he is still maintaining tool he has created for us free of charge. Tools like Image Processor Pro. None of his scripts are save as binary so you can read all of his code there is a wealth of knowledge in there....
Also there is a scripting forum Photoshop Scripting -
Using Photoshop script – open image in it's own profile?
I Have a question about scripting;
How do I open an image in Photoshop script in it's own color profile, when the working colorspace is different?
It seems like it automatically opens in the current working colorpace.
(I want to open images and make the conversion myself efterwards).
/CalleWhat are the Color Settings on that machine?
I have never noticed that opening files via Script would convert them to the Working Space, but my Color Settings are to »Preserve Embedded Profile« for all modes. -
Using Photoshop scripting copy a layer and paste into another document at a particular selection
I want to copy a layer of a document and paste it into another document in the particular layer selection..
Thanks Badunit for your quick response
I have found the answer - it is a incompatabilty between CopyPaste Pro and Numbers: -
Thanks dbg1596 - solved my problem with which I wasted a good couple of hours getting more and more frustrated with numbers 3.0
I had the same problem - copy a cell - paste into another cell and it created three vertical cells with the pasted data in the middle
Definitely a problem between CopyPaste Pro - one of the most useful aps on my Mac for the last many years
Once I quit CopyPaste Pro - no problem with pasting in Numbers 3.0
But I use CopyPaste Pro all the time
Have the folks responded to your query?
But I use CopyPaste Pro all the time - hope that it can be sorted sooner rather than later -
Creating animated GIF using Photoshop Scripting
Hi,
I am trying to mimic the action "Save for Web & Devices" of a PSD file, having 4 frames in an animation, into an animated GIF file.
I was suggested to use "ScriptingListener", but I did the copy/paste of the code, it did not work.
Is there a way to code a script, by using classes/functions to achieve this result ?
Thank you in advance.
Jean-LouisYes that's my understanding for Javascript, with clarification that with "compile them all into animated GIF through script" using some external program (e.g. check out ImageMagick). Whether that is an OK solution depends on what you are trying to do (just for own internal use or distribution).
For the Javascript docs see http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop-cc-javascr ipt-ref.pdf -
How to get textItem width with effects by using photoshop script
HI,guys
Is there any one met the same problem? I want to write a script can generate pics according the text content size dynamically, but I cant get the actual size of textItem with effects.#target photoshop-70.032
var bounds = activeDocument.activeLayer.bounds;
alert (bounds[2]-bounds[0]);
seems to include Layer Styles like Outer Glow. -
Script to Create Folders Using Photoshop Scripting Mac/Windows
Can anyone help me. I want to create a script to create folders and run the script in Photoshop.
I am a real novice at scripting and I do not know if this can be done.
Thanks//Folder to create on the desktop
var folder1 = Folder("~/desktop/My New Folder");
//Check if it exist, if not create it.
if(!folder1.exists) folder1.create(); -
How to create a group using photoshop scripting?
Hey guys,
I can create a layer easily by the below code.
but how can i create a group that contain more than one layer.
var docRef = app.documents.add();
var myLayer = docRef.artLayers.add();Here is an example..
var doc = app.documents.add();
var newLayerSet = doc.layerSets.add();
var myLayer = doc.artLayers.add();
var myLayer2 = doc.artLayers.add();
//move the layers into the layerset
myLayer.move(newLayerSet, ElementPlacement.INSIDE);
myLayer2.move(newLayerSet, ElementPlacement.INSIDE); -
How to get the context data using java script in interactive forms
Hi All,
How to get the context data using java script in interactive forms by adobe, am using web dynpro java
thanks.Hi venkat,
Please Refer this link.
Populating one Drop-Down list from the selection of another Drop-down list
Thanks,
Raju. -
Possible to run a photoshop script by selecting files in Bridge?
Hi,
I have a good script I've written that I always used to run from Photoshop. The script has a dialog box which asks where to get the files from. Is it possible to select files in bridge and run the script from there? Without rewriting it for Bridge?
Thanks,
Stan> I have a good script I've written that I always used to run from Photoshop. The script has a dialog box which asks where to get the files from. Is it possible to select files in bridge and run the script from there? Without rewriting it for Bridge?
Yes, this is possible. However, a much easier solution is to select the files in
Bridge then switch to PS manually to run your script. It avoids having to having
to write any code to run in Bridge at the cost of not having seamless integration.
In xtools/xlib/XBridgeTalk.jsx I have a set of functions that simplify working
with Bridge from within PS. For instance:
var files = XBridgeTalk.getBridgeSelection();
will return an array of Files that are currently selected in Bridge. If Bridge
isn't running or if no files are selected it returns an empty array.
-X
for photoshop scripting solutions of all sorts
contact: [email protected] -
Using .js scripts to launch Photoshop
Hi I'm kind of new to this Photoshops scripts field
and would like to write an external application (.NET based) that would be able to invoke the Photoshop application and run Photoshop .js scripts on it and then return the reply to some other external application.
I would like to now if and how it is possible to executes scripts that way? It is obvious that I could launch the Photoshop application by calling the .exe file. But how do I run the script and retrieve data such as status of the script, errors, etc.
Any idea's???
ThanksHere is an example of getting some details of an open document and putting the results in an Excel worksheet.
It also shows how to run JavaScript from within C# and how to show messages.
It's very basic but should get you started.
To get started you can dowload the FREE version of Microsoft® Visual C# :-
http://www.microsoft.com/express/Windows/
Create a new Console Application and paste in the following code..
using System;
using System.Runtime.InteropServices;
using Excel = Microsoft.Office.Interop.Excel;
using System.Windows.Forms;
using ps = Photoshop;
namespace PSexample
public class PSdata
static void Main(string[] args)
ps.ApplicationClass app = new ps.ApplicationClass();
app.Preferences.RulerUnits = ps.PsUnits.psPixels;
ps.Documents doc_arr = app.Documents;
if (app.Documents.Count == 0) return;
double Width = app.ActiveDocument.Width;
double Height = app.ActiveDocument.Height;
double PixelCount = Width * Height;
app.DoJavaScript("alert('Message from within Photoshop\\nTotal Pixels " + PixelCount + " ');", null, null);
int mess = app.ActiveDocument.Layers.Count;
MessageBox.Show("Document Name = "+app.ActiveDocument.Name, "PS Example");
MessageBox.Show("This document has "+Convert.ToString(mess)+ " layers","PS Example");
Excel.Application app2 = new Excel.ApplicationClass();
app2.Visible = true; //change to false when tested
var excelWorkbook = app2.Workbooks.Add(VarEnum.VT_NULL);
app2.ActiveCell.set_Value(Excel.XlRangeValueDataType.xlRangeValueDefault, " ");
app2.Cells[1, 1] = app.ActiveDocument.Path;
app2.Cells[1, 2] = app.ActiveDocument.Name;
app2.Cells[1, 3] = Width;
app2.Cells[1, 4] = Height;
app2.Cells[1, 5] = app.ActiveDocument.Layers.Count;
You now need to add a couple of COM references one for Photoshop and one for Excel.
On the menu bar select Project - Add Reference -Select The COM tab
Now select the COM object..
Adobe Photoshop CS# Object Libary //CS# depends on what version of Photoshop you want to use (This is the API)
Microsoft Excel 12.0 Object Library // The Number may be different depending on your version of Excel
Now select .NET tab and select
System.Windows.Forms
With a document open in the CORRECT version of Photoshop you can run the script from C# by pressing the F5 function key.
Hope this helps. -
Help! I am trying to use the scripts image processor in Photoshop CC.
Help! I am trying to use the scripts>image processor in Photoshop CC. When I click on it it comes up with an error saying that it cannot find the Javascript Plug In. I have the newest version of Java installed. How do I get it to work in Photoshop. Do I have to download a separate plug in? Any help would be greatly appreciated.
Java is not Javascript.
Do you have a Mac or PC?
If PC, do you have this file on your system?
C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Required\Plug-Ins\Extensions\ScriptingSupport.8li
If not, you've got a corrupted installation of Photoshop. Uninstalling and reinstalling may help.
-Noel -
how to make a selection of a layer delete content and paste another content with Photoshop scripting..?
There is a more specific Forum …
Photoshop Scripting -
Hi ...
i have a tabular form
have two columns in that form, kept as a select list by selecting that 1st select list data the related datas has to be popup after selecting that it has to be displayed in the 2nd column by using
java script
eg:
1st column empno-----by selecting the empno the related empname has to be popup
dept no....by selecting the deptno the related deptname has to be popup
thanks in advance,
kishoreThis is a very common question, see
https://forums.oracle.com/thread/2359498 -
Using Photoshop CS6 and after printing approx. 10 cards on an Epson R3000 printer the program gives me a dialog box saying "There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents." Even after closing and reopening the program, the print command is greyed out so I cannot select any printer. This also happens with a Brother laser printer. Both printers will produce a test page out side of the Adobe product. Help!
I cannot get any help either. I get the message "There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents." I have reinstalled all drivers, powered off/on all printers (2 of them - a Brother HL - 4040cn and an Epson Stylus Pro 7890 - which all worked fine until this morning). There appears to be no path to a solution. I have read all the forums and tried about 20 different suggestions all to no avail. Reboots, changing cables, reinstalling printers and drivers and Photoshop CS6 - ALL TO NO AVAIL. On a macbook pro retina with 10.10.3. This issue is out there and some get solutions - but not all - that's my crowd...the not all crowd. I have yet to be able to print from CS6 any more. This is a show stopper and my patience is wearing thin. And I'm tired of stupid questions like "is your printer powered on?" give me a break. This appears to be an adobe photoshop cs6 problem - as I can print from every other application. Anyone have any ideas? Adobe should have something?... Adobe system info below:
Adobe Photoshop Version: 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00) x64
Operating System: Mac OS 10.10.3
System architecture: Intel CPU Family:6, Model:58, Stepping:9 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
Physical processor count: 4
Logical processor count: 8
Processor speed: 2300 MHz
Built-in memory: 8192 MB
Free memory: 4665 MB
Memory available to Photoshop: 7059 MB
Memory used by Photoshop: 70 %
Image tile size: 1024K
Image cache levels: 4
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Advanced
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
OpenGL Allow Old GPUs: Not Detected.
OpenGL Version: 2.1 NVIDIA-10.2.7 310.41.25f01
OpenCL Version:
Video Card Vendor: NVIDIA Corporation
Video Card Renderer: NVIDIA GeForce GT 650M OpenGL Engine
Display: 2
Display Depth:= 32
Display Bounds:= top: 1072, left: 140, bottom: 1950, right: 1580
Video Renderer ID: 16918311
Video Card Memory: 1024 MB
Video Rect Texture Size: 16384
OpenGL Version: 2.1 NVIDIA-10.2.7 310.41.25f01
OpenCL Version: 1.2 (Feb 27 2015 01:29:10)
Video Card Vendor: NVIDIA Corporation
Video Card Renderer: NVIDIA GeForce GT 650M OpenGL Engine
Display: 1
Main Display
Display Depth:= 32
Display Bounds:= top: 0, left: 0, bottom: 1050, right: 1680
Video Renderer ID: 16918311
Video Card Memory: 1024 MB
Video Rect Texture Size: 16384
Serial number: 92629107631240972642
Application folder: KerrysHD:Applications:Adobe Photoshop CS6:
Photoshop scratch has async I/O enabled
Scratch volume(s):
KerrysHD, 232.6G, 19.7G free
Required Plug-ins folder: KerrysHD:Applications:Adobe Photoshop CS6:Adobe Photoshop CS6.app:Contents:Required:
Primary Plug-ins folder: KerrysHD:Applications:Adobe Photoshop CS6:Plug-ins:
Additional Plug-ins folder: not set
Installed components:
adbeape.framework adbeape 3.3.8.19346 66.1025012
AdbeScriptUIFlex.framework AdbeScriptUIFlex 6.2.29.18602 66.490082
adobe_caps.framework adobe_caps 6.0.29.0 1.276181
AdobeACE.framework AdobeACE 2.19.18.19243 66.492997
AdobeAGM.framework AdobeAGM 4.26.17.19243 66.492997
AdobeAXE8SharedExpat.framework AdobeAXE8SharedExpat 3.7.101.18636 66.26830
AdobeAXEDOMCore.framework AdobeAXEDOMCore 3.7.101.18636 66.26830
AdobeBIB.framework AdobeBIB 1.2.02.19243 66.492997
AdobeBIBUtils.framework AdobeBIBUtils 1.1.01 66.492997
AdobeCoolType.framework AdobeCoolType 5.10.31.19243 66.492997
AdobeCrashReporter.framework.framework AdobeCrashReporter 6.0.20120201
AdobeExtendScript.framework AdobeExtendScript 4.2.12.18602 66.490082
AdobeJP2K.framework AdobeJP2K 2.0.0.18562 66.236923
AdobeLinguistic.framework 17206
AdobeMPS.framework AdobeMPS 5.8.0.19463 66.495174
AdobeOwl.framework AdobeOwl 4.0.93 66.496052
AdobePDFL.framework AdobePDFL 10.0.1.18562 66.419471
AdobePDFSettings.framework AdobePDFSettings 1.4
AdobePIP.framework AdobePIP 6.0.0.1654
AdobeScCore.framework AdobeScCore 4.2.12.18602 66.490082
AdobeUpdater.framework AdobeUpdater 6.0.0.1452 "52.338651"
AdobeXMP.framework AdobeXMPCore 66.145661 66.145661
AdobeXMPFiles.framework AdobeXMPFiles 66.145661 66.145661
AdobeXMPScript.framework AdobeXMPScript 66.145661 66.145661
ahclient.framework ahclient 1.7.0.56
aif_core.framework AdobeAIF 3.0.00 62.490293
aif_ocl.framework AdobeAIF 3.0.00 62.490293
aif_ogl.framework AdobeAIF 3.0.00 62.490293
AlignmentLib.framework xcode 1.0.0.1
amtlib.framework amtlib 6.0.0.75
boost_date_time.framework boost_date_time 6.0.0.0
boost_signals.framework boost_signals 6.0.0.0
boost_system.framework boost_system 6.0.0.0
boost_threads.framework boost_threads 6.0.0.0
Cg.framework NVIDIA Cg
CIT.framework CIT 2.0.5.19287 145486
data_flow.framework AdobeAIF 3.0.00 62.490293
dvaaudiodevice.framework dvaaudiodevice 6.0.0.0
dvacore.framework dvacore 6.0.0.0
dvamarshal.framework dvamarshal 6.0.0.0
dvamediatypes.framework dvamediatypes 6.0.0.0
dvaplayer.framework dvaplayer 6.0.0.0
dvatransport.framework dvatransport 6.0.0.0
dvaunittesting.framework dvaunittesting 6.0.0.0
dynamiclink.framework dynamiclink 6.0.0.0
FileInfo.framework FileInfo 66.145433 66.145433
filter_graph.framework AdobeAIF 3.0.00 62.490293
hydra_filters.framework AdobeAIF 3.0.00 62.490293
ICUConverter.framework ICUConverter 3.61 "gtlib_3.0" "." "16615"
ICUData.framework ICUData 3.61 "gtlib_3.0" "." "16615"
image_compiler.framework AdobeAIF 3.0.00 62.490293
image_flow.framework AdobeAIF 3.0.00 62.490293
image_runtime.framework AdobeAIF 3.0.00 62.490293
LogSession.framework LogSession 2.1.2.1652
mediacoreif.framework mediacoreif 6.0.0.0
PlugPlug.framework PlugPlug 3.0.0.383
UpdaterNotifications.framework UpdaterNotifications 6.0.0.24 "6.0.0.24"
wrservices.framework
Optional and third party plug-ins: NONE
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Kuler
Installed TWAIN devices: NONE
Maybe you are looking for
-
Best practice for adding products in multiple languages
We have multiple products with the same product number and product name - but have different descriptions (translations). Our BigMachines quotation system allows us to have several language layers for the same product. But it seems like this is not p
-
Photobucket images do not show on Firefox but do so on Safari.
The photobucket website will not display my photos that I've downloaded. This is only a problem with Firefox. Safari has no issues with this.
-
Entire iTunes Playlist Missing
Hi, My entire iTunes playlist is missing. All that's inside my iTunes music folder is displayed here. What happened?
-
Hello, What is the syntax to include a .js file in an other .jsx file? Thanks for your help.
-
How do I free up space in the other file on my MacBook Air?
My laptop is full and when I check the storage, over 50GB is taken up by 'Other'. What types of files are in Other and what else could i delete to free up more space?! I've deleted loads of photos/videos/etc. but obviously other is some other categor