Using XMLHttpRequest in Photoshop script
I tried to request information from an API in JavaScript using this, but ExtendScript keeps giving me an error saying that...
var xhr = new XMLHttpRequest();
.. has no constructor.
Is it possible to get rid of it within Photoshop / is there any workaround?
Hello
the answer you get is not something fancy, just a regular string.
Try this:
$.writeln(reply.substr(reply.indexOf("\r\n\r\n")+4));
(he finds "\r\n\r\n" in response and start playback of the end of it until the end of the string)
I hope this helps!
Davide
UPDATE (removed unnecessary "this." in the code)
Tags: Photoshop
Similar Questions
-
face detection? Photoshop script
Hello
I explored the possibility of automatic detection of faces and selection using photoshop script. Anyone tried something similar? Please guide me in the right direction.
I need find and automatically select the face (with head) and move in different layers.
http://facedetection.jaysalvat.com/ This Web site is Jquery. But I wanted to do with the photoshop script.
mahendrak15024337 wrote:
Thanks JJMack!
Let's say if we leave selection of face. But is there any command/method photoshop script that detects if the layer/image has sides on it or not?
Thanks again!
If you leave the detection of face, how do we know if there is a face or not in a layer. Same Adobe Face detection detects all the faces in the pictures. New face in CC 2015.5 detection liquefy had no problem finding all 8 faces in your example. Yet, I saw portrait images, in that it has failed to identify a face. CC 2015.5 has so many issues, I do not use it. Older versions of Photoshop CS6 starting have face detection in color range to help select the skin.
-
How the photoshop script can call an applescript script
I realize, maybe it's a bit of a messy way around it, but I need to get the photoshop script to call an applescript script. Basically so that I can have it become a menu item in photoshop.
Is - this show applescript can in the same way photoshop script?
If this isn't the case, I thought I could get either photoshop script to call the applescript or even more messy, I could use Photoshop to run a Terminal command to call the applescript.
All thoughts
Matt
For those who come through it
Save your applescript as an application, and then you can use
App.System ("' open ' / path/to/script_as_an_app.app'" ");
then everything works
-
Simple (I guess) Photoshop scripts quesiton ;)
Hi guys,.
Just a quick question...
I looked on the forum and on the web but cannot find a working solution for my, I think that simple problem.
I have a Photoshop image using variables and external data source (text file) to generate badges with fields such as first_name, last_name, Department,... thanks to this tutorial http://www.richmediacs.com/user_manuals/RMCS_PS_Training/using%20ps%20Variables/UsingVaria blesInPS_EXTERNAL.html (maybe there is a better way to do the same things just scripted).
This part works well but I would add a different logo only for certain Department so I need to use something like "If Department is accounting then show accounting logo of another if Department is engineering genius show another logo display the default logo.
How can I do?
I forgot to say I have this will be my first Photoshop script...
Thank you for your help...
Vince.
With the graphic data and data sets, you have several choices. You may have several layers of logo and use the data to the control that is visible. I think this would be the best way. You can use the dataset object to replace the content of the logo layer. It works best if the logos are the same size. One of the people could be done with simple modifications to the matrix and data sets. You may post-process the images as suggests if you cannot change the data sets.
-
Do you think new MacBook 12 "can use Lightroom and Photoshop cc?
Hello
Do you think that the new MacBook 12 "can use Lightroom and Photoshop cc? I'm about to see buy this MacBook.
Thank you for your advice.
Best regards
Vivianne
It should work. For a few intensive processor image adjustments, it may trolling, but take a cup of tea and coffee. Ditto on the generation of said images of 1:1 of the big RAW files. But I opened Lr CC right now on a 2009 Core Duo MBP 13 "and it works. Jackpot is important and this will be slower that say a high-end 15 "or iMac, retina, but for what?
And BTW, the screen RESOLUTION is huge.
Consider that a MBP 17 "has a resolution of 1920 x 1200. It is decidedly old school.
12 "has a retina display, at the native resolution of 2304 x 1440 to 226 ppi. This is how many things on the screen. Almost as much as an ordinary 2.5 k iMac. Yes, the pictures would be smaller, but you just get the thing... which is easier because it is smaller. His retina at 15 "of your eyes, which means that it is as close as you can get before you see pixels. Then you'd see a ton in addition to your image at 1:1 without scrolling autour, and yet the menus and icons Lr would be regular size of Mac. They would be the crowd a little more obviously than on a 15 "screen, but you'd still see tons.
And BTW, you can also run a 4 k monitor it.
-
RECENTLY I bought the subscription for the month, but then canceled (I think?) because I'm frustrated. I've been using bridge and photoshop cs6 for 4 years. I've never understood light room and where it is located. I've dabbled with it and I couldn't find out how to save my images in my workflow of currengt, or how to resize and put a border around my images. How to save for web and as TIFF, as I did for all my files for four years. LR seems to be taking pictures of my Iphoto folder and I don't use that. I tried to cancel the cc of photoshop and lightroom cc and cc bridge but I don't know if I did. I am really confused, and I have work to do. What can I do, do I do, help me! @@ !
Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday
Your subscription to cloud or serial number to show on your account page?
https://Accounts.adobe.com/ , then click on Plans & products top
Cloud of reading takes up https://forums.adobe.com/thread/2089127 for some ideas
-
When I open my application on my Macbook pro using bootcamp, the photoshop CS3 opens very low. How can I solve this problem?
Legacy versions do not support the higher resolutions / poster of the retina. Refer to this:
My UI elements appear tiny. | Error postal codes of Mylenium
Mylenium
-
I bought the plan of creative photography of Cloud (one year), were charged, but have not received your activation codes so I can not use Ligthroom or Photoshop. What should do?
I use a mac
Your subscription to cloud shows correctly on your account page?
If you have more than one email, you will be sure that you use the right Adobe ID?
https://www.adobe.com/account.html for subscriptions on your page from Adobe
.
If Yes
Some general information for a subscription of cloud
Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
-ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
-http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
.
If no
This is an open forum, Adobe support... you need Adobe personnel to help
Adobe contact information - http://helpx.adobe.com/contact.html
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
-Select your product and what you need help with
-Click on the blue box "still need help? Contact us. "
-
How can I use lightroom or photoshop on my laptop, when I open it, it says only, I use on two computers and I have already two I have Mac at home.
Hi moving,
You can use Lightroom or Photoshop on two computers using a single license.
If you want to use on the third computer, you should disable any previous machines and turn it then back on the 3rd machine.
You can also consider getting another license or subscription to your other computer.
~ UL
-
My new paid and used successfully once Photoshop elements on Windows 7 64 14 yesterday. Won't start today and I don't know why.
Since then, I reinstalled the software, and what ever problem I had disappeared.
-
Hello! I am a fashion design student and my school offer us a wide range of Adobe programs. I asked the Redemption Code and I, but when I try to enter on behalf of the school know that this code has already been used however the Photoshop and Illustrator that I already have on my Mac do not work. Before you begin the school pack, I used a free version and so now I see that my free version is over but I can't use the pack of the school that gave me. How can I start using it?
Hello
Please see redemption code help
You will need to contact support by calling/chat for this request.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Kind regards
Sheena
-
I now have the complete Adobe CC license, but I mainly use only CC Photoshop and Lightroom CC. How can I place my full CC to the version of photographers CC license?
I don't see in my Adobe account opportunities to make changes.
https://helpx.Adobe.com/creative-cloud/help/cancel-membership.html
To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache. If he continues to not try to use a different browser.Creative cloud plans
-
I plan to buy a mac book pro - MacBook Pro 15 "retina 256GB MJLQ2DK/A - has the right to 'size' if I intend to use Adobe InDesign, Photoshop etc.?"
I do not have Mac, so all I can respond with is the official link from Adobe on system requirements
MINIMUM requirements for programs of cloud... scroll down and check each program
-http://helpx.adobe.com/creative-cloud/system-requirements.html
-
environment variable or registry from a photoshop script
Is there a way to get the environment since a jsx photoshop script variable? (windows) or the registry
Am interested in variable ProgramData (usually C:\programData) as they change in the registry.
Thank you
var s = .getenv ("ProgramData") $;
Don't know how to get the registry entries.
X
-
Can I disable creative start-up Cloud.exe and always use Lightroom and Photoshop based subscriptions? It is constantly running and chew my CPU resources.
Hello
Yes. You can check the option do not launch the application of the preferences option.
Kind regards
Sheena
Maybe you are looking for
-
A pop-up window headed ' Send Message - Re:...» "reports status as"Copy of record Message. "" "... »with a progress bar that is large and green, but it never ends. If I abandon the process and close Thunderbird, when I open it the message is not in t
-
Firefox no sound after upgrade to 8.1 Windows
Recently I have updated Windows 8 to 8.1 after doing so, Firefox will play any kind of noise at all. Or I have to turn my PC volume to 100% with the max volume video and I can hear the sound or video very weakly. I did a reset, reinstall, went throug
-
I installed Firefox 21 on a new Windows 7 operating system. The menu bar and the toolbar at the top of the windows is full small horizontal lines. Sometimes, there are more lines and sometimes less. It makes the icons and menu items almost impossible
-
The context menu commands do not work on bookmarks
Context menu commands operate on visible in the Favorites Bookmarks toolbar, but they do not work on bookmarks in the menu dropdown. Update: I closed Firefox and rebooted and the problem disappeared.
-
ATFX import error Exception (20)
Hello IAM, try to import an ATFX ASAM ODS file with 2 binary files in tiara, but I always get the following error Message: New section logfile *.ToDriver.cpp (425): ATFX: ERROR: Exception: load in (20)ata unknown type to this method! This happens whe