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 +'*';

Tags: Photoshop

Similar Questions

  • Open a new file in photoshopcc and the name of the file is displayed but no Web white work. You can see it as a layer in the layers panel and if I pull on the grey area I see int on the layer, but not on the main screen.

    Open a new file in photoshop cc and the name of the file is displayed but no Web white work. You can see it as a layer in the layers panel and if I pull on the grey area I see int on the layer, but not on the main screen.

    Nice day!

    Could you please post a screenshot with the relevant panels visible?

    Not turning off"use graphics processor" in the Performance preference and restarting Photoshop have a bearing on the issue.

    Kind regards

    Pfaffenbichler

  • Record and edit the name of the file

    When I save slot, I want the image the name of the file of type I so that all future changes can be saved by clicking on 'save' and do not have to find and rename the file EACH TIME. Sometimes it works, sometimes it doesn't. It seems very random.

    I think it has something to do with 'save a copy' but more often that otherwise, that option is grayed out so I couldn't if I wanted to.

    Photoshop calls the functionality "Save as copy" when he feels that you can't save all the things in your image document in the format you have chosen.

    For example, if an image has layers or channels R, G, and B is in 16-bit mode, it will not be able to record all these things in a JPEG file.  So, he called the feature "Save as copy" and makes the assumption that you want to save the entire document, including all the extra stuff in a separate file of master in a format that can handle anything - for example, .psd.

    This leads to this (normal) behavior:

    1. you work on a drawing or a picture that has a bunch of fancy inside stuff (for example, a few layers, masks, some additional channels, 16-bit mode).

    2. you save in a master .psd file.  It does NOT call Save as copy, and FACT set default save filename.

    3. you work on it again.

    4. you save as .jpg file - for example to prepare for editing.  This called save as copy and the rest .psd. default file name

    5. you try to leave Photoshop and it tells you that you have not saved your file master .psd, so you save it.

    If you want the operation to save as to reset your default file name, flatten, delete channels, other or lower color depth to make it compatible with the format that you save it, so save as copy is not forced.  Or save it under another different .psd or .tif able to manage these features.

    Hope this helps to understand.

    -Christmas

  • Can not good press the mouse on the name of the file and get the option of e-mail

    Can not good press the mouse on the name of the file and get the option of e-mail

    Hello! If I understand your question, you want to right-click on a file and attach it in Mail. To do this, click on the file with two fingers on the touchpad, or control + click on the file, select 'Share', then 'mail '.

    I hope this helps!

  • How can I remove the title of the page above the file, Edit, View, history, bookmark tab?

    How can I remove the title of the page above the file, Edit, View, story, tab bookmarks in firefox

    In Firefox, 29 and 30 of Firefox:

    button '3-bar' menu > customize

    Bottom left, click the title bar button to enable and disable the title.

    In Firefox 28, I actually do not remember!

    I would be remiss in my duty if I didn't remind you:

  • What is c? -osxupdcombo10.10.5.dmg - he started to automatically download on my mac and I stopped it... This is a copy of the name of the file and I have no idea what it is?    osxupdcombo10.10.5.dmg

    What is this file? -osxupdcombo10.10.5.dmg - he started to automatically download on my mac and I stopped it... This is a copy of the name of the file and I have no idea what it is?    osxupdcombo10.10.5.dmg

    This is the last update to Yosemite.

    If you do not run 10.10.5 then you run to certain security risks.

  • What is the name of the file where the contacts are stored.

    I need to restore my contacts from a backup. What is the name of the file where the contacts are stored?

    According to the contacts or the premises or in iCloud:

    ~/Library/application support/address book/metadata for local contacts

    ~/Library/application Suport/address book/Sources find the iCloud account and file metadata

    However, if your backup is located in Time Machine, open the contacts application and any asset, enter Time Machine. Go back in time to find contacts. Select them and click on restore.

  • Saving PDFs: I would like to be able to change the name of the file and the destination of the downloads without jumping through hoops.

    I download a lot of PDF files and I organize their file name. I want to record on my computer to read later. When I have a PDF document is opened in the browser, it's particularly embarrassing. As it is, I have two options:

    Save the file:
    This automatically sends the file to a temporary folder to download, which Windows will not let me access without memorizing the exact location. It also saves automatically under the default file name, I never keep. If I use this option, I have to go back and manually move the file in my documents and rename it.

    Open the file:
    This opens the file in a new window from Adobe (while simultaneously recording to the same temporary folder). I have to open the file in the browser, and then open it in a new window, then hit save slot, then PDF, then change the destination folder (because the default value is the temp folder) and name of the file.

    Please, give me manual control of downloads! I want just a save as option.

    Is it possible to right click on the download link and use Save Link as...?
    Who will have the choice of "off-site" hands of Adobe.

  • When I download something on the Web, the "Downloads" window opens, but that the window remains empty. Before it used to show at least the name of the file and I was able to open the file in the "Downloads" window Is it possible to recover this feature?

    I am running Windows XP that is updated to the latest version (which I think could be Service Pack 3, but not positive.) Mozilla Firefox is version 5.0. I tend to use Google as my search engine, so most of the stuff I download comes through sites found through Google, which is also updated.

    At some point in the past (there are maybe a few versions) when I want to download a file from the Internet, the "downloads" window opens and in the window would display the name of the file I got was download or came from download. I think I used to be able to then click on the file name and opens the file (or the Setup file if necessary to launch the new program). I am currently using Firefox 5.0 (screen "On Firefox" said that it is up to date) and when I download a file or document, the "Downloads" window appears on the screen as it has always in the past, but it remains empty, that is, nothing is displayed in the download area. I don't remember to make configuration changes, etc., that may have caused the window to remain a Virgin, but I could be wrong. I know how to find the items I downloaded (My Documents / downloads) and can generally guess what might be the name of the downloaded file, but it was much easier when something (anything) appeared in the downloads window.

    I'd like someone to tell me about a simple solution for this. I'm ready to be pretty embarrassed that I did something I should not have.

    In the Firefox Options / confidentiality be sure 'Remember download history"is checked. To see all the options on this Panel, "Firefox will be" must be set to "use the custom settings for history".

    To find your OS information, on your Windows desktop, right-click on the icon my computer, choose Properties, this little window is info on your operating system.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • When I open the bookmarks, the area to the right of the name of the file is really, really wide. This can be reduced?

    After you install Firefox 5, the window drop-down bookmarks menu has changed. Firstly, the area to the right of the name of the file is extremely large. Second, when you click on a file, including the bookmark links, list screen bookmarks covers the names of files, making it impossible to simply scroll to the list of file name.

    Firefox 4 and later versions will automatically adjust the width to the length of the longest name.

    You can scroll all bookmarks in the list and shorten the names to reduce the total width.

  • I got lost somehow bars at the top of the browser that show the 'file, edit', etc. options, as well as the bar which has the current web address, bookmarks, home, cancel, etc. How to bring back these toolbars?

    I always open my homepage (Google) and the browser will find things from there, but it's the only way I can navigate around. I downloaded and reinstalled the latest version of Firefox, but it always opens with the same problem, even after restarting the computer. The toolbar that I have in mind is that with my favorites by tabs.

    See what happened to the file, edit and view menus?

  • When I opened the window "save the Page under", the drop-down box file name indicates the files that have been saved a long time ago. It is not cleared by a function 'clear history' that I can find. How can I erase this?

    1. Question

    When I opened the window "save the Page under", the drop-down box file name indicates the files that have been saved a long time ago. It is not cleared by a function 'clear history' that I can find. How can I erase this?

    Hello.

    I think this is a related issue of Windows, because it is the Manager to save the windows file that we are talking about here (right?). You should contact Microsoft for help with this one, I think. You expect to be able to delete entries simply by touching delete on your keyboard when they are concentrated (that is how it goes for the removal of the form entries specific autocomplete in Firefox), but I have not tried.

    I'm sorry I can't be more helpful.

  • I lost the file, Edit, tools, Options etc. from the top of my browser window. How can I fix it?

    At the top of my browser page, that I used to have files, edit, tools, Options, etc. helps well disappeared. How to make a comeback?

    This has happened

    Each time Firefox opened

    == do not know when, but after an update, I think.

    In Firefox 3.6 and later Windows, you can hide the menu bar on "view > toolbars" or via the contextual right click menu on a toolbar.
    Press F10 or press and hold the Alt key to bring up the menu bar temporarily.
    Go to "view > toolbars", right click on the menu bar, or press Alt + V T to select to show or hide toolbars (click on an entry to switch from the State).

    See also what happened to the file, edit and view menus? and http://kb.mozillazine.org/Toolbar_customization

  • I can't restore the "file, edit, history, Favorites, etc. online.» I deleted it by mistake. How can I get that back?

    How to restore my line that has "file, edit,... history, bookmarks, etc..?

    You can hide the menu bar in Firefox 3.6 on Windows, on "view > toolbars" or via the contextual right click menu on a toolbar.
    Press in and hold the Alt key to display the menu bar.
    Go to "view > toolbars", right click on the menu bar, or press Alt + V T to select the toolbars to show or hide.

    See also what happened to the file, edit and view menus?

  • Name of the file with the worksheet

    Hi, I have save data with 'Write to spreadsheet' and I know I can save in a file created with a path or create a new.

    I need name and create a file for each day of automaticlly. If it is Monday, the file name will be Monday and save the data of the Nations United this file.

    How can I do?

    If you use the entry in the spreadsheet file, you do not use the open/create file.  Use the path to build to add the name of the file in the desired folder and wire the new path to writing to VI spreadsheet file.

Maybe you are looking for