How does NOT save a file name extension?

Hey everybody!

I have a script for Photoshop > > extension a bit > > I click on a button and the script save the .jpg file into a png (with extra stuff "of course") file in the same folder.

Works like a charm...

But when it comes to the original file name: exemple.jpg

I get this png file name: example.jpg.png

I save the file name and path with this code:

filePath = app.activeDocument.path + '/' + app.activeDocument.name; + '.png';

The goal is to get rid of the section '.jpg' the new file name.

I tried to save file name in a variable and then reduce the number of characters or even save it without the extension, but no luck.

any ideas? !

Thank you!

var name = app.activeDocument.name;
If (Name.indexOf(".")! = - 1) Name = Name.substr (0, Name.lastIndexOf("."));
filePath = app.activeDocument.path + "/" + Name + ".png";

Tags: Photoshop

Similar Questions

  • What should I do to be able to view a mime type of PDF on my computer keep get error msg saying microsoft does not recognize the file name extension can someone help me with this problem please

    Can u please help me

    You have PDF reader software on your computer? for example:-Adobe Acrobat Reader?

    If this isn't the case, you can get it free from Adobe.

    Waiting for your response.

    Thank you and best regards.
    codescientist

  • Adobe Muse does not save the file

    Good afternoon. I have a problem with the file Adobe Muse. Once, I add to one of the accordion Widgets pages, Adobe Muse does not save the file. All menu files is no longer active.

    link to a screen problem

    Yandeks.disk

    link to a Web site already recorded and released

    price Esenina

    Please send your .muse file to my attention at [email protected] along with a link to this topic. Assuming that it is a recurring problem, it would be very useful to have more details on exactly what is being done between during the last activated menus and when they became disabled. A registration screen would be wonderfully helpful.

    If the file is larger than 20 MB, you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc. (if you use a service, please include your email address in the body of the message back, given that not all services to include it in the invite sharing they send.)

    Thank you.

    -Zak

    Zak Williamson

    Senior scientist

    Adobe Muse

  • Where Captivate does not save my files?  When I look at recent Articles it only shows the most recent nine

    Where Captivate does not save my files? When I look at recent Articles it shows only the last nine most recent files.

    It records every time you tell him. I would look in My Documents > my Adobe Captivate projects. You can also open one of the 9 listed projects and then go to file > save as and see where it sets the files.

    Finally, you can use the Winows search function to search for *.cpx, and he should find all your Captivate project files.

  • How I save action to save as that does not include a file name?

    HI -.

    I have an Action that will be cropping and scaling a PDF file then save it as a JPG in a destination folder.  The problem is that when I recorded the Action I did with a file named ABC. PDF and saved as ABC. JPG - and now all files saved with this

    Action is called ABC. JPG

    It is therefore impossible to use with a bunch of different files.  A file gets overwritten several times with the same name.  The ABC's of file name. JPG is 'burned' in Action.

    -How to record an action to save money without including a file name?

    Your help on this crazy problem TIA-

    Josh

    CS5 on Windows7

    Have you looked at file > Scripts > Image Processor?

    This could be all you need to batch convert a folder of files to JPEG.

    Nancy O.

  • Notepad does not save the files.

    If I start a new Notepad file and want to save it when I typed my text inside, it won't save.
    I tried clicking on save as and then save it like that, but nothing happens.
    Any help, because I'm completely confused, I used to be a user of Windows XP and never had this problem...

    Hello f33mykh4ny,

    Thanks for posting on the Microsoft answers Forum.

    I would check permissions on the notebook. Right-click on the file and then click the Security tab. I'd give full control to everyone. Close Notepad, and then check again and see if you can save a file.

    If please reply back and let us know if your problem is resolved or if you still need help.

    Thank you

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • In my list of registered passwords/user names, my user name for some sites is listed as "password" instead of my real username. He does not save my user name or password for these sites, even if I told.

    I have a forum site that I visit at least a few times a day and I told both the site and the firefox popup to remember my username and password. He used to save, but it stopped working in recent weeks. When I go to my saved usernames and passwords (Tools-> options-> Security-> saved passwords), it shows the username for this site as "Password" (obviously NOT my username). I tried the white list of the site (in case my flash blocker was the problem), reload the page and eliminate information saved and entering again. So far I have not been able to find something that works.

    Try to use the extension of the saved password Editor, which allows you to change the existing passwords and manually add new.

    https://addons.Mozilla.org/en-us/Firefox/addon/saved-password-Editor/

  • Cannot install - the downloaded file name extension is .7z and I am not able to open it

    Hi all

    Hope someone can help. I just downloaded my Creative Suite, but can't install the program that my computer does not recognize the file name extension ending with.7z of a 7Z file.

    DesignStandard_CS6_LS16.7z

    What's next?

    Mata

    You can download the files from the link Atul mentions above.

    Under Windows, there is a .exe file and usually a .7z file.

    Download the two files in the same folder and run the Exe file to start the installation

    If you have additional questions, please see the instructions to extract the files and install your product.

    Guinot

  • create dvd Windows does not accept this file extension

    I inserted a blank dvd and clicked on the file and hit the burn it burned the dvd. When I tried to put in the dvd player, it has been ejected. I tried 4 dvd players played for a blueray player. I tried again using windows dvd creation, and he said that I did not recognize the file name extension. do I need an coverions application or is there a way I can make it work

    I inserted a blank dvd and clicked on the file and hit the burn it burned the dvd. When I tried to put in the dvd player, it has been ejected. I tried 4 dvd players played for a blueray player. I tried again using windows dvd creation, and he said that I did not recognize the file name extension. do I need an coverions application or is there a way I can make it work

    ====================================
    What is the video in question file extension?

    To create a video DVD that should play in most DVD
    Players... you need to use a DVD authoring program
    as a manufacturer of DVD. Apparenty your first DVD was data
    DVD and the reason Blu - Ray player has agreed
    Maybe because your file source was AVCHD.
    Some Blu - Ray players will play AVCHD files.

    It is possible that the following free software could
    burn the video DVD for you.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7)
    (* Read * all * the installation screens... it)
    may be a few items you want to unmark *)

    Freemake free Video Converter - how to burn video DVDs
    http://www.Freemake.com/how_to/how_to_burn_dvd_video

    Good luck...

  • How does not sort on the library

    (I'm french)

    Sorry, but I don't see where I can create a topic for my question.

    My question is, how does not sort the files on the library. Because all my files are name '1' '2' '3' [...] "2530.

    And Flash pro sort me all my files '1' '10' "100" "1000" "11" "110".

    It's painful.

    Sorry for my English and sorry for my post here.

    Thank you.

    As much as I know there no controls for the content control library contains.  If you want the files sorted as you indicated you would have named the 0001,0002,0003,... 2530

  • Some Excel files download but do not show associated with Excel or seem to have no file name extension.

    Some Excel files download but do not show associated with Excel or seem to have no file name extension. If I download these files using Internet Explorer, they open properly. I can add xls or xlsx file and it will open properly with Excel. If I select the file open the 'Open with' dialog box and I If select Excel, the file does not open at all... nothing happens and Excel does not open. The excel in the picture as an attachment file are those where I added the excel file name extension.

    Unfortunately, the way that Firefox gives the name of file is more literal and less improvisational than Internet Explorer, you may need to add this extension .xls or .xlsx yourself from time to time.

    If you want to do it in the shortest time, you can change the immediate download to ask you where to save the file, which also foresees the possibility to change the file name. If you want to try it, the setting is described here: start-up, homepage, tabs and download settings.

  • How to change a Movie Maker file name extension

    I am trying to load a video You Tube and Facebook of Movie Maker on Vista, yet both programs say that they do not support the MSWMM file name extension. How can I change the extension wmv or something supported by these programs without destroying the file?
    I already changed the position of file name by renaming the file, but it destroyed and I was not even able to see.

    Hi Linsala,

    Try highlighting your video on the collection list and then clicking Save film on top of the toolbar. Go through the steps and it should save it as a wmv.

    If you have any other questions, don't hesitate to ask. We can't wait to hear back from you with your results. Brian
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • My laptop does not make all files back up, how can I solve this problem?

    My laptop does not make all files back up, how can I solve this problem? Ralph

    http://www.Microsoft.com/Windows/Windows-Vista/features/backup.aspx

    Info about Vista backup.

    Vista Home versions do not complete PC Backup.

    Normally, you do a backup of files on an external hard drive or DVD.

    See you soon.

    Mick Murphy - Microsoft partner

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • How can I convert .ai files in jpeg format?  It seems that I am only able to get the .ai files and my Adobe Photo Elements program does not recognize the file.

    How can I convert .ai files in jpeg format?  It seems that I am only able to get the .ai files and my Adobe Photo Elements program does not recognize the file.

    I want to continue my membership with Adobe, however, not if it requires some additional software purchase.

    For .ai files, you will need to use or know someone who uses Illustrator or another program compatible .ai to convert. If you access a page of image details before license you can see the file type.

Maybe you are looking for

  • Up to the next playlist

    I've used the place next playlist on my previous music iOS app, but I can't understand how to use IOS 10. When I click on "play next ' or 'play later', it gives me a message that the song is" added to that "but I do not see the QC. There is no playli

  • Change to bing as default search engine

    I think that I fixed it by running malawarebytes. AVG has been remove search protect but it came back. has run malawarebytes and it seems to have disappeared.

  • When I try to charge my ipad since the if please, but by simple answers that I am not computer.

    When I try to charge my Ipad to the wall outlet, it will not load, can someone help me please, but with simple answers step by step because I'm not computer literate.

  • ScatterGraph does not manually change the axis to execution interval

    I use the ScatterGraph and the WaveFormGraph in VS2010 Winforms application.  I have the interaction mode axes set to EditRange.  The WaveFormGraph command allows to edit the axis range by clicking on the end of the axis labels and modify them.  Scat

  • AC110-tx: upgrading RAM

    My laptop came pre-installed with a samsung 4 GB memory module and I want to add another 4 GB of corsair module both have the same voltage and the same operating frequency.  But I heard this module of memory who do not come together does not play wel