How to make for lots of PNG to JPEG files

I have 10 and even up to 50 PNG files I want to convert to JPEG. However, I have Photoshop 6.0 and want to know how to do this in PS. These png is raw (don't no size)-can I actually size them first? Can convert to JPEG format at 300 DPI and 1500px wide for all final images? I looked aslot tutorials on YouTube but do not include broken accents are trying to speak English... with a lot of noise in the community... they actually waste their time trying to do that.

If there is a clear and concise tutorial or a link somewhere, it would be phenomenal. Suppose I have a dozen PNGs in a folder, what to do next?

You can also use IrfanView batch processing: there is much, much faster than Photoshop.

(A) to download and install IrfanView (one of the most known and popular of the world image viewers). It's a freeware.

(B) open IrfanView. Go to--> BATCH CONVERSION/RENAME FILE (shortcut: B)

(C) follow these steps:

(1) select a conversion mode. I chose the image conversion more rename.

(2) choose jpg as output format.

(3) game of require it quality with this button.

4) go to your folder of entry with pictures.

(5) add all images in your folder with this button. Highlight a selection of images to limit the number of images.

(6) possibly change the naming model. The model can be changed by clicking on the button options.

(7) select the output for processed images folder.

(8) next step!

(D) the dialog box options of image processing is displayed after clicking on the button "Advanced" in the previous step.

(1) set the width on 1500. The height of a blank.

(2) 300 DPI value. Also activate KEEP the PROPORTIONS and USE RESAMPLE FUNCTION (BEST QUALITY).

(3) stops all the MISC settings (especially "create subfolders" and 'delete the original files'. Subfolders will recreate the structure of identical files in your output folder, which is usually not necessary).

(Option 4): the use of another option (automatic sharpness, colors, etc.).

5) click OK when finished.

(E) you are now back to the previous screen of lot. Start batch conversion by clicking on the button START BATCH.

Fact! Since you mentioned that you need to convert thousands of images, note important here is that IrfanView is several times faster than Photoshop. And the lot never - fails with Photoshop, I lived in the past that the batch conversion would cease or fail for any reason any at times.

I did a quick test with a simple 95 images at different sizes with the wishes of parameters the OP. I also used the same JPG quality.

Photoshop CC 2015 Image Processor Pro: 106 seconds

IrfanView: 13 seconds.

IrfanView beat Photoshop by a factor of more than 8 times (!) faster. Now extrapolate this number to thousands of images, and you begin to understand that Photoshop can not be the best choice to perform batch conversions.

Tags: Photoshop

