Photoshop script to copy all the layers of close PSD to open the current document
Hi, I have very limited capacity script so this task is above my pay grade
I'm looking for a script to read and copy all the layers in a PSD saved file and copy them into the current active document. The two documents have the same size and I need to be able to change text layers after copying. Anyone has any advice or examples of how I might be able to do this?
Thank you in advance for any help you can offer.
Kind regards
Marcus
Try the script in entry below. You must open the destination file, and you must put in the path and name where your source file. It will not choose a layer from background from the source file.
#target photoshop var sFile = new File('~/desktop/template.psd');//change path to template file var doc = activeDocument; var sDoc = open(sFile); var idselectAllLayers = stringIDToTypeID( "selectAllLayers" ); var desc2 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref1 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref1.putEnumerated( idLyr, idOrdn, idTrgt ); desc2.putReference( idnull, ref1 ); executeAction( idselectAllLayers, desc2, DialogModes.NO ); var idDplc = charIDToTypeID( "Dplc" ); var desc5 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref2 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref2.putEnumerated( idLyr, idOrdn, idTrgt ); desc5.putReference( idnull, ref2 ); var idT = charIDToTypeID( "T " ); var ref3 = new ActionReference(); var idDcmn = charIDToTypeID( "Dcmn" ); ref3.putName( idDcmn, doc.name ); desc5.putReference( idT, ref3 ); var idVrsn = charIDToTypeID( "Vrsn" ); desc5.putInteger( idVrsn, 5 ); var idIdnt = charIDToTypeID( "Idnt" ); var list1 = new ActionList(); list1.putInteger( 3 ); list1.putInteger( 4 ); desc5.putList( idIdnt, list1 ); executeAction( idDplc, desc5, DialogModes.NO );
Tags: Photoshop
Similar Questions
-
Regarding my PHOTOSHOP CS5.1: I upgraded my computer, copy all the content of the hard drive to the new, and although I have disabled the software, I can't turn it on again in the new hard drive. This is an original product with a serial number. How can I activate it?
Hi Uri,
Please click on the link below and contact the Adobe Support via chat.
Hope this will help you.
Kind regards
Hervé Khare
-
Mounting external USB HDD to host copy all the s vm to the local data store
I have a scripted ESXi installation that works very well, but once the installation is completed I want to copy all the VM from a disk external DRIVE to store data on the host computer.
There is no attached servers/clients, so it must be done from the host itself.
in thele/var/log/usb.log file on the hard drive is recognized, but how to access and copy all the external HARD disc VM in the data store?
install vmware tools
-
Is there a way retroactively copy all the text highlighted?
I pointed out the text in a pdf document without activating the function "copy the text selected highlight... ». Is there a way retroactively copy all the text highlighted?
Yes, it is possible to do it with a script (in most cases). I'll send you a PM with more details.
-
Jin
Sometimes, my keyboard stops responding, despite the checkist troubleshooting.
Then it works again after I have shut down and restart my mac!
is this normal? If this isn't the case, that due to an application? for example, I installed photoshop and use it all the time... also openoffice document prog...
What else could be?
I just replace the keyboard with a new one, but the problem persists.
my mac has also been in mac repair and they found nothing wrong.
Thank you!
Please run and view a report of EtreCheck http://etrecheck.com/
-
Quick way to copy all the data to Ipad Air 2 for Ipad Pro
I would like to copy all the data on my Ipad 2 for the new Ipad Pro Air I just bought to avoid Delisle in downloading applications.
Hello
You'll be happy to learn that it is a very easy process!
This should help:
Transfer the contents of an iPhone, iPad or iPod touch to a new device - Apple Support
Let me know how you go!
All the best.
-
How can I copy all the 18 000 pictures on my imac to an external hard drive to give to my daughter and keep them all on my imac
Your daughter have a Mac and use Photos? If so just copy your library of Photos to SMT, it must be formatted OS X Extended (journaled) with the defined property is ignored. Then she can use the SMT library or copy it on his Mac.
If she doesn't have a Mac do the following:
1 - Create a new folder on the external drive.
2 - Select all photos in the library (in the window of Photos).
3. Select the file ➙ ➙ export export Original unmodified for XXXXX items menu option.
4. in the format of subfolder select Export window = name of the time
5. in the next window, select the folder that you created on the external drive as the destination of export and export all your photos to this. Photos at every moment in your photo library will be put in a folder with the date of that moment and this issue will be put on the EHD in the folder that you created.
-
"I can't copy all the files to my kingston sd card, when I try to copy his shows that" remove right protection "so plsss help me get rid of this.
Hi ebugsasi,To remove protect him writing on a kingston Micro SD cards, locate a switch or button on the side of the micro SD adapter card. It will normally be a symbol of locking/unlocking on it. Put it to the unlocked position.This should remove the write-protection feature.Keep me updated on the status of the issue. -
How to copy all the names of files in a folder for Notepad?
I often have to copy all the file names with extensions and the full path to a folder to a ".txt" document, but cannot. Is there an easy way to do this? How? Is there a simple batch file that will do it? Freeware might work, but I'd rather have a simple batch.bat or .exe file that works.
You can do it, but I don't think that it will include the entire path:Dir *. * > dir.txtStevewrote in message News: * e-mail address is removed from the privacy *... I often have to copy all the file names with extensions and the full path to a folder to a ".txt" document, but cannot. Is there an easy way to do this? How? Is there a simple batch file that will do it? Freeware might work, but I'd rather have a simple batch.bat or .exe file that works.
-
How can I copy all the content from my old hard drive on my hard drive again?
My old PC is on its last breath and I decided to replace it. I bought a new more powerful PC and thought that by installing my old hard drive (Windows 7 on a Sata Drive) be simple and give me all my current programs without the need to install again. Unfortunately, my new PC refuses to recognize the old drive and I need these programs. How to copy all the contents of a new (bigger hard disk) without loss of functionality.
Any help greatly appreciated
Original title: old to new hard drive
Remove the old drive, (just unplug its cables) reboot the PC, it does not start?
If the method of connection of the old drive was at fault
(Or bother readers origonal connections when you installed the old disk)
BTW, you can not use the old drive as primary boot on your new PC drive, or you can access all the programs that have been installed on this subject.
-
Calc help - copy all the accounts from Parent to child
I was copying some accounts from Parent to child by listing each account using a Sun cross. The child, that I am focusing the attribute is "Open". But now I need to copy all the accounts from parent to child, and there may be hundreds of accounts. Is there a way to move all of them at once rather than list them one at a time?
DIFFICULTY (& "ScenarioA", "Esityksen", CurrYr, Jan,@RELATIVE("Entity",0) AND @Attribute ("Open"))
'Sales' = 'Dirty'-> @Parent (@Currmbr ("Entity"));
"Salary" = "salary"-> @Parent (@Currmbr ("Entity"));
EndFix
Of course, exchanging places with your accounts and periods.
DIFFICULTY (& CurrYr, "ScenarioA", "Esityksen", @RELATIVE("Account",0), @RELATIVE("Entity",0) AND @Attribute ("Open"))
"Jan" = "Jan"-> @Parent (@Currmbr ("Entity"));
EndFix
Sabrina
-
My computer crashed and after the purchase of another, I used the Migration Wizard to copy all the files to the new computer. Everything was going well until I tried to launch LR6. It was two weeks ago and a search for many pages of the Adobe Web site. I think I've exhausted all the remedies listed without success codes error A12E5 to questions cloud creative, Manager of Application and error 1: Configuration problems. I'm ready to reformat my computer and try again with Time Machine. Help would be greatly appreciated before I waste more time on this task. Any further suggestions?
Migration of Mac with Time Machine WILL NOT WORK with the Adobe program activations due to hidden registration files
Sign out of your account... Uninstall... to run vacuuming...
-non-Cloud programs, to disable the service before uninstalling
-http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)
-using the vacuuming after uninstalling and before reinstalling is often necessary
-https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
-Restart your computer... Sign in to your account... Reinstall
-
I have recently installed Windows 10. Now, when I try to merge raw photos from Nikon to HDR Pro (in bridge), fusion hangs in 2015 of Photoshop and never finished all the steps. Any suggestions or workarounds? I don't seem to have this problem in Windows 8.
Hello Putnam,
Please follow the steps below.
> Launch Photoshop
> Click Edit > Preferences > Camera Raw
> Uncheck CPU chart use
> Click Ok
> Quit Photoshop and Bridge
> Relaunch Photoshop and verify that the problem.
Let me know if it helps.
~ UL
-
How to install the plugin and outside the filter in photoshop cs? and all the Special filters for special effects?
Please recommend me a better and such me step by step how I'll add more plugins n filter
One I normally come with an installer or installation instructions. See the documentation for the plug-in you are trying to install. It sounds like you don't know what plug-ins you want to install. In this case, you don't need to install a. At some point, you can read about a plug-in and what she can do and you feel you need it. Then you will have a reason to install a plug-in that is not installed by default. There may be a cost involved more useful plugins are not free.
Adobe Plug_ins optional downloads are Plugins Adobe want from Photoshop and is no longer installed by default. Also at some point is no longer will install in the course Photoshop Adobe will remove the functionality or use of interfaces. For example CS5 optional plugins install in perpetual CS6 Windows version 13.0.1.3 but not in version 13.1.2 subscription or perpetual Mac version 13.0.6 fot its 64-bit only and CS5 Mac Optional Picture package plug-in is a plug-in of only 32-bit.
You will need to keep older versions of Photoshop if Adobe remove features you use in newer versions of Photoshop.
-
I have a pdf file that contains the text if I copy all the text and paste it into Notepad and save the .txt file is it changes the ascii value of the text?
If the encoding is ASCII? Laughing out loud
Be well...
Maybe you are looking for
-
Could not find 'show all bookmarks' or 'export' to save them, make it back to explorere?
I use windows 7 Professional 64-bit.I find no "show all bookmarks" or "Report" to save my favorites.I've been to 'Help', clicked on the icon on the right referring and cannot see the same illustration that you want.Sadly and reluctantly, if I can't s
-
Retrieve account with no knowning it's e-mail?
Hello.Exceed the Microsoft has severely damaged the steps get Skype.Once I lost my other (real) accounts password, I tried to recover, but he always redirected me to Hotmail password recovery. So, I am somehow in this Skype account via hotmail acc, I
-
"Now attempt to network connection.
I need HELP... I have a Hp Photosmart Premium e-All-In-One C310a. That is the problem. (Internet) cable was disconnected, now upward, can not get the printer to connect. Everything worked fine before. As he tried to connect, it was stated that I didn
-
Deadlock in Windows Update - Windows 7 running on Boot Camp
This is a new installation by using a product key and everything seem to be working now EXCEPT Windows Update - there's always the search. How can I get the life in it?
-
Can I know how to work the dvd player function