Maintain the same name with spaces

I'm doing some operations on images batch. Everything works fine, but I noticed that the name of the image are changed.

When I save my image, if the name contains spaces, photoshop automatically converts this space for ' - '. I want to keep my name of the image, because I have this information stored in the database and after the name change, I can't find the correct path to the image.

For example, an image called "Google Analytics.png" becomes "Google - Analytics.png", but I don't want that extra ' - '.

It's my routine of script:

function SavePNG(saveFile){
    var file = new File(saveFile);

    var pngOpts = new ExportOptionsSaveForWeb; 

    pngOpts.format = SaveDocumentType.PNG
    pngOpts.PNG8 = false; 
    pngOpts.transparency = false; 
    pngOpts.interlaced = false; 
    pngOpts.quality = 100;


    app.activeDocument.exportDocument(file,ExportType.SAVEFORWEB,pngOpts); 
}


Which is controlled by saveForWeb preferences in Photoshop. As far as I know that these preferences can be changed in the GUI.

Enjoying a beautiful image, choose file-save for Web... Then in the drop of the SFW dialog choose Edit output settings... In this dialog choose files in the dropdownlist in the top control box, then uncheck Unix in the compatibility section of file name. This must only be done once the parameters to be sticky.

Once this setting has been changed your code needs to export the file without the underline.

Tags: Photoshop