Similar Questions

  • How to make a PDF to a Word doc file and an Excel doc?

    How to make a PDF to a Word doc file and an Excel doc?   Finally, I would like to combine Word and Excel doc doc. in a single PDF file.

    Hello

    You will be first to combine the word and excel doc sheet first to a single Document, may be you can copy and paste the content in the Excel file in the word do.

    Once you have done that you can use Word to PDF converters, you can download a program to do this or use an online service

    I usually use the following website http://www.pdfonline.com/convert-pdf/ which is free and is safe for me.

  • How can you save your illustration in Photoshop CC 2014 as PNG or JPEG file when it does not give the option?

    How can you save your illustration in Photoshop CC 2014 as PNG or JPEG file when it does not give the option?

    Thank you for your time and help in advance.

    Thanks for the reply. I have actually managed to do work. I had my work instead of 16 or 8-32 bit/channel value. Once I changed it to 16-bit/channel, he gave me the possibility to register under the registered name. Thanks again.

  • How to make a folder shows the number of files in there?

    How to make a folder shows the number of files in there?

    You have not indicated what OS you are using.

    Yosemite

    Action > View Options: Select to display the item of information

  • How to make windows media player to read rar files

    How to make windows media player to read rar files

    Windows Media Player cannot play RAR files.

    RAR files are not video/audio files, they are compressed files. If there is video/audio files in the RAR file, you must first open and extract from RAR file.

    You can use 7 - Zip to create/open/unpack RAR files and other compressed files.

    7-zip:
    http://7-zip.org/

  • How can I change an icon to a jpeg file

    How can I change an icon to a jpeg file

    Download irfanview and open the file in there: http://irfanview.com/

    Save the image in jpeg format.

  • How to make a restart of disk with the files and data, that is to say, to the profession of XP

    I looked at my hard drive and have little or nothing left to free space, and I d ' attribute of * on my pc, I have removed more than half of it I do not either, but the hard drive still does not seem to move with more free space. so I was wondering if someone can tell me how to make a backup of drive for windows and programs, but not all the other files that I have on my hard drive, I would put the disc that came with the pc, but I left it out and the dog he finished, numbers and all, I can reinstall everything I need later ,,

    It is not a method of "reset" of windows, se...

    also, there are 'boot' cd that can be made, but they cannot be used to start windows.

    what they do is to start the computer with their own proprietary software, being generally utility to repair the file system.

    Subsequently, it is the hope that xp can then start by itself.

    don't know exactly what your situation is.   However, it seems that it would be a good idea to mount this hard drive as a slave / secondary drive on a working computer.   all computers can have at least 2 hard drives installed at the same time.

    in any case, if this drive can be enslaved on a working computer, you can use this computer to reconcile the master file table, i.e. to check the disk, then it - defrag since you had deleted half of the records of the file system.

    by the way, if your pc is not stable, how would you be able to make a bootable cd?

  • I can not open JPEG files. When I try to make my computer goes to the word and gives me strings of unreadable code. How can I correct the problem and open JPEG files?

    Cannot open JPEG files. Computer to the word when attempted and gives the unreadable code strings. Corrective action?

    The file association seems to be incorrect.  To rememdy this...

    Right-click on any jpeg and select 'Open with' in the menu.

    From there, you should have several options, select Windows Picture Veiwer or anything that makes sense on your pc.

    If it opens correctly, close it, and then right-click again.

    Rather than choose the same program, at the bottom you should see "Choose program" click on it and select the application that worked, then check the box that says "always use the program selected to reopen this file type."

    OK out of there and you should be good to go.

  • How to make PS (on my Mac) to recognize files (CR2) RAW image as my iPad?

    According to the position... discussion my iPad has no recognize CR2 question but PS CC 2015 or bridge (or LR) files will not see the files as different? Is there a setting that I can change?  Thanks for your help.

    Jay

    Sorry guys, looks like it was a matter of simple app. I woukd insert my SDCard (JPEG files) and my (CR2 files) CF card and didn't know that the default program has been automatically convert the raw image files to JPEG format. So, I just did Lr my opener of default for new files... and corrected image file problem. Thanks for your interest to help him. See you soon.

    Jay

  • How to use raw in PSE9 on a JPEG file editor?

    How to use the raw editor in PSE9 on a jpeg file?

    Under windows, in the editor, choose file > open as. On a mac in the editor, go to file > open, select the file you want, then choose Camera Raw in menu format, before you click on the Open button.

  • How to make for the Hyper-V role to run on a virtual machine in esx 5

    Hello

    I am trying to run the Hyper-V role on a virtual machine in vmware esxi 5. I'm under eindows Server 20008 R2 datacenter edition and install esx I have on a server dell with 32 GB of Ram and 2 intel Xeon processors. the material is active VT. I get the below error message all the time.

    Hyper-V cannot be installed.

    the processor on this computer is not compatible with Hyper-v. to install the role of HRT, the processor must have a version support for hardware-assisted virtualization, and this feature must be enabled in the BIOS.

    Info

    -the material is active VT and I am trying to nest a virtual machine with the hyper-V role.

    any help is appreciated.

    Please see Running the VMs nested.

  • NEED HELP: on how to make the text field on the image (file I) sliced in Dreamweaver

    First of all, I will apologize for not being a guy of current code or understanding terminology.  I'm old school and build Web sites for my businesses and programs.  I have a situation where I have designed a website on Illustrator and sliced the site and imported into Dreamweaver. Everything works fine, however, I train for the life of get me a (perhaps called a tag div or something) text box on one of my sliced background images.  I have tried everything; read online tutorials and watched, however, it does not work for me.  In the past, I had someone just put the code in (or fix my code) to make a table of open field, on top of my background image that I slit, so that I could add the content type to it.  Can someone help me with this please?

    Here is the code for the site.  I put RED, the text field I try to overlay a text table or a box to work with.   Thank you a lot if someone maybe can add the code (or the DIV) to make it work, but also if you can put it in a different color so I know how to this in the future, it would be a great help too.

    < html > < head > < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    < title > News < /title >

    < style type = "text/css" >

    {body

    background-color: #000;

    }

    < / style >

    < script type = "text/javascript" >

    function MM_swapImgRestore() //v3.0 {}

    var i, x = offline. MM_sr; for (i = 0; a & & I <.) Length & & (x = a [i]) & & x.oSrc; i ++) x.src = x.oSrc;

    }

    function MM_preloadImages() {//v3.0

    var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();

    var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

    If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

    }

    function MM_findObj (n, d) {//v4.01

    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}

    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}

    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];

    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);

    If (! x & & d.getElementById) x = d.getElementById (n); Return x;

    }

    function MM_swapImage() {//v3.0

    var i, j = 0, x, a = MM_swapImage.arguments; document. MM_sr = new Array; for (i = 0; i <(a.length-2); I += 3).

    If ((x = MM_findObj (a [i]))! = null) {document. MM_sr [j ++] = x; if(!x.oSrc) x.oSrc = x.src; x.SRC = a [i + 2] ;}

    }

    < /script >

    < / head >

    < body bgcolor = « #000000 » vlink = « #00FF00 » leftmargin = « 0 » topmargin = « 0 » marginWidth ne = « 0 » marginheight = « 0 » onLoad = « MM_preloadImages (' images/sur-lien-TopBLURR.jpg','images/éducation-lien-TopBLURR.jpg','images/Team-Link-TopBLURR.jpg','images/Training-Link-TopBLURR.jpg','images/Contact-Link-TopBLURR.jpg','images/Bottom-OverviewBLURR.jpg','images/Bottom-FounderBLURR.jpg','ima ges/Bottom-LocationBLURR.jpg','images/Bottom-TestimonialsBLURR.jpg','images/Bottom-Board-M embersBLURR.jpg','images/Bottom-Justin-SienaBLURR.jpg','images/Bottom-BoardingBLURR.jpg', 'images/Bottom-InternationalBLURR.jpg','images/Bottom-RosterBLURR.jpg','images/Bottom-Staff BLURR.jpg','images/Bottom-ScheduleBLURR.jpg','images/Bottom-NewsBLURR.jpg','images/Bottom-VideosBLURR.jpg','images/Bottom-Skill-DevelopBLURR.jpg' ' images/ fond-force-BLURR.jpg','images/Bottom-Training-VidsBLURR.jpg','images/Bottom-MentorBLURR.jpg','images/Bottom-Fun draisingBLURR.jpg','images/Bottom-DonationsBLURR.jpg','images/Botton-SponsorsBLURR.jpg','i mages/Bottom-ContactBLURR.jpg','images/Bottom-storeBLURR.jpg','images/Bottom-Bball-campsBL URR - 27.jpg') ">"

    < div style = "position: absolute;" left: 0px; Top: 0px; Width: 1231px; height: 840px; ">

    < div style = "background - image: url(Pro-Prep-Website_01.jpg);" position: absolute; left: 0px; Top: 0px; Width: 1px; height: 840px; "title =" ">

    < / div >

    < div style = "background - image: url(Top-Left-Logo.jpg);" position: absolute; Left: 1px; Top: 0px; Width: 719px; height: 119px; "title =" ">

    < / div >

    < div style = "background - image: url(Top-Blank-Rectangle.jpg);" position: absolute; left: 720px; Top: 0px; Width: 511px; height: 64px; "title =" ">

    < / div >

    < div style = "background - image: url(About-Link-Top.jpg);" position: absolute; left: 720px; top: 64px; Width: 85px; height: 55px; "title =" "> < a href ="AboutOverview.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image1',", ' images/sur-lien - TopBLURR.jpg', 1) "> < img src =" topic-link - Top.jpg "width ="85"height ="55"id ="Image1"> < /a >"

    < / div >

    < div style = "background - image: url(Location-Link-Top.jpg);" position: absolute; left: 805px; top: 64px; Width: 108px; height: 55px; "title =" "> < a href ="Academics.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage (" Image2 "," ' images/education-link - TopBLURR.jpg', 1) "> < img src =" Education-link - Top.jpg "width ="108"height ="55"id ="Image2"> < / has >"

    < / div >

    < div style = "background - image: url(Team-Link-Top.jpg);" position: absolute; left: 913px; top: 64px; Width: 76px; height: 55px; "title =" "> < a href ="Roster.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image3',", ' images/team-link - TopBLURR.jpg', 1) "> < img src = ' team-link - Top.jpg" width = height "76" = "55" id = "3" > < /a > "

    < / div >

    < div style = "background - image: url(Training-Link-Top.jpg);" position: absolute; left: 989px; top: 64px; Width: 96px; height: 55px; "" title = "" > < a href = "Development.html Skill" Mm_swapimgrestore "onMouseOver ="MM_swapImage ('Image4 '", ' images/training-link - TopBLURR.jpg', 1)" > < img src = "training-link - Top.jpg" width = "96" height = "55" id = "Image.4" > < / has >

    < / div >

    < div style = "background - image: url(Contact-Link-Top.jpg);" position: absolute; left: 1085px; top: 64px; Width: 145px; height: 55px; "title =" "> < a href ="Contact.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Picture5'", ' images/Contact-link - TopBLURR.jpg', 1) "> < img src =" Contact-link - Top.jpg "width ="145"height ="55"id = 'Picture5' > < / has >"

    < / div >

    < div style = "background - image: url(Pro-Prep-Website_09.jpg);" position: absolute; left: 1230px; top: 64px; Width: 1px; height: 715px; "title =" ">

    < / div >

    < div style = "background - image: url(Left-Star.jpg);" position: absolute; Left: 1px; top: 119px; Width: 233px; height: 720px; "title =" ">

    < / div >

    < span style = "background-image:;" position: absolute; left: 234px; top: 119px; Width: 996px; height: 482px; ' >< img src = "images/Blank - Body.jpg" width = "996" height = "482" alt = "" ></span >

    < div style = "background - image: url(Bottom-Titles.jpg);" position: absolute; left: 234px; top: 601px; Width: 996px; height: 59px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Overview-.jpg);" position: absolute; left: 234px; top: 660px; Width: 178px; height: 30px; "title =" "> < a href ="AboutOverview.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image6'", ' images/down - OverviewBLURR.jpg', 1) "> < img src ="Bottom-overview-.jpg"width ="178"height ="30"id = 'Image6' > < / has >"

    < / div >

    < div style = "background - image: url(Pro-Prep-Website_14.jpg);" position: absolute; left: 412px; top: 660px; Width: 1px; height: 30px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Justin-Siena.jpg);" position: absolute; left: 413px; top: 660px; Width: 189px; height: 30px; "title =" "> < a href ="Academics.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image11'", ' images/bottom-Justin - SienaBLURR.jpg', 1) "> < img src =" bottom-Justin - Siena.jpg "width ="189"height ="30"id ="Image11"> < / has >"

    < / div >

    < div style = "background - image: url(Bottom-Roster.jpg);" position: absolute; left: 602px; top: 660px; Width: 108px; height: 29px; "title =" "> < a href ="Roster.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image15',", ' images/down - RosterBLURR.jpg', 1) "> < img src =" low - Roster.jpg "width ="108"height = '29' id = 'Image15' > < /a >"

    < / div >

    < div style = "background - image: url(Bottom-Skill-Develop.jpg);" position: absolute; left: 710px; top: 660px; Width: 218px; height: 29px; "" title = "" > < a href = "Development.html Skill" Mm_swapimgrestore "onMouseOver ="MM_swapImage ('Image20 ',", ' images/low-skill - DevelopBLURR.jpg', 1)" > < img src = "low-skill - Develop.jpg" width = "218" height = '29' id = 'Image20' > < /a >

    < / div >

    < div style = "background - image: url(Bottom-Mentor.jpg);" position: absolute; left: 928px; top: 660px; Width: 133px; height: 30px; "title =" "> < a href ="Mentorship.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image23',", ' images/down - MentorBLURR.jpg', 1) "> < img src =" low - Mentor.jpg "width ="133"height ="30"id ="Image23"> < / has >"

    < / div >

    < div style = "background - image: url(Bottom-Contact.jpg);" position: absolute; left: 1061px; top: 660px; Width: 168px; height: 29px; "title =" "> < a href ="Contact.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image27',", ' images/down - ContactBLURR.jpg', 1) "> < img src =" bottom - Contact.jpg "width ="168"height = '29' id = 'Image27' > < /a >"

    < / div >

    < div style = "background - image: url(Pro-Prep-Website_20.jpg);" position: absolute; left: 1229px; top: 660px; Width: 1px; height: 29px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Staff.jpg);" position: absolute; left: 602px; top: 689px; Width: 108px; height: 21px; "title =" "> < a href ="Staff.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image16',", ' images/down - StaffBLURR.jpg', 1) "> < img src =" low - Staff.jpg "width ="108"height ="21"="Image16"id > < / has >"

    < / div >

    < div style = "background - image: url(Bottom-Skill-Develop-23.jpg);" position: absolute; left: 710px; top: 689px; Width: 1px; height: 1px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Strength-.jpg);" position: absolute; left: 711px; top: 689px; Width: 217px; height: 21px; "" title = "" > < a href = Mm_swapimgrestore "Force and Cond.html" "onMouseOver ="MM_swapImage ('Image21 ',", ' images/background-force - BLURR.jpg', 1)" > < img src = "Bottom-force-.jpg" width = "217" height = "21" = "Image21" id > < / has >

    < / div >

    < div style = "background - image: url(Bottom-store.jpg); position: absolute; top: 689px; width: 169px; left: 1061px, height: 21px;" "" title = "" > < a href = " http://Store.jglove.com "Mm_swapimgrestore"onMouseOver ="MM_swapImage ('Image28 ',",' images/down - storeBLURR.jpg', 1)" > < img src = "bottom - store.jpg" width = "169" height = '21' id = 'Image28' > < /a >

    < / div >

    < div style = "background - image: url(Bottom-Founder.jpg);" position: absolute; left: 234px; top: 690px; Width: 179px; height: 23px; "title =" "> < a href ="Founder.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image7'", ' images/down - FounderBLURR.jpg', 1) "> < img src =" low - Founder.jpg "width ="179"height ="23"id ="Image7"> < /a >"

    < / div >

    < div style = "background - image: url(Bottom-Boarding.jpg);" position: absolute; left: 413px; top: 690px; Width: 189px; height: 23px; "title =" "> < a href ="Boarding.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image12',", ' images/down - BoardingBLURR.jpg', 1) "> < img src =" low - Boarding.jpg "width ="189"height ="23"id = 'Image12' > < / has >"

    < / div >

    < div style = "background - image: url(Bottom-Staff-28.jpg);" position: absolute; left: 710px; top: 690px; Width: 1px; height: 20px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Fundraising.jpg);" position: absolute; left: 928px; top: 690px; Width: 133px; height: 20px; "title =" "> < a href ="Fundraising.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image24',", ' images/down - FundraisingBLURR.jpg', 1) "> < img src =" low - Fundraising.jpg "width ="133"height = '20' id = 'Image24' > < / has >"

    < / div >

    < div style = "background - image: url(Bottom-Schedule.jpg);" position: absolute; left: 602px; top: 710px; Width: 108px; height: 23px; "title =" "> < a href ="Schedule.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image17',", ' images/down - ScheduleBLURR.jpg', 1) "> < img src =" low - Schedule.jpg "width ="108"height ="23"id ="Image17"> < /a >"

    < / div >

    < div style = "background - image: url(Bottom-Training-Vids.jpg);" position: absolute; left: 710px; top: 710px; Width: 218px; height: 22px; "" title = "" > < a href = "Videos.html training" Mm_swapimgrestore "onMouseOver ="MM_swapImage ('Image22 ',", ' images/bottom-training - VidsBLURR.jpg', 1)" > < img src = "bottom-training - Vids.jpg" width = "218" height = "22" id = "Image22" > < /a >

    < / div >

    < div style = "background - image: url(Bottom-Donations.jpg);" position: absolute; left: 928px; top: 710px; Width: 133px; height: 23px; "title =" "> < a href ="Donations.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image25',", ' images/down - DonationsBLURR.jpg', 1) "> < img src =" low - Donations.jpg "width ="133"height ="23"id ="Image25"> < /a >"

    < / div >

    < div style = "background - image: url(Bottom-blank-9.jpg);" position: absolute; left: 1061px; top: 710px; Width: 169px; height: 22px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Location.jpg);" position: absolute; left: 234px; top: 713px; Width: 179px; height: 21px; "title =" "> < a href ="Location.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image8'", ' images/down - LocationBLURR.jpg', 1) "> < img src =" low - Location.jpg "width ="179"height ="21"id ="Image8"> < /a >"

    < / div >

    < div style = "background - image: url(Bottom-International.jpg);" position: absolute; left: 413px; top: 713px; Width: 189px; height: 21px; "title =" "> < a href ="Mission.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image13'", ' images/down - InternationalBLURR.jpg', 1) "> < img src =" bottom - International.jpg "width ="189"height ="21"= 'Image13' id > < / has >"

    < / div >

    < div style = "background - image: url(Bottom-Bball-camps.jpg);" position: absolute; left: 710px; top: 732px; Width: 218px; height: 1px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Blank-10.jpg);" position: absolute; left: 1061px; top: 732px; Width: 169px; height: 23px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-News.jpg);" position: absolute; left: 602px; top: 733px; Width: 109px; height: 23px; "title =" "> < a href ="News.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image18',", ' images/down - NewsBLURR.jpg', 1) "> < img src =" bottom - News.jpg ' width = '109' height = '23' id = 'Image18' > < /a > "

    < / div >

    < div style = "background - image: url(Bottom-Bball-camps-39.jpg);" position: absolute; left: 711px; top: 733px; Width: 217px; height: 20px; "" title = "" > < a href = "Bball Camps.html" Mm_swapimgrestore "onMouseOver ="MM_swapImage ('Image29 ',", ' images/bottom-Beni-campsBLURR - 27.jpg', 1)" > < img src = "Bottom-Beni-camps - 38.jpg" width = "217" height = '20' id = 'Image29' > < / has >

    < / div >

    < div style = "background - image: url(Botton-Sponsors.jpg);" position: absolute; left: 928px; top: 733px; Width: 133px; height: 22px; "title =" "> < a href ="Sponsors.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image26',", ' images/Botton - SponsorsBLURR.jpg', 1) "> < img src =" Botton - Sponsors.jpg "width ="133"height ="22"id ="Image26"> < /a >"

    < / div >

    < div style = "background - image: url(Bottom-Testimonials.jpg);" position: absolute; left: 234px; top: 734px; Width: 178px; height: 21px; "title =" "> < a href ="Testimonials.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image9'", ' images/down - TestimonialsBLURR.jpg', 1) "> < img src =" low - Testimonials.jpg "width ="178"height ="21"= 'Image9' id > < / has >"

    < / div >

    < div style = "background - image: url(Bottom-blank-5.jpg);" position: absolute; left: 711px; top: 753px; Width: 217px; height: 26px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Board-Members.jpg);" position: absolute; left: 234px; top: 755px; Width: 178px; height: 23px; "" title = "" > < a href = "Members.html room" Mm_swapimgrestore "onMouseOver ="MM_swapImage ('Image10 '", ' images/bottom-Board - MembersBLURR.jpg', 1)" > < img src = "bottom-Board - Members.jpg" width = "178" height = "23" id = "Image10" > < /a >

    < / div >

    < div style = "background - image: url(Bottom-Blank.jpg);" position: absolute; left: 412px; top: 755px; Width: 190px; height: 23px; "title =" ">

    < / div >

    < div style = "background - image: url(Pro-Prep-Website_45.jpg);" position: absolute; left: 928px; top: 755px; Width: 1px; height: 85px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Blank-7.jpg);" position: absolute; left: 929px; top: 755px; Width: 132px; height: 24 PX. "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-blank-11.jpg);" position: absolute; left: 1061px; top: 755px; Width: 169px; height: 24 PX. "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Blank-49.jpg);" position: absolute; left: 602px; top: 756px; Width: 1px; height: 22px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Videos.jpg);" position: absolute; left: 603px; top: 756px; Width: 107px; height: 24 PX. "title =" "> < a href ="Videos.html"Mm_swapimgrestore" onMouseOver ="MM_swapImage ('Image19',", ' images/down - VideosBLURR.jpg', 1) "> < img src =" bottom - Videos.jpg "width ="107"height = '24' id = 'Image19' > < /a >"

    < / div >

    < div style = "background - image: url(Bottom-blank-5-51.jpg);" position: absolute; left: 710px; top: 756px; Width: 1px; height: 24 PX. "title =" ">

    < / div >

    < div style = "background - image: url(Pro-Prep-Website_51.jpg);" position: absolute; left: 234px; top: 778px; Width: 178px; height: 29px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Blank-2.jpg);" position: absolute; left: 412px; top: 778px; Width: 191px; height: 29px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Blank-6.jpg);" position: absolute; left: 711px; top: 779px; Width: 217px; height: 28px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Blank-8.jpg);" position: absolute; left: 929px; top: 779px; Width: 132px; height: 29px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-blank-13.jpg);" position: absolute; left: 1061px; top: 779px; Width: 170px; height: 61px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-Blank-3.jpg);" position: absolute; left: 603px; top: 780px; Width: 107px; height: 27px; "title =" ">

    < / div >

    < div style = "background - image: url(Pro-Prep-Website_57.jpg);" position: absolute; left: 710px; top: 780px; Width: 1px; height: 27px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-blank-0.jpg);" position: absolute; left: 234px; top: 807px; Width: 179px; height: 33px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-copyright.jpg);" position: absolute; left: 413px; top: 807px; Width: 515px; height: 32px; "title =" ">

    < / div >

    < div style = "background - image: url(Bottom-blank-12.jpg);" position: absolute; left: 929px; top: 808px; Width: 132px; height: 32px; "title =" ">

    < / div >

    < div style = "background - image: url(Pro-Prep-Website_61.jpg);" position: absolute; Left: 1px; top: 839px; Width: 233px; height: 1px; "title =" ">

    < / div >

    < div style = "background - image: url(Pro-Prep-Website_62.jpg);" position: absolute; left: 413px; top: 839px; Width: 515px; height: 1px; "title =" "> < / div > < / div >

    < body / > < / html >

    You sent a couple of workarounds

  • How to batch export layers in png in cc files

    I have a problem with an export of layers to the script files I want to layer export batch in png and this script I have seems to be the only I can whenever I run the script I get this error message "Could not complete the action because the destination folder does not exist" the script required me to hardcode the my destination path the path that I need is "C:/users/Tim/Desktop/decors/png / '. I'm not completely sure why its registrant, that there is not any help would be greatly appreciated. I tried to contact the creator, but the post that it was was very old.

    activate the double click from the Macintosh Finder or Windows Explorer

    #target photoshop

    //=================================================================

    Globals

    //=================================================================

    exportPath var = ' / users/pedr/Documents/work/Clients/routes/Learning_Hub/Source/Comics/export ";

    exportPath = exportPath + "/ layers ';

    Localized UI strings

    var strTitle = localize("$$$/JavaScripts/X2L/Title=X2L");

    var strButtonRun = localize("$$$/JavaScripts/X2L/Run=Run");

    var strButtonCancel = localize("$$$/JavaScripts/X2L/Cancel=Cancel");

    var strHelpText = locate ("$$$ / JavaScripts/X2L/Help = Please specify the format and location for the registration of each layer as a file.");

    var strLabelDestination = localize("$$$/JavaScripts/X2L/Destination=Destination:");

    var strButtonBrowse = locate ("$$$ / JavaScripts/X2L/Browse = & Browse...");

    var strLabelFileNamePrefix = locate ("$$$ / JavaScripts/X2L/FileNamePrefix = filename prefix :"); ")

    var strCheckboxVisibleOnly = locate ("$$$ / JavaScripts/X2L/VisibleOnly only = & layers visible only");

    var strLabelFileType = locate ("$$$ / JavaScripts/X2L/FileType = Type of file :"); ")

    var strCheckboxIncludeICCProfile = locate ("$$$ / JavaScripts/X2L/IncludeICC = & include ICC profile");

    var strJPEGOptions = locate ("$$$ / JavaScripts/X2L/JPEGOptions = Options JPEG :"); ")

    var strLabelQuality = localize("$$$/JavaScripts/X2L/Quality=Quality:");

    var strCheckboxMaximizeCompatibility = locate ("$$$ / JavaScripts/X2L/enlarge = & maximize compatibility");

    var strTIFFOptions = locate ("$$$ / JavaScripts/X2L/TIFFOptions = TIFF Options :"); ")

    var strLabelImageCompression = locate ("$$$ / JavaScripts/X2L/ImageCompression = Compression of Image :"); ")

    var strNone = localize("$$$/JavaScripts/X2L/None=None");

    var strPDFOptions = locate ("$$$ / JavaScripts/X2L/PDFOptions = PDF Options :"); ")

    var strLabelEncoding = localize("$$$/JavaScripts/X2L/Encoding=Encoding:");

    var strTargaOptions = locate ("$$$ / JavaScripts/X2L/TargaOptions = Options of Targa :"); ")

    var strLabelDepth = localize("$$$/JavaScripts/X2L/Depth=Depth:");

    var strRadiobutton16bit = localize("$$$/JavaScripts/X2L/Bit16=16bit");

    var strRadiobutton24bit = localize("$$$/JavaScripts/X2L/Bit24=24bit");

    var strRadiobutton32bit = localize("$$$/JavaScripts/X2L/Bit32=32bit");

    var strBMPOptions = locate ("$$$ / JavaScripts/X2L/BMPOptions = Options of BMP :"); ")

    var strAlertSpecifyDestination = locate ("$$$ / JavaScripts/X2L/SpecifyDestination = please specify destination.");

    var strAlertDestinationNotExist = locate ("$$$ / JavaScripts/X2L/DestionationDoesNotExist = Destination does not exist.");

    var strTitleSelectDestination = locate ("$$$ / JavaScripts/X2L/SelectDestination = Select Destination");

    var strAlertDocumentMustBeOpened = locate ("$$$ / JavaScripts/X2L/OneDocument = you must have a document open for export!");

    var strAlertNeedMultipleLayers = locate ("$$$ / JavaScripts/X2L/NoLayers = you need a document with several layers to export!");

    var strAlertWasSuccessful = locate ("$$$ / JavaScripts/X2L/success = succeeded.");

    var strUnexpectedError = locate ("$$$ / JavaScripts/X2L/Unexpected = unexpected error");

    var strMessage = localize("$$$/JavaScripts/X2L/Message=X2L");

    var stretQuality = locate (' $$$ / locale_specific/JavaScripts/X2L/ETQualityLength = 30 ");

    var stretDestination = locate (' $$$ / locale_specific/JavaScripts/X2L/ETDestinationLength = 160 ');

    var strddFileType = locate (' $$$ / locale_specific/JavaScripts/X2L/DDFileType = 100 ');

    var strpnlOptions = locate (' $$$ / locale_specific/JavaScripts/X2L/PNLOptions = 100 ');

    var strPNG8Options = locate ("$$$ / JavaScripts/X2L/PNG8Options = PNG-8 Options :"); ")

    var strCheckboxPNGTransparency = localize("$$$/JavaScripts/X2L/Transparency=Transparency");

    var strCheckboxPNGInterlaced = localize("$$$/JavaScripts/X2L/Interlaced=Interlaced");

    var strCheckboxPNGTrm = locate ("$$$ / JavaScripts/X2L/Trim = Trim layers");

    var strPNG24Options = locate ("$$$ / JavaScripts/X2L/PNG24Options = Options format PNG-24 :"); ")

    the drop in the index from the file type list

    var png24Index = 7;

    main();

    ///////////////////////////////////////////////////////////////////////////////

    Functions

    ///////////////////////////////////////////////////////////////////////////////

    ///////////////////////////////////////////////////////////////////////////////

    Function: main

    Use: the core routine for this script

    Entry: < no >

    Return: < no >

    ///////////////////////////////////////////////////////////////////////////////

    main() {} function

    If (app.documents.length < = 0) {}

    If (DialogModes.NO! = app.playbackDisplayDialogs) {}

    Alert (strAlertDocumentMustBeOpened);

    }

    return to "Cancel"; quitting smoking, return "Cancel" (do not localize) makes the palette actions not to register our script

    }

    var exportInfo = new Object();

    initExportInfo (exportInfo);

    Search the last used via Photoshop register params, getCustomOptions rise if none does not exist

    try {}

    }

    {catch (e)}

    It's ok if we have any options, continue with the default settings

    }

    try {}

    var Nomdoc = app.activeDocument.name;  record the name of app.activeDocument before double.

    var layerCount = app.documents [docName].layers.length;

    var layerSetsCount = app.documents [docName].layerSets.length;

    If ((layerCount < = 1) & & (layerSetsCount < = 0)) {}

    If (DialogModes.NO! = app.playbackDisplayDialogs) {}

    Alert (strAlertNeedMultipleLayers);

    return to "Cancel"; quitting smoking, return "Cancel" (do not localize) makes the palette actions not to register our script

    }

    } else {}

    var rememberMaximize;

    var needMaximize = exportInfo.psdMaxComp? QueryStateType.ALWAYS: QueryStateType.NEVER;

    app.activeDocument = app.documents [docName];

    var duppedDocument = app.activeDocument.duplicate ();

    duppedDocument.activeLayer = duppedDocument.layers [duppedDocument.layers.length - 1]; to remove the

    setInvisibleAllArtLayers (duppedDocument);

    exportChildren (duppedDocument, app.documents [docName], exportInfo, duppedDocument, exportInfo.fileNamePrefix);

    duppedDocument.close (SaveOptions.DONOTSAVECHANGES);

    If (rememberMaximize! = undefined) {}

    app.preferences.maximizeCompatibility = rememberMaximize;

    }

    If (DialogModes.ALL == app.playbackDisplayDialogs) {}

    Alert (strTitle + strAlertWasSuccessful);

    }

    app.playbackDisplayDialogs = DialogModes.ALL;

    }

    } catch (e) {}

    If (DialogModes.NO! = app.playbackDisplayDialogs) {}

    Alert (e);

    }

    return to "Cancel"; quitting smoking, return "Cancel" (do not localize) makes the palette actions not to register our script

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: settingDialog

    Use: pop of the UI and get the user settings

    Entry: object of exportInfo containing our settings

    Back: OK, the info in the dialog box is set to the exportInfo object

    ///////////////////////////////////////////////////////////////////////////////

    function settingDialog (exportInfo) {}

    return;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: hideAllFileTypePanel

    Use: hide all panels in common stocks

    Entered: < none >, dlgMain is a global for this script

    Return: < any >, all the panels are now hidden

    ///////////////////////////////////////////////////////////////////////////////

    function hideAllFileTypePanel() {}

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: initExportInfo

    Use: create our default settings

    Entry: a new object

    Return: a new object with the default params

    ///////////////////////////////////////////////////////////////////////////////

    function initExportInfo (exportInfo) {}

    exportInfo.destination = new String (exportPath);

    exportInfo.fileNamePrefix = new String ("untitled_");

    exportInfo.visibleOnly = false;

    exportInfo.fileType = png24Index;

    exportInfo.icc = true;

    exportInfo.png24Transparency = true;

    exportInfo.png24Interlaced = false;

    exportInfo.png24Trim = true;

    try {}

    exportInfo.destination is Folder (new String (exportPath)) .fsName;. destination folder

    var tmp = app.activeDocument.fullName.name;

    exportInfo.fileNamePrefix = decodeURI (tmp.substring (0, tmp.indexOf("."))); part of the body filename

    } catch (someError) {}

    exportInfo.destination = new String (exportPath);

    exportInfo.fileNamePrefix = app.activeDocument.name; part of the body filename

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: saveFile

    Use: the routine of work, take our params and save the file accordingly

    Entry: refers to the document, the name of the output file,

    export of information object containing more information

    Return: < any >, a file on disk

    ///////////////////////////////////////////////////////////////////////////////

    function saveFile (docRef, fileNameBody, exportInfo) {}

    saveFile (docRef, fileNameBody, exportInfo, false, true);

    function saveFile (docRef, fileNameBody, exportInfo, interlacedValue, transparencyValue) {}

    var id6 = charIDToTypeID ('Expr');

    var desc3 = new ActionDescriptor();

    7 var = charIDToTypeID ("Usng");

    var desc4 = new ActionDescriptor();

    id8 var = charIDToTypeID ("Op");

    id9 var = charIDToTypeID ('SWOp');

    var id10 = charIDToTypeID ("OpSa");

    Desc4.putEnumerated (id8, id9, id10);

    id11 var = charIDToTypeID ("Fmt");

    id12 var = charIDToTypeID ("IRFm");

    id13 var = charIDToTypeID ("PN24");

    Desc4.putEnumerated (id11, id12, id13);

    var id14 = charIDToTypeID ("Introduction");

    Desc4.putBoolean (id14, interlacedValue);

    id15 var = charIDToTypeID ("Trns");

    Desc4.putBoolean (id15, transparencyValue);

    id16 var = charIDToTypeID ("Mtt");

    Desc4.putBoolean (id16, true);

    var id17 = charIDToTypeID ("MttR");

    Desc4.putInteger (id17, 255);

    var id18 = charIDToTypeID ("MttG");

    Desc4.putInteger (id18, 255);

    id19 var = charIDToTypeID ("MttB");

    Desc4.putInteger (id19, 255);

    id20 var = charIDToTypeID ("SHTM");

    Desc4.putBoolean (id20, false);

    id21 var = charIDToTypeID ("SImg");

    Desc4.putBoolean (id21, true);

    id22 var = charIDToTypeID ("OHSA");

    Desc4.putBoolean (id22, false);

    var id23 = charIDToTypeID ("SSLt");

    var list1 = new ActionList();

    Desc4.putList (id23, list1);

    var id24 = charIDToTypeID ("DIDr");

    Desc4.putBoolean (id24, false);

    id25 var is charIDToTypeID ('In');.

    Desc4.putPath (id25, new file (exportPath + "C:/users/Tim/Desktop/decors/png /" + fileNameBody + ".png"));

    var delayed26 = stringIDToTypeID ('SaveForWeb');

    Desc3.putObject (7, delayed26, desc4);

    executeAction (id6, desc3, DialogModes.NO);

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: zeroSuppress

    Use: return a string completed up to the figure (s)

    Entry: num to convert, the number of necessary digits

    Return: string padded all numbers

    ///////////////////////////////////////////////////////////////////////////////

    function zeroSuppress (num, number) {}

    var tmp = num.toString ();

    While (tmp.length < number) {}

    tmp = '0' + tmp;

    }

    return tmp;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: setInvisibleAllArtLayers

    Use: Unlock and make invisible all the layers of art, recursively

    Entry: document or layerset

    Back: all layers of art are unlocked and invisible

    ///////////////////////////////////////////////////////////////////////////////

    function setInvisibleAllArtLayers (obj) {}

    for (var i = 0; i < obj.artLayers.length; i ++) {}

    obj.artLayers [i] .allLocked = false;

    obj.artLayers [i] .visible = false;

    }

    for (var i = 0; i < obj.layerSets.length; i ++) {}

    setInvisibleAllArtLayers (obj.layerSets [i]);

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: removeAllInvisibleArtLayers

    Use: remove all layers invisible art, recursively

    Entry: document or layer set

    Return: < any >, all invisible layers are now gone

    ///////////////////////////////////////////////////////////////////////////////

    function removeAllInvisibleArtLayers (obj) {}

    for (var i = obj.artLayers.length - 1; 0 < = i; i--) {}

    try {}

    {if(!obj.artLayers[i].visible)}

    obj.artLayers [i] .remove ();

    }

    }

    {} catch (e)

    }

    }

    for (var i = obj.layerSets.length - 1; 0 < = i; i--) {}

    removeAllInvisibleArtLayers (obj.layerSets [i]);

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: removeAllEmptyLayerSets

    Use: find everything empty layer sets and remove them, recursively

    Entry: document or layer set

    Return: empty layer sets are now gone

    ///////////////////////////////////////////////////////////////////////////////

    function removeAllEmptyLayerSets (obj) {}

    var foundEmpty = true;

    for (var i = obj.layerSets.length - 1; 0 < = i; i--) {}

    If (removeAllEmptyLayerSets (obj.layerSets [i])) {}

    obj.layerSets [i] .remove ();

    } else {}

    foundEmpty = false;

    }

    }

    If (obj.artLayers.length > 0) {}

    foundEmpty = false;

    }

    Return foundEmpty;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: zeroSuppress

    Use: return a string completed up to the figure (s)

    Entry: num to convert, the number of necessary digits

    Return: string padded all numbers

    ///////////////////////////////////////////////////////////////////////////////

    function removeAllInvisible (docRef) {}

    removeAllInvisibleArtLayers (docRef);

    removeAllEmptyLayerSets (docRef);

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: exportChildren

    Use: find all the children in this document to record

    Entry: duplicate the original of the document, export info.

    Document reference, from file name

    Return: < any >, the documents are saved accordingly

    ///////////////////////////////////////////////////////////////////////////////

    function exportChildren (dupObj, orgObj, exportInfo, dupDocRef, fileNamePrefix) {}

    for (var i = 0; i < dupObj.artLayers.length; i ++) {}

    If (exportInfo.visibleOnly) {/ / only visible layer}

    If (! orgObj.artLayers [i] .visible) {}

    continue;

    }

    }

    dupObj.artLayers [i] .visible = true;

    var NomCouche = dupObj.artLayers [i] .name;  store the name of the layer before change doc

    var duppedDocumentTmp = dupDocRef.duplicate ();

    If ((png24Index == exportInfo.fileType) |) (png8Index is exportInfo.filetype)) {/ / PSD: maintain transparency}

    removeAllInvisible (duppedDocumentTmp);

    PNGFileOptions

    If (activeDocument.activeLayer.isBackgroundLayer == false) {//is it something other than a background layer?}

    app.activeDocument.trim (TrimType.TRANSPARENT);

    }

    } else {/ / all flatten}

    duppedDocumentTmp.flatten ();

    }

    Edit

    var Nomdoc = app.activeDocument.name;

    For some reason any indexOf fails if we include the '-', so we use 'copy' and decrement the index of 1.

    docName = docName.slice (0, docName.indexOf('copy')-1);

    var fileNameBody = (docName + '_' + layerName) .toLowerCase ();

    fileNameBody = fileNameBody.replace (/ [:------/------* \? \ "\ <>\ \ |"]) /g, "_");  // '/\:*?" <> |' -> « _ »

    If {(fileNameBody.length > 120)

    fileNameBody = fileNameBody.substring (0.120);

    }

    saveFile (duppedDocumentTmp, fileNameBody, exportInfo);

    duppedDocumentTmp.close (SaveOptions.DONOTSAVECHANGES);

    dupObj.artLayers [i] .visible = false;

    }

    for (var i = 0; i < dupObj.layerSets.length; i ++) {}

    If (exportInfo.visibleOnly) {/ / only visible layer}

    If (! orgObj.layerSets [i] .visible) {}

    continue;

    }

    }

    var fileNameBody = fileNamePrefix;

    fileNameBody += '_' + zeroSuppress (i, 4) + "s";

    exportChildren (dupObj.layerSets [i], orgObj.layerSets [i], exportInfo, dupDocRef, fileNameBody);  recursive call

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: objectToDescriptor

    Use: create an ActionDescriptor of a JavaScript object

    Entry: JavaScript Object (o)

    unique chain of the object (s)

    Pre process converter (f)

    Return: ActionDescriptor

    NOTE: Only, boolean, string, number and UnitValue are supported, use a pre processor

    to convert other types (f) to one of these forms.

    REUSE: This routine is used in other scripts. Please update those if you

    change. I'm not include using or eval statements that I want these

    stand-alone scripts.

    ///////////////////////////////////////////////////////////////////////////////

    function objectToDescriptor (o, s, f) {}

    o = {};

    var d = new ActionDescriptor;

    var l = o.reflect.properties.length;

    d.putString (app.charIDToTypeID ('Msge"), s);

    for (var i = 0; i < l; i ++) {}

    var k = o.reflect.properties [i] m:System.NET.SocketAddress.ToString ();

    If (k == '__proto__' | k == '__count__' | k == '__class__' | k == 'reflect')

    continue;

    var v = o [k];

    k = app.stringIDToTypeID (k);

    Switch (typeof (v)) {}

    case 'boolean ':

    d.putBoolean (k, v);

    break;

    case "string":

    d.putString (k, v);

    break;

    case 'number ':

    d.putDouble (k, v);

    break;

    by default:

    {

    If (v instanceof UnitValue) {}

    UC var = new Object;

    UC ["px"] = charIDToTypeID ("#Rlt"); unitDistance

    UC ["%"] = charIDToTypeID ("#Prc"); unitPercent

    d.putUnitDouble (k, uc [v.type], v.value);

    } else {}

    throw (new Error ("Unsupported type in objectToDescriptor" + typeof (v)));

    }

    }

    }

    }

    return d;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: descriptorToObject

    Use: updating a JavaScript from an ActionDescriptor object

    Entry: JavaScript Object (o), current to update object (output)

    Photoshop ActionDescriptor (d), descriptor shoot again for object params of

    unique chain of the object (s)

    JavaScript function (f), position the utility of conversion process

    Back: Nothing, update is applied to spent in JavaScript Object (o)

    NOTE: Only, boolean, string, number and UnitValue are supported, use a post-processor

    to convert other types (f) to one of these forms.

    REUSE: This routine is used in other scripts. Please update those if you

    change. I'm not include using or eval statements that I want these

    stand-alone scripts.

    ///////////////////////////////////////////////////////////////////////////////

    function descriptorToObject (o, d, f, s) {}

    var l = d.count;

    If {(l)

    var keyMessage = app.charIDToTypeID ("Msge");

    If (d.hasKey (keyMessage) & & (s! = d.getString (keyMessage))) return;

    }

    for (var i = 0; i < l; i ++) {}

    var k = d.getKey (i); // i + 1 ?

    var t = d.getType (k);

    STRK = app.typeIDToStringID (k);

    switch (t) {}

    case DescValueType.BOOLEANTYPE:

    o [strk] = d.getBoolean (k);

    break;

    case DescValueType.STRINGTYPE:

    o [strk] = d.getString (k);

    break;

    case DescValueType.DOUBLETYPE:

    o [strk] = d.getDouble (k);

    break;

    case DescValueType.UNITDOUBLE:

    {

    UC var = new Object;

    UC [charIDToTypeID ("#RLT")] = "px"; unitDistance

    UC [charIDToTypeID ("#PRC")] = '% '; unitPercent

    UC [charIDToTypeID ("#pxl")] = "px"; unitPixels

    UT var = d.getUnitDoubleType (k);

    var uv = d.getUnitDoubleValue (k);

    o [strk] = new UnitValue (uv, uc [ut]);

    }

    break;

    case DescValueType.INTEGERTYPE:

    case DescValueType.ALIASTYPE:

    case DescValueType.CLASSTYPE:

    case DescValueType.ENUMERATEDTYPE:

    case DescValueType.LISTTYPE:

    case DescValueType.OBJECTTYPE:

    case DescValueType.RAWTYPE:

    case DescValueType.REFERENCETYPE:

    by default:

    throw (new Error ("Unsupported type in descriptorToObject" + t));

    }

    }

    If (undefined! = f) {}

    o = f (o);

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: preProcessExportInfo

    Usage: Convert Photoshop enums to strings for storage

    Entry: Object of JavaScript of my parameters for this script

    Return: Object of JavaScript with objects converted for storage

    ///////////////////////////////////////////////////////////////////////////////

    function preProcessExportInfo (o) {}

    o.tiffCompression = o.tiffCompression.toString ();

    o.pdfEncoding = o.pdfEncoding.toString ();

    o.targaDepth = o.targaDepth.toString ();

    o.bmpDepth = o.bmpDepth.toString ();

    Return to o;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: postProcessExportInfo

    Usage: convert strings in destocking Photoshop enums

    Entry: Object of my parameters a string JavaScript

    Return: Object of JavaScript with objects in the form of enum

    ///////////////////////////////////////////////////////////////////////////////

    function postProcessExportInfo (o) {}

    o.tiffCompression = eval (o.tiffCompression);

    o.pdfEncoding = eval (o.pdfEncoding);

    o.targaDepth = eval (o.targaDepth);

    o.bmpDepth = eval (o.bmpDepth);

    Return to o;

    }

    ///////////////////////////////////////////////////////////////////////////

    Function: StrToIntWithDefault

    Usage: convert a string to a number, first depriving all the characters

    Input: a string and a number of default

    Return: a number

    ///////////////////////////////////////////////////////////////////////////

    function StrToIntWithDefault (s, n) {}

    var onlyNumbers = / [^ 0-9] / g;

    var t is SS. Replace (onlyNumbers, "");

    t = parseInt (t);

    If (! isNaN (t)) {}

    n = t;

    }

    return n;

    }

    End X2L.jsx

    The exportPath variable is what you want to change to the beginning. It should read:

    var exportPath = "~/Desktop/Backdrops/png/";
    exportPath = exportPath + '/layers';//Get rid of this
    

    The line you mentioned above should be:

    desc4.putPath( id25, new File( exportPath + fileNameBody + ".png") );
    

    Again, you must be logged in as 'Tim' to access folder of the user. If you're not, you must run the script as an administrator, and then specify the entire path.

  • [Locked] How to make a transparent background in my Illustrator file?

    I'm relatively new to Illustrator, (I work in CS4) and created a company for one of my clients logo.  When I place the logo in Photoshop or InDesign, the logo is in a white box.  How can I make the background transparent in the original Illustrator file?

    Illustrator > view > see the transparency grid

    You will see a checkerboard pattern indicating where you have transparency.

    Save your .ai with compatible pdf fle and place it in InDesign

    If you have placed as .eps in InDesign, you

    InDesgin >>view > display performance > high quality display

  • Newbie question: how to make my program to write to another file after so many loops?

    Im trying to get my program to write to a different file after 65 535 lines. First create a file to begin with, so the operator won't be necessary for the switch on? Secondly how do I change a path of file to another, some not friendly any statement? I joined my program, I'm not entirely sure what are the two roads of current file used for, is - this one to call the file and one to save?

    See you soon

    Attached VI will give you some tips.

    Christian

