Skip navigation
fotoeros
Currently Being Moderated

JS scripted needed to add custom text plus filename to file info in document title

Apr 21, 2012 6:33 AM

Would greatly appreciate any help with this one...

 

JS script to add custom text plus filename to file info in document title

 

many thanks

 
Replies
  • Currently Being Moderated
    Apr 21, 2012 7:03 AM   in reply to fotoeros

    It depends on if you want to add the information on an open document or add the information without opening.

     

    This example will add the information to an open document.

     

     

    activeDocument.info.title = decodeURI(activeDocument.name) + " what ever else you want to add";
    
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 21, 2012 7:35 AM   in reply to fotoeros

    Without the extension you can use...

     

     

    activeDocument.info.title = " image Nr " + decodeURI(activeDocument.name.replace(/\.[^\.]+$/, ''));
    
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points