Similar Questions

  • When you add pictures to the Vista image folder it creates a folder HIDDEN of the same name with two copies of the same image inside

    I use Vista 32 bit. I started to see this problem when I recently copy photos from an SD card.

    When you add pictures to the Vista image folder it creates a folder HIDDEN of the same name with two copies of the same image inside

    I saw hidden files enabled in folder options.

    Any help is appreciated.

    Hey guys... I found the answer... Problem is with the software vaio content analyzer that comes with the vaio...

    It just search for Vaio Content Analyzer (parameters) and deselect

    Video analysis
    image analysis
    analysis of the music

    I went looking for this crazy thing... used almost all types of online scan, and finally to find that it is caused by an internal software only...
    anyway thanks to all... Hope it helps someone in the future :)
  • How to register multiple files with the same name with different num revision

    Hello

    Can someone please tell me, how to register several different files with the same name with the revision number using the RIDC API.

    For example:
    First of all I will be saved in a file (TestFile.txt) in a content server with revision number 1 using the RIDC API in application of the ADF. Then after awhile, will change the same line (TestFile.txt) check-in and once again. I tried to check the same file several times, however first Check-in correctly in server showing revision 1, so that Check-in same file again, her gives no error message, and also its not reflecting only not to the server. Single file (TestFile.txt) reflecting on the server.

    How to implement this feature using the RIDC API? Any suggestions would be helpful.

    Concerning
    REDA

    Published by: 887680 on March 6, 2013 10:48

    (1) get the content ID (dDocName), call CHECKOUT_BY_NAME
    (2) call check-in service with dRevLabel = previous dRevlabel + 1

  • Creating a view of mast bearing the same name with the name of the table

    Hello world

    After having dropped the name of view mast QQ. "" TRDLN_DIM_MV ", I try to recreate by having the same name as the table, but I got an error message stating that"the name is already used by an existing object. How to create a matte view to resemble the object possessed by schema 'GQ', with a name identical to the name of the table, drop the table?

    OWNER_O CREATED LAST_DDL_ TIMESTAMP STATUS OBJECT_NAME OBJECT_TYPE
    ===
    GQ MATERIALIZED VIEW 5 NOVEMBER 08 2008 13 DECEMBER 08-11 - 05:06:31:46 TRDLN_DIM_MV VALID
    GQ TABLE 5 NOVEMBER 08 2008 15 DECEMBER 08-11 - 05:06:31:00 TRDLN_DIM_MV VALID
    QQ TABLE 17 AUGUST 07 16 MARCH 09 2007-08 - 17:17:05:21 TRDLN_DIM_MV VALID

    SQL & gt; CREATE THE QQ MATERIALIZED VIEW. TRDLN_DIM_MV
    2 TABLESPACE FPLC01S
    3 NOCACHE
    4 NOLOGGING
    5 PACK
    6 PARALLEL (DEGREE 1 2 INSTANCES)
    7 BUILD IMMEDIATE
    8 REFRESH FORCE ON REQUEST
    9 WITH PRIMARY KEY
    10 AS
    11 Select / * + NO_REWRITE * / trdln_id,.
    trdln_skid 12,
    trdln_end_date 13,
    FIRST_VALUE (trdln_end_date) 14 over (partition by order of trdln_id trdln_end_date DESC) as MaxDate
    15 QQ.trdln_dim;
    of QQ.trdln_dim
    *
    ERROR on line 15:
    ORA-00955: name is already used by an existing object

    I appreciate your help. Thanks in advance!

    Kind regards
    Radic

    You must rename the table (using ALTER TABLE TableName RENAME to othername ;) before creating the MV.
    You cannot have both existing with the same name in the same schema.

    What you see in the scheme of GQ, is that the 'picture' is the underlying table for the materialized view.
    When you do a MY_MV CREATE MATERIALIZED VIEW AS...
    Oracle creates two objects with the same name, we the MY_MV materialized view, and the other being the MY_MV table, which is the physical storage. {Don't forget that a materialized view is a way to get a physical representation of views.}

    In the schema QQ is what you
    a. a real Table
    or
    b. a MV incorrectly deleted, resulting in the underlying Table always presents.

  • Replace the files with the same name - crush

    Everytime I go to save a file (in the office) for example, if this file has the same name with another in the save destination I'm asked if I want to replace it with one that I am saving at this time.

    I push the button no and I choose a different name for the file.

    What I want is this:

    If the file has the same name I want to be saved anyway, and in his name a number is added which means that it is another file.

    ex, jane, and jane (1)

    I want the 1 are added automatically. I noticed these when I save a file after scanning a document using the windows fax and scan feature.

    How do I develop the functionality usually precedes for windows.

    It is something specific to the program. The notebook is not programmed in this way.
     
    --
    ..
    --
    "JimVag" wrote in message news: b2bb4770-bd85-44b9-987b-33ccbd4c3dd0...
    > Everytime I go to save a file (in the office) for example, if this file has
    > the same name with another in the save destination I was asked if I
    > want to replace it with one that I am saving at this time.
    >
    > I don't press the button no and I choose a different name for the file.
    >
    >
    >
    > What I want is the following:
    >
    > If the file has the same name I want to be saved anyway, and in his name a
    > number is added, which means that it is another file.
    >
    > ex, jane, and jane (1)
    >
    > I want the 1 are added automatically. I noticed this when I'm
    > saving a file after scanning a document using the Windows and scan fax
    > feature.
    >
    > How am I going to extend the feature generally above for windows.
    >
    >
    >
    >
    >
     
     
  • Mix records with the same name of the internal and external space (clip +)

    Hello

    I have a question regarding the reading of 'File': if having a folder on the inside and external space microsd, both are named "graphics". Is it possible to shuffel these 2 files with the same name? There are also a few other folders I want to be included, so I just couldn't use the "play all" option. I don't want to use replay by id3tag because mines are always screwed up and would be a lot of work to mark all the appropriate files in the.

    Thanks for help

    m.

    I've not played with playlists much.

    If ID3 tags are all screwed up, I would use the MP3tag utility to change the label of the kind in "Charts" on internal and external memory, then you access the kind-> just Charts and play at all.  It is probably not an option if your labels are blank and you don't want to ruin you, but it's really quick & easy to do with MP3tag.

    I think that even Windows Explorer (XP/Vista) can change the field type in the batch (select all 'charts' music files, click right properties, summary (Advanced) tab change the field of its kind in "Charts", OK).  I keep the ID3tags 'good' on my PC, but edit on my player according to the needs.

    Just another idea which is really easy if you're not afraid of screwing the ID3 tags.

  • Faces of Lightroom: Two people with the same name

    I downloaded Lightroom CC last night and came up with the following question:

    I have an uncle and a cousin of the same name... can Lightroom create two different 'people' or do I have to call each one differently? I guess this is the last but thought I'd ask in case there is an alternative solution.

    johnrellis body:

    You might have a keyword for each family group, for example, "John Ellis Family" and "Steve Ellis Family" and then place the keywords for each under these parents.  For example, under 'John Ellis family' you should 'John Ellis","Mary Ellis', 'Jane Ellis', etc.   And under "Steve Ellis Family", you might have "Steve Ellis", 'Kathryn Ellis' and 'John Ellis' (a different John Ellis).

    It's a good idea to work with hierarchies. But for the option to work, you will have two unique names.

    I just did a quick test.

    I have a few images of twins in my catalog, Tom and Boris.

    Under them, I created a 'name' Twin. Because of the hierarchy, I can apply Boris > Twin for a single image, Tom > twin to the other and both of them to a third photo.

    Drag a box around them name and I type "twin". The drop (AutoComplete) allows me to choose between two entries of identical research called "twin". No way of knowing that you choose. And you may have noticed that auto fill drop-down list starts with the entries that you have used recently. So not good to remember that the 'Twin' Summit will always be "Boris" for example.

    The number of keywords used is only up for one of them if I happen to use the same input twice.

    To do this (that I can tell right now), the only way is to drag the appropriate 'Twin' of the keywordlist on the right side of the opinion of people (O).

    I work with hierarchies, but make sure that I have unique names.

    In addition, I use spaces in the names, but rather JohnEllis, SteveEllis, etc.. In this way, if I have a very long list with members of Ellis and also a large number of people called John or Steve, it is easier refine the search to a particular person (as in smart collections).

    Open the properties for the key word, make sure that "include export" is NOT on, so you will not see this strange name to Number123JohnEllis research in your exported image.

    I have 'export containing keywords' and 'export synonyms' (and now with LR CC course "Person") checked. As a synonym, you can put 'John Ellis, John Ellis, Steve Ellis family' and all these will export.

    Hope it makes sense.

    As John suggests, if you already create the Ellis Family > Steve Ellis Family > John Ellis > John > Numer123JohnEllis then you must enter synonyms, as long as you have 'export containing keywords' on all of them checked, and 'include export' (with the exception of the Number123JohnEllis Word key which should not have 'include export' checked).

    Using hierarchies can really help you in your Keywords. But it will take time to implement.

  • XOQ-01950: Cube contains several BuildSpecifications with the same name.

    Hi all

    When executing the option to maintain Cube he throws under question: any clue?

    XOQ-01950: the AWCubeOrganization for cube 'NN_OLAP_POC. MARKET_SALES_CUBE"contains several BuildSpecifications with the same name.

    Thank you
    Exq

    This error should show only upward when you create a cube (by importing XML), not when you maintain. So, I'll assume that's what you hear.

    If you are importing XML that references an OLAP object that already exists, whereas the new definition replaces the old. The only exception to this rule is the BuildSpecification object. This kind of object is called, but it does not follow these conventions (for reasons of disorder of implementation). If you import the XML code that has a BuildSpecificaiton with the same name as one that already exists, then you will trigger the error you see. Here is a relevant example of XML.

    
     
    
    

    The solution is to remove this section from the XML before importing it.

  • using datapump, transportable tablespaces with the same name

    I am trying to export some CLOB data in a database of a warehouse of data using datapump and transportable tablespaces option.
    My problem is that two databases have the same name of tablespace (USERS) and data file names (users01.dbf).
    A previous post, I learned about the 'remap_tablespace = old_tablespace:new_tablespace' option that would seem to allow me to get around this, but I don't know what is happening with the data files as the data file name already exists.
    If there is another option say with impdp that I could use to tell him to use a different data file name, or do I just rename the data files used by the tablespace to advance source databases.

    You must first create the schema. When tables and indexes created using impdp, they will be created in the right tablespaces. The default tablespace for schemas is overridden because the create table statement specifies the storage space.

    create table foo... tablespace orig_tbs1

    If you add the remap_tablespace = orig_tbs1:new_tbs1 then

    create table foo... tablespace new_tbs1

    If you want to restore the default tablespace after execution of the impdp work, I guess you should be able to do it with an alter statement.

    Dean

  • Create a schema of the user with the same name and tables within this scheme

    I am a newbie with Oracle.
    I installed my first Oracle 10 g database in my life.
    I need to create a user and a new schema with the same name.
    Subsequently, I need to create tables in this schema using the * isqlPlus.
    I got to create the user via the Oracle Enterprise Manager Console.
    I tried to create a schema through the same tool, but I have not found a possibility to do using GUI.
    Is it possible to do so through Oracle Enterprise Manager Console?
    What are the permissions the user must have access isqlPlus to create the tables in the schema?

    Thank you!!!

    Felipe

    A schema is just a collection of objects belonged to a particular user. If you do not need to create a separate schema: the schema is created automatically when you create the user.

    To connect to the database, a user must CREATE SESSION privilege. To create a table, the user has the CREATE TABLE privilege and should be given a quota on any tablespace will be created in the table. If you don't care management quota or limit the storage space that a user can create tables, you can grant the user the UNLIMITED TABLESPACE privilege. If you care the management of quota, you must run commands like

    ALTER USER <>
      QUOTA <>
      ON <>
    

    for each tablespace for the user to be able to use.

    Justin

  • How is it all my email that comes from facebook comes with the same name

    All the mail that comes from my facebook has the same name as wenfel sand when his mother, wife, friend ect.
    What I've done and how to fix

    Because somewhere along the way you have saved an email from Facebook to your address book, and it has a name associated with it. Will find this contact in the address book and delete the name.

  • where to save the files under options the file name is duplicated how to remove an additional folder with the same name

    Under Options in Firefox, I clicked on save the files under downloads, but the file name twice and an additional file with the same name is created in the folder, i.e.:

    G:\Akbar's Songs\HAMARA DOWNLOADS\HAMARA FORUMS DOWNLOADS FORUMS

    As you can see the file repeats, how can I fix it?

    Also the music files, I download from a site of downloads as a WinRar file and I need to open it. Y at - it an option where the file opens automatically in the folder I chose?

    Thanks a lot for your help.

    Hi Akush, when you install 7 - zip, make itself the default application to open .zip and .rar files. So if you double click on the .rar file, it should open in 7 - zip. If you prefer to decompress immediately, right click the file and look for new 7 - zip items in the menu. I can't think of a way to do this automatically, however.

  • I have 2 bookmarks with the same name but different stuff in them. I want to remove one, but pass the contemts remaining bookmark

    I have 2 bookmarks with the same name but different stuff in them. I want to remove one, but pass the contemts remaining bookmark

    This is the first mention you made records. See this - https://support.mozilla.org/en-US/kb/Sorting%20bookmarks#w_rearranging-manually - and move individual bookmarks from one folder to the other folder. You may need to press the Alt key to display the Menu bar and the View menu item.

  • I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I would get one that has 4700 comments already.

  • How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    I find easier to use this copy separate Automator Service (download Dropbox).

    To install in your numbers > Services, double-click menu just the package downloaded .workflow and if necessary give permissions in system preferences > security & privacy.

    To use, just:

    1. Select the cells in the column with duplicate names.
    2. Choose separate copy in numbers > Services menu.
    3. Click once in the upper cell where you want the deduplicated values appear.
    4. Command-v to paste.

    SG

Maybe you are looking for

  • all emails to a contact rebounded last week. He wants to receive my emails.

    Since last weekend, all the e-mails to one of my friends have bounced back for me. We sent e-mails back for years. I talked to him and he wants to continue to receive my emails. It is not on his side. I sent an email this evening for him on the site

  • File_while unreadable import from iPhone

    I'm trying to import pictures from my iPhone 6s of iMac, but the following error message and then my iPhone disconnects from the iMac. Thank you Amir

  • iCloud backup?

    I need assistance with icloud?

  • Edge 2 - driver problems / random black screen

    I have a relatively new Lenovo Edge 2 a few months old. Problem I have currently: screen goes black randomly, but the light is always on, no mouse pointer, sound turns off too (similar to the hibernation perhaps?). I get a message at the beginning to

  • Acer Iconia 8.1 ", w3-810, 32-bit win 8/8.1 tablet»

    I'm waiting for my new tablet win 8. I've had 10 years of experience with Windows. I have a Win 7 and Win 8.1 laptop. I have an Android tablet, but I never have a Windows Tablet. I would ask... 1. given that the Tablet has not a reader of dvd/dw, wou