Maybe you are looking for

  • Please help: authorized devices

    Hello! Hard drive of my laptop got completely destroyed because of a defective recovery disc sent by Acer. I've lost everything. I have reinstalled iTunes on my laptop even, and that is to say that I have 4 of the 5 authorized devices eligible. I wou

  • Excite Pro AT10LE-A-108 - enrollment fails - no network connection

    Hello I bought the Tablet Toshiba excited Pro AT10LE-A-108 with SN XD187362S on July 14, 2015 and the product was shipped to me on August 22, 2015. After the Android 4.2 update registration of the device fails every time that I reboot the system, aft

  • Podcasts stopped loading up on iPad

    I am running iOS 9.3.1 on my iPad Air. When I sync my iPad, transfer podcasts is no longer my iMac to iPad. Podcasts seem to be downloaded on the Mac. New podcasts appear in the Podcast app, but they are not downloaded. When I try to download podcast

  • Equium P200-1ED: Windows randomly max & min and refusing to close

    I have an Equium P200-1ED I biought recently and Vista keep doing strange things with the windows open. Trying to scroll a window, click on a link or perform any action with a window, then the window can maximize randomly or minimize. Also when you t

  • updates SP3 requiring c/d

    I'm being invited to download windows xp sp3 updates. I downloaded these updates, but when I try to install it asks I don't have an installation cd. I contacted Dell computers and told me that this cd is not available. I checked to see what the file