JS script to add custom text and the name of file to file info in the title of the document

Would be very happy for any help with this one...

JS script add custom text and the name of file to file info in the title of the document

Thank you very much

Super: O)

I have a folder of say 50 images and I want to run a lot of JS script

example in the title of the document: image Nr 81205

custom text is 'image Nr' + '81205 file name.

activeDocument.info.title ="Nr of pictures"+ decodeURI(activeDocument.name);

This would be correct without seening the ext file

Thank you very much

Tags: Photoshop

Similar Questions

  • I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.

    I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.  I am a novice using Javascript, so what am I doing wrong?

    Cannot use either addWatermarkFromFile or addWatermarkFromText methods of document with player as shown in the documentation. You can hide/display the form fields and the existing layers, so consider this approach.

  • Fill a field with the results of the other (sort and add custom text)

    I have a PDF form with many fields popup asking 'Yes', 'Maybe' or 'no '. I need a way to collect the answers and sorting, all the 'yes' first of all, that all the 'maybe', all the 'no '. When I need after that sort of response of three, is put in a 'Results' field with the container of the ToolTips for each popup and the ability to add a "BOLD" text, between three sorted responses.

    I have found some javascript in the forum here to collect data from field only. It seems to be easy to modify if you have several fields to collect/sorting/extract.

    Assistance or management to do will be appreciated.

    Thank you!

    Assuming that you have 50 menus named A1, A2... A50 and each drop-down list has three elements (Yes, maybe, no), you could do something like:

    Initialize object to contain the info of the answer

    var oResponse = {}

    'Yes': [],.

    "Maybe": [],.

    ['No':]

    };

    var i, f;

    Browse fields (A1, A2... A50)

    for (i = 1; i<= 50;="" i="" +="1)">

    Get a reference to the current field

    f = getField ("A" + i);

    Add ToolTip text of the current field to the corresponding table in the response object

    oResponse [f.valueAsString] .push (f.userName);

    }

    Generate the output string

    aOutput var = [];

    If (oResponse ['yes'] .length > 0) aOutput.push ("It's the priority YES\r" + oResponse ["Yes"] .join ("\r"));

    If (oResponse ["Maybe"] .length > 0) aOutput.push ("It's the priority MAYBE\r" + oResponse ["Maybe"] .join ("\r"));

    If (oResponse ['No'] .length > 0) aOutput.push ("It's the priority NO\r" + oResponse ["No"] .join ("\r"));

    Enter the results

    getField("Results").value = aOutput.join("\r\r");

  • Script to search for text and remove the hyperlink and characterstyle link which applies (back to normal)

    I need help with my script to search for text and remove the hyperlink and characterstyle link which applies (returns the normal text).

    I can't do either as I want.  I want the user to be able to type in a dialog text they want to search for, do search this text IGNORING case (case insensitive) and then for all instances that he find it, remove character styles that are applied to the (set to [none]) and delete the hyperlinks.

    My code seems to define the character style [None], when I click on the text and look at the window of character Styles, BUT all old styles (font color, underline) are always applied and removed not as I want.

    Also, I can't understand how to remove all of the old links.

    Here is my code:

    myDocument var = app.activeDocument;

    var noneStyle = myDocument.characterStyles.item ("[None]");

    var myFindVal = "";

    var myErrorText = "";

    var myErrorCount = 0;

    myDialog = app.dialogs.add var ({name: "search user submitted text and delete hyperlinks from objects found.", canCancel: true});

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    {with (borderPanels.Add ())}

    staticTexts.add ({staticLabel: "search and delete hyperlinks for :"}); "})

    myTextBox var = textEditboxes.add({minWidth:100});)

    }

    }

    }

    If (myDialog.show () == true) {}

    myFindVal = myTextBox.editContents;

    doSearchAndReplace();

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    If (myErrorCount == 0) {}

    Alert ("done! ("Part of the links have been removed for: '" + myFindVal + ""! "");

    }

    else {}

    Alert ("last error: '" + myErrorText + "' & number of errors:" + myErrorCount);

    }

    }

    myDialog.destroy ();

    function doSearchAndReplace() {}

    app.findTextPreferences.findWhat = myFindVal;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    var myFoundItems = myDocument.findText ();

    for (i = 0; i < myFoundItems.length; i ++) {}

    myRemoveHyperlinkAndStyle (myFoundItems [i]);

    }

    }

    function myRemoveHyperlinkAndStyle (myFoundItem) {}

    try {}

    myDocument.hyperlinkTextDestinations.item (myFoundItem) .remove ();

    myDocument.hyperlinkTextSources.item (myFoundItem) .remove ();

    myDocument.hyperlinkURLDestinations.item (myFoundItem) .remove ();

    myFoundItem.applyCharacterStyle (noneStyle);

    }

    {catch (MyError)}

    myErrorCount ++;

    myErrorText = MonErreur;

    }

    }

    Hello

    Right, some hyperlink might be a pageItem...

    expand the 'if' condition with:

    If (myHyp [len].source.hasOwnProperty ("sourceText") &... content ==...)

    Jarek

  • This will remove all your custom settings and the settings of many extensions.

    Hello

    I was reading this article of knowledge and he says:
    "This will delete all your custom settings and many extensions settings."
    What are the custom settings?

    for example one of these and what else
    bookmarks?
    Add - ons?
    Top toolbar - Customize the toolbar
    Add on the toolbar
    Firefox/preferences
    Authorization Manager settings
    the new page open

    Corrupted preference file
    File preferences may be corrupt, Firefox prevents writing to it. If you delete this file, Firefox will automatically create another when it comes to.

    Here's how to delete the prefs.js file.

    This will remove all your custom settings and the settings of many extensions.
    Open your profile folder:

    In the menu bar, click the Help menu and select troubleshooting information. The troubleshooting information tab will open.

    In the section the Application databases, click view in the Finder. It will open a window with the folder of your profile.
    Note: If you are unable to open or use Firefox, follow the instructions for finding your profile without having to open Firefox.

    In the menu bar, click Firefox and select Quit Firefox

    Locate the prefs.js file (and, if applicable, the prefs.js.moztmp file).
    Delete these files and files prefs - n.js where n is a number (e.g. prefs - 2.js).
    If there is, remove the Invalidprefs.js.
    Restart Firefox. You should now have reset all preferences.

    Based on information from preferences not saved (mozillaZine KB)

    See also http://kb.mozillazine.org/Profile_folder_-_Firefox

    #1: there are too many pref for all kinds of adjustment which will offer a recipe of what you lose and how to keep certain parameters.
    It is possible to copy specific lines of a prefs.js to this file in another profile or restore some settings after deleting this file in the current profile folder.

    All the prefs that show as a user defined and appear in bold on the topic: config page are stored in the prefs.js file.

    This includes the changes you make and data Firefox itself and extensions store as data/parameters in a pref.
    It's

    #2,3: the localstore.rdf file stores the toolbar configuration and other data.

    #4: the current versions of Firefox shows the menu entry "Tabs" at the top menu ' display > toolbars "and" Firefox > Options ' and in the menus toolbar pop-up if the tabs are not in the default position on the top.

    If the notches located on the top and the menu entry is not available and you want to move the tabs under the navigation toolbar, then you have to toggle the pref browser.tabs.onTop false on the subject: config page.

    A restart of Firefox is necessary for updating the menu entry to display or remove.

    Note that this pref will no longer effect when the code Australis lands on the output channel (code Australis will probably land in Firefox 29).

    #5: see https://support.mozilla.org/kb/Clear+Recent+History

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, pop-ups, installing the software, stored passwords in permissions.sqlite and other site specific data stored in content - prefs.sqlite (including zoom on the page).

    Deletion of cookies will delete all specified (selected) cookies, including cookies with an exception allowing you want to keep.

    #6,7: history of search bar is the story of the search bar (Google) on the Navigation toolbar.

    All recorded data to a form on a web page is included in the data in the form, but you can not separate and distinguish the two.

    Browsing history is the history of the web pages you have visited.

    #8: session cookies are always kept in memory and never stored on the disc in cookies.sqlite

    You can only delete specific cookies manually in the Cookie Manager or leave cookies expire when you close Firefox to make them behave like session cookies.

    Cookies of other compensation will include all cookies and don't obey the exceptions that you have made.

    #9
    Data stored in storage DOM is not stored in cookies.sqlite, but it is generally stored in the webappsstore.sqlite file or possibly in the form of data in IndexedDB.

  • run us a business and I need my iphone finaces texts and the browser history sent from my iphone. It does not look, I need just as his envoy to mine. How can we do this

    Hello

    Recently, we started a new business and have many contacts if intouch with his phone, and we are simply not able to my number there at each of them. My fiance is have a time difficult to return all customers of follow-up as well we lose business. He and I would him iphone messages sent to my phone, but it does not look and he wishes also that its Envoy to my phone, as he seeks address I need to keep track of the browser history.

    Long and short, how can I get my fiancés texts and the history of the browser on my phone, but it does not get my texts or the browser history has sent to her? Can I just add my apple ID on his phone?

    Both phones are Iphone 5

    Sharing an Apple ID, you will have that but it works in two ways - you get sound and it receives your messages

    Check with the carrier if they offer a shipping service

  • Cannot add alternate text and tooltips to your images

    Hello

    I use CC of Muse in the Apple iMAC machine.  The version of Muse CC is 232.

    After watching the video, http://tv.adobe.com/watch/learn-adobe-muse-cc/using-titles-and-alt-text-to-images/, I am unable to bring up the image property window when I press the right hand button of my mouse from Apple.

    As such, I can't add the alternative text and IMG to my images, including the logo, facebook and Twitter Logos.

    Can someone tell me please how to fix my problem?  How is it, I cannot display the image property when I press the right hand click the mouse.  The property of the image is also displayed on the menu of Muse CC.

    Thank you.

    MaxPlus.

    MaxPlus Hello,

    Try to do CTRL + click once to see if it works. Also, if an image is added as a fill, it does not add alternate text and tooltips option, because then it is added as a background and not as an image.

    See you soon

    Parikshit

  • How the SUM cells including the text and the number?

    Hello world

    Someone can tell me how the SUM cells include the text and the number?

    1 Bob 20

    2 30 Jane

    3 50 Jame

    Total 100

    Thank you

    Hi Jordan,.

    If the numbers are not always two digits, FIND the position of the space between the number and name:

    Formula in B2 (fill down)

    = FIND("",A2)

    Then use the LEFT function to get the number in the column C:

    Formula in C2 (fill down)

    = LEFT (A2, B2)

    This will give a text string (Tip: left-aligned).

    Convert to a numeric value in the D column with the VALUE function:

    Formula in D2 (fill down)

    VALUE = (C2)

    (Tip: propped right)

    Table 1 has a header row and footer of the line, and the SUM is easy. Formula to the D8 footer line:

    = SUM (D)

    Kind regards

    Ian.

    Edit: You can hide columns B and C

    Ian.

  • user belongs to a domain and user does not belong to the local administrator or power users groups, or any custom group and the user is not part of the domain administrators group, but user show that it is admin

    WinXP
    user belongs to a domain and user does not belong to the local administrator or power users groups, or any custom group and the user is not part of the domain administrators group, but user show that it is admin

    I did a gpupdate/force and restart twice PC
    Yet, user indicate it is always admin when we right click on Start menu and see the possibility to open all users

    Hi elena_ad,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the below link:

    http://social.technet.Microsoft.com/forums/en/winserverManagement/threads

  • HP envy 4502: Document headers, footers and all printing of logos, but the body of the text of the documents is missing

    Any ideas why my documents will print the headers, footers and logos of a document but do not print the main text of the document

    Hi @buddiecat , welcome to the forums!

    Personally, I would say a pilot error or a problem with the program you are printing from, as the cause of printing problems you encounter.

    I suggest that you run the print and Scan of the doctor. This diagnostic tool will check for all conflicts that may be causing the problem. The tool will show you a report at the end. Send me the results.

    Also, try printing from another program and let me know if print jobs will print correctly also.

    Have a nice day

  • Text and the line spacing in EP 14?

    EP 10-14 passing. Where is the manual setting of the text and the line space in the Titler?

    Premiere Elements does not attack or the spacing setting.

  • Can I still create my site design by dropping the images, the texts and the text boxes or what I have to learn code?

    Can I still create my site design by dropping the images, the texts and the text boxes or what I have to learn code?

    Database coding (HTML & CSS) is necessary to get the most out of DW.   It of not an app drag & drop like Photoshop or Illustrator.

    If coding isn't your strong point, try Adobe Muse.  MU is for designers and non-codeurs enjoy working in a GUI.   You are limited with what you can build with MU.  So don't expect to do advanced stuff or you will not be disappointed.  But for the basis of hobby, charity or vanity sites, MU might be all you need.

    Nancy O.

  • How to add text and change my PDF file?

    How to add text and change my pdf file

    Hi pilothorse,

    To edit a PDF file, you must use Acrobat. If you do not have Acrobat, you can try it free for 30 days. See www.adobe.com/products/acrobat.html for more information.

  • I have a laptop on screen high resolution (3200 x 1800), how can I increase the size of text and the tool bar in the workspace of Photoshop?

    I have a laptop on screen high resolution (3200 x 1800), how can I increase the size of text and the tool bar in the workspace of Photoshop?

    If you have CC2014 you can try the experimental 200% upscaling setting in preferences:

  • I use Adobe Acrobat Pro and when I click on save as PDF... PDF reader enable adding text in the Documents does not appear. Why?

    Can you please tell me why?

    With my Adobe Acrobat Pro, when I click on save as PDF... PDF reader enable adding text in the Documents does not appear.

    Thank you

    Elina Mackay

    Adobe change Acrobat a lot between releases. Make sure you follow instructions to the same version you have.

    If this looks OK, let us know the exact version you have (help > about Acrobat Pro).

Maybe you are looking for