Rename the file name background layer and move up

I need a script that I can run at the end of an action to rename the name of the background layer and move it to the top of all the layers and hide visibility.

That's what I want the layers of final document to look like, of course "filename" is the name of the file of the document itself. If I can change it to .jpg instead of a tif which would also be very useful.

I use CC 2015 the more up-to-date version.

Capture.JPG

I found these scripts that are not exactly what I need, but close and I can't understand how to manipulate.

Script layer moves

Open, do, and rename the layer "Julieanne Kost's Blog

Update: now, I think that this may be totally useless. Because of this, I wanted the original filename.jpg was so I could export the image as an asset later on the road. I just tried to create the image assets and found that it creates a folder for each file, so if someone can think of a better way, awesome.  I was able to create action and move all my layers of setting down instead of trying to move the layer of file name up and it worked, but because each file name is different I can't select and hide in my action. There is a solution simple but do not do exactly what I need.

Thank you!

Brandi

#target photoshop;
app.bringToFront();
if(documents.length){
var doc = activeDocument;
doc.activeLayer = doc.layers[doc.layers.length -1];
if(doc.activeLayer.isBackgroundLayer){
    doc.activeLayer.name = decodeURI(doc.name).toString().replace(/\..+$/,'') + ".jpg";
    doc.activeLayer.move(doc.layers[0], ElementPlacement.PLACEBEFORE);
    doc.activeLayer.visible = false;
    }
};

Tags: Photoshop

Similar Questions

  • Rename the file name

    I want to change a few medium-sized words my name of files like (SHT-30-SE45-CR-2003) HERE, I want TO CHANGE WORD from 30 to 25 AS (SHT -25- 2003-CR-SE45)

    1. Right mouse click on the file name.
    2. Select Rename from the context menu.
    3. The name will be highlighted.
    4. Use the left-right arrows of mouse or keyboard to move the cursor.
    5. Use the DELETE or BACKSPACE to delete characters.
    6. Type to add characters at the cursor location.
    7. Left mouse click on another part of the screen to change the name and exit.

    Tom Ferguson

  • Speed up the Lightroom like a madman to rename the files in your catalog and forcing LR to use Smart Previews

    I saw this tip posted at http://www.slrlounge.com/speed-adobe-lightrooms-performance/ , and I can't believe the performance gain.

    I also can't believe, that's why LR not swtch to the use of smart insights once that you have made instead of working directly with the raw file. WHY should I have to manually rename a file to LR thing in their use?

    Hi VidNoob,

    Lightroom was designed in this way he would read previews smart in scenarios where the Raw files are not available.

    The main advantage of having smart insights is to allow editing while travel when you don't have access to raw images or if your raw images are stored on the external hard drive and you do not want your external hard drive connected to your machine always.

    For this reason, you will need to rename manually or somehow tip Lightroom for not to use raw if files you want to access the intelligent insights.

    Kind regards

    Claes

  • Cannot right click Windows 7 Explorer of files to generate the copy of the file names in a Notepad or Excel-compatible file. HELP REQUESTED!

    I struggled for several hours to restore the service right click that I used to have XP to Windows 7.  I need to save lists of file names such as displayed in the file Explorer. Allowing you to right-click and save files in Notepad. This option has been removed in Windows 7 and anything put in place to restore it.

    I have lists of items in the inventory and need to copy and paste the image corresponding to a transfer sheet to allow the server names to match images in article SKU.  The file names are long and typing is a complete waste of time.

    I used to be able to find them in the Windows Explorer, right-click on the directory and generate a txt file that I could open in Notepad or Excel.  -Easy.  Now right-click only allows an export in an uneditable image in ONE NOTE. This is useless for me. I can't do anything with an image file - I need the editable data.

    Is there a solution?  I need only the file name and extension, not the full path, in a text or spreadsheet document propagation.

    I had used the Microsoft solution to install their dose without knowing the final format was a NOTE image file format and not a simple txt file. I try now too write the batch file:

    %windir%\Printdir.bat

    or edit it in order to keep the file in Notepad and do not make the final conversion into a single Note.

    The problem is that the fix from Microsoft, designed to fix this problem, has placed the conversion file in the root directory and it cannot be overwritten.  I refused the possibility to delete, edit or write the file due to the requirements of administrative privilege mandated by the security of Windows 7 too much.

    So if anyone has a solution to every problem - that would help - I am very tired and frustrated and not happy with Microsoft.  Their zealous concern with security made their unnecessary programs for me and have further discouraged me to convert to the windows 10. frustrations and nightmares are waiting for me there I can't imagine.  What I really want to do at this point is to go back to XP.

    He ate five hours of my day. I don't have the time to fight like that. I am trying to be productive, but all I got are monumental technical walls and roadblocks - often designed into the system. Frustrating doesn't begin to describe it.

    Found a solution on a Web site:

    http://www.watchingthenet.com/how-to-print-a-directory-tree-from-Windows-Explorer.html

    They said it was for VISTA, but worked for me under Windows 7. You will need to use Notepad to the command prompt and select run as administrator to save the file in the root directory.

    Thanks for the help.

    Cheers.

  • Photoshop CC (2015.5); Installation failure, unable to move the file. Rename the file and try again

    Right. So I downloaded and I logged into Adobe Creative cloud and I tried to download Photoshop CC (several times). But when it gets to 90%, I get the error in the title ("the Installation failed, cannot move the file. Rename the file, and then try again")

    I tried using error messages in the logs for troubleshooting, but I found nothing. Here are the 2 error messages I receive.

    'Key3List build failure'.

    and

    ""ACCC: could not find the LEIDs/LEID tags in the request data".

    I use Windows 10 x 64-bit PC

    If someone knows the problem, I found a solution and probable cause.

    I have Kaspersky Protection. Disable it while you download. This probably applies to more than a bag of protection.

    Thank you

  • When I click on 'File' and then 'new' it keeps open a new file as a layer and not a background. The RGB mode is selected.

    When I click on 'File' and then 'new' it keeps open a new file as a layer and not a background. The RGB mode is selected.

    With the new files to open as a layer and not a background, I'm not able to create multiple layers and it won't let me convert the background layer.

    How what happened. I've used PS yesterday and had no problem. Today, my computer did updates mandatory day and now this.

    Yes. You use the option of Pixel of the Ellipse tool. He's so setting pixels as it is supposed to do without creating a layer.

    Choose the option to the form:

    Also the menu layer > new layer creates layers and paper rolled up at the bottom of your layers palette also creates a new layer. I hope these work.

  • Always downloaded files like "attachment.ashx" instead of the file name and file type they actually are.

    Since I installed the new version of Firefox (version 8.0), I download each file is downloaded as "attachment.ashx" and will not open. I need to change the name and the type of file to open the document.

    This happens regardless of whether I download e-mail, a Web site, etc... All the files I downloaded also have been appointed and had added of file types, but Firefox them changes every time. I've never had this problem before using the same sites and downloads.

    Hi Linda,.

    You can download and rename the file with a .doc extension, so you can open them with word, sorry for my late reply.

    -Michelle

  • The file names changed in wingdings, including the file extension and I can't delete, change them, open, etc. Here are the pictures.

    Have (had) a file with multiple files it contains with pictures in each file.  A week ago the pictures were there.  Now, the names are replaced by wingdings as names and file extensions.  When I try to open it, it is not accessible and that the file name, directory name or volume label syntax is incorrect.  When I try to delete it, it says that the file name you specified is invalid or too long and specify a different name.  When I try to rename it, it tells me that if I change the file name extension, the file may become unusable.  If I try to change anyway, it says I've specified file name is not valid or too long.  Only tried for the name 1.  I did a restore in the case where a program interfered with that.  However, nothing has changed.  All of the suggestions.

    You can download and try to delete the file Unlocker http://www.softpedia.com/get/System/System-Miscellaneous/Unlocker.shtmlwilh.  Although it is not designed for this particular circumstance, it may very well work in all cases, as it has been very successful in a wide variety of situations are not specifically highlighted in the directions (where do not work the normal Vista options).  NOTE: Some antivirus flag programs this program as a malware, but it is a 'false positive' and is safe to use perferctly.  My own software to flag, but several other well-known software products it clean and the warning is included in the documentation of the program.

    I wish there was a way to save the images, but at this point, it seems that the only option is to delete because you can't rename files EHF (if this option is available-I hope that work above).  Unfortunately, System Restore does not affect the files of data, so even if a program caused this, System Restore can eliminate the cause, but it would not restore the files to their previous names.

    If you have Vista Business, Vista Ultimate or Vista Enterprise, you can be lucky because they retain the files called snapshots http://windows.microsoft.com/en-AU/windows-vista/Previous-versions-of-files-frequently-asked-questions.  It can be used to recover previous versions of files that have been changed or deleted accidentally.  Here's how: http://www.microsoft.com/windows/windows-vista/features/shadow-copy.aspx.

    If you have Vista Basic or Premium of Vista, you don't have a shadow, but there is a free program for you that does essentially the same thing called Shadow Explorer: http://www.shadowexplorer.com/.  I suggest that you download and implement as soon as POSSIBLE to protect you if you accidentally delete or modify a file.  It will not help you in this instance, but it can help save the next time.

    I'm more concerned about why this has happened in the first place and prevent it from happening again.  I saw file names change before, but never of wingdings which then do not let you open, edit, delete, or rename.  We will check some of your system files: go to start / all programs / accessories / command prompt and right click on command prompt, and then click Run as administrator.

    Type sfc/scannow, go and let it run.  It will scan and try to correct some of your system files.  If all goes well he comes complete with no corruption, it could not repair (if it has these post of corruption here or try to analyze it to find the problem or files using http://support.microsoft.com/kb/928228.  If you find any these corrupted files, try to post them here.  Maybe we can replace the good files on the disc.

    While in the command prompt, type chkdsk /f /r and enter and let it run.  It will scan and try to solve any corruption or bad sectors on your hard drive and remove especially as a cause.

    If this does not work, then please post repetitive errors in Event Viewer about the name change (Start / Control Panel / administrative tools / Event Viewer).  Here's how to use Event Viewer: http://www.bleepingcomputer.com/forums/topic40108.html.

    If this does not work, you will need to do a repair/system upgrade using the Windows Vista Installation disc authentic (you own or that you can borrow from someone).  Here is the procedure: http://www.vistax64.com/tutorials/88236-repair-install-vista.html as well as the upgrade from an earlier version of the Windows section of the following: http://support.microsoft.com/kb/918884.  Although this will not affect your data, settings or programs, you should always back up your data before you start just be on the safe side. If other procedures do not work, it is almost certain to work - but it will probably not fix your renamed files.  You can have a lot of updates to re - install (including all you need to remove service packs).  If the version on system with SP1 or SP2 preinstalled cane and the disc is an earlier version, then you will need to do a slipstream drive as follows: http://www.vistax64.com/tutorials/151606-vista-sp1-slipstream-installation-dvd.html.

    I hope one of these procedures can solve your problem.  If this isn't the case, after return and we will try something else.  Return message anyway so we know how it turns out.

    Good luck!

    Lorien - a - MCSE/MCSA/network + / A +.

  • How can I remove the file name of movies that I import from my camera?

    How can I remove the filename of movies that I import from my camera - the film shows the name of the file on the screen and then disappears slowly?  Using Win 7 Pro and Home premium 64-bit.   Thank you.

    Edition - shows only upward on one of the 2 computers I have / use.  Any movie file I import was that if camera, animation or imported from youtube.  All formats - slight differences in size, fonts and the location.

    Hi and thanks... Videos out of my camera I'm just drag and drop to the desktop.  They are avi - cam is a Canon about a year.  Others are .mov of 3D software I use - Cinema 4 d. I save animation software in the appropriate folder.   Youtube videos are made with YOutube Video Downloader and files are for most .flv but others come too.

    All of these files open when doubleclicked and the name of the file is very large print at the bottom of the screen may be 4 seconds then fades.  I've not edited somehow - they are the first "raw" video camera or animation software.

    It is not consistent, but especially it happens only on one machine - Win 7 Pro with all the updates.

    Thank you.

    ========================================
    I suspect the media player you use poster
    the file name. Check the properties/preferences of your
    Media player to see if you can change a setting.

    For example, VLC displays the name of the file... and you
    can go to... Tools / preferences / All / video...

    Scroll down to and uncheck 'Show Media title on Video'... / Save.

    The next time that VLC is started the video title should not be displayed.

  • Oracle WebLogic Server 11 g 1 material (10.3.6) the file name is different in the site and while his error getting buildstage

    Hi all

    I downloaded Oracle EBS https://edelivery.oracle.com/EPD/ 12.2.0 and selected for "outsourced manufacturing and Oracle for discrete Industries R12.2 V5 (12.2.3) v1, Linux x 86-64" on the page

    downloaded the files required for the staging area, in the Linux x86_64 gave error for "file name V29856 - 01.zip Oracle WebLogic Server 11 GR 1 material (10.3.6) Generic and coherence but on oracle delivery page, I can only find Oracle WebLogic Server 11 GR 1 material (10.3.6) and coherence for the file name of Linux x 86" : V29851 - 01.zip which is already uploaded on the stage space, how can I find the file in the site or should I rename to V29856 - 01.zip you please help me on this problem.

    Thank you

    JAI Srinivas.

    Srinivas,

    I think I got an idea after reading it several times

    This is what I understood

    checksum is a failure, so you use version 12.2 Overview disk file (1320300.1) to find which zip file must be downloaded. The overview shows V29856 - 01.zip downloaded but delivery file only has V29851 - 01 V29856 - 01.zip instead.

    I remember something like downloaded this sometimes return that I did checksum digest view used to check the integrity of files and went ahead with the buildstage.sh script to build the stadium. I have been able to complete installation without problems.

    You could try the same thing or try to rename as you suggest.

    I also recommend to contact support so that you will be clear and they will get to know.

    Concerning

    SANAE

  • Rename presets with the file name

    Hi guys,.

    I currently using presets to change my image but the name is so angry, he does not follow any order naming, just a total mess. I am using a batch program rename to rename this (filename), then import it to lightroom and realize that the name has not changed.

    "I Googled it and look like I need to change the ' title = ' with the text editor to change the name in lightroom. But I will have hundreds of presets and cannot change each of them manually more (past 4 hours to change the name of the file).

    Are these anyway that I can change the name of the fastest presets? Any program that correspond to the "title =" with the file name?

    Thank you

    User presets, click with the right button on the preset in the develop module, and then choose Rename.

    Batch renaming presets of in Lightroom is not possible.

  • Name of the file edited to layer

    I have a PSD file, called "WEB-MUG-12345" - I'm able to use a script to put this name in this same PSD file and use actions to change the font, size, placement.

    I need to insert asterisks, so in my PSD file, it reads ' * WEB-MUG-12345. " I am not able to insert asterisks as I'm used to modify text in Photoshop. I can't have a layer of jpeg of asterisks because I need to change the font for a font of barcode, and this bar code must be analyzed asterisks must be text with "WEB-MUG-12345".

    When I used manual Insertion of asterisks actions, she saved the '12345' as I need to make a sequence of automated commands, this number will change with each new file.

    This is the script I use now.

    Thanks in advance!

    This script is a variant of the script addTimeStamp.js, which is installed with PH7

    If (documents.length > 0)

    {

    var originalDialogMode = app.displayDialogs;

    app.displayDialogs = DialogModes.ERROR;

    var originalRulerUnits = preferences.rulerUnits;

    preferences.rulerUnits = Units.PIXELS;

    Try

    {

    var docRef = activeDocument;

    Now create a layer of text on the front

    var myLayerRef = docRef.artLayers.add ();

    myLayerRef.kind = LayerKind.TEXT;

    myLayerRef.name = "Filename";

    var myTextRef = myLayerRef.textItem;

    Strip extension

    var fileNameNoExtension = docRef.name;

    fileNameNoExtension = fileNameNoExtension.split (".");

    If (fileNameNoExtension.length > 1) {}

    -fileNameNoExtension.length;

    }

    fileNameNoExtension = fileNameNoExtension.join(".");

    myTextRef.contents = fileNameNoExtension;

    Set the position of the text on the left first, then the top percentages

    myTextRef.position = new Array (docRef.width / 2.5, docRef.height / 3.5);

    myTextRef.size = 15.76;

    }

    catch (e)

    {

    An error has occurred. Restore units of the rule, and then spread the error return

    to the user

    preferences.rulerUnits = originalRulerUnits;

    app.displayDialogs = originalDialogMode;

    throw e;

    }

    Everything went well. Restore units of the rule

    preferences.rulerUnits = originalRulerUnits;

    app.displayDialogs = originalDialogMode;

    }

    on the other

    {

    Alert ("you must have a document open to add the file name! ');

    }

    Courtesy of Add the file as a text layer name "Julieanne Kost's Blog of »

    If you want just the asterisks in the name of the file, try:

    myTextRef.contents = '*' + fileNameNoExtension +'*';
    
  • How to rename a file flat concatenation date and time, file name?

    I created a package where I run a first interface that uses a flat file to a server and load into a table of Teradata.

    After using the OdiFtpPut API, I used a FTP file and send to an outfit.

    Given that this procedure works every day, I need when FTP get concatenation destination file name, the date and time of execution.

    What is the best practice for this?

    using the odi APIs, you can get the date and time

    <%=odiRef.getSysDate("dd_MM_yyyy_hh_mm_ss")%>
    

    To rename, you can use the operating system command or using the command/UNIX windows and rename the file by adding the getsystdate API.

    Hope this fixes your condition

  • How to save an email in .eml format and customize the name of the file, for example the file name will be ' date, time, sender, title "?

    It would be fantastic if when save my emails on my computer the file name can be customized to be something different than just the title of the message. As I suggested in the question, if it could be set up to be "date, time, sender, title" that would be great, much assistance during the passage of a .eml files between colleagues, or just simply organize your emails into folders. Is this possible and if yes, how does one?

    Install ImportExportTools then adjust the Options (see photo).

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • I want to change the file name format "save under" so the date and time are first.

    When I select a few emails and then select "Save as" to keep a copy on my computer, the name of the file that is created has the date and time at the end of the file name of the email.
    Sample "save under" file name: "Habitat Follow Up - Bryan ([email protected]) - 2011-11-15 0744.eml.
    Is it possible to change the structure or format of the file name if the date and time of the email are initially the file name?

    Try ImportExportTools and customize the format of the file name in the options.

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

Maybe you are looking for

  • What iPad model is this A1489

    I would like to know model whatipad it comes to A1489

  • Vista on Satellite M40 - 285-> is there any problem?

    Hello I have a Satellite M40-285, my wish is to install Vista on it, I know about pcmcia issues that lock boot Vista and solve their pcmcia.sys file renaming, but this does not solve the problem really, pcmcia slot and card reader didn't work. So I w

  • iPad does not connect to the Macbook

    Hello guys, please, help me So, I wanted to add the iTunes music on Macbook Air to iPad mini2 I connected with the lightning for Macbook iPad and it shows me, that he is in charge, BUT in 1 SEC is disappears. That the load again, that disconnected It

  • where can I download vsstrace.exe

    I'm trying to troubleshoot a backup problem, where I get the VSS writers failure error. I searched for clues in the case log, I couldn't find any useful information. I want to use vsstrace to track what is the problem, but I'm unable to find it anywh

  • Dialog box Windows Defender log in

    Dialog box Windows Defender log in: initialization failed: 0 x 80070006. The handle is invisible. What is this and how can I change? (I run ESET on Vista)