Changing Document Name of unsaved File

Hi,
is it possible to change the name of an opened but not saved document?
If I open a photo from ACR as an object, PS will append "as object" to the document name.
I'd like to delete that part of the document name, BEFORE it will be saved.
Or is there another way to do that?
app.activeDocument.name is read only...
Thanks!

Try this:
-X
var original = app.activeDocument;
var newDoc = original.duplicate(original.name.replace(' as object', ''));
original.close(SaveOptions.DONOTSAVECHANGES);

Similar Messages

  • Changing a document name opens the file

    I was wondering if this was a new issue with Leopard... or just my mouse. In Tiger, if you needed to change the name of a file, or folder on the desktop... or anywhere, you could click, and it would highlight the words to change the name.
    Now, if you click the first time, nothing happens, when clicking a second time, it either opens the folder, or launches the application. I don't particularly like this happening, especially when I'm just trying to change the file name.
    I am using a MacAlly rfmousejr.

    In my opinion, the behaviour in "Panther" and earlier was even better - you could click once on the file name, and shift the mouse pointer outside of the name area, and it would highlight. Unfortunately, Tiger made (more or less) two clicks necessary throughout the "Finder", probably to make the behaviour more consistent with "Column" view. Normally, I am in favour of GUI consistency, but unfortunately they settled on the worse convention, applying it to an area where the interaction is different enought that imposing consistency actually made things worse.
    In Leopard, the issue doesn't appear entirely to be one of timing. Although it may be awkward, try selecting the icon first, then clicking the file name (I just tested this with the "double-click" setting set to the slowest). This almost never results in the file opening, whereas clicking twice (with the same delay between clicks) on the name did. Similarly, if the icon is selected by alternative means (marqueé selection, by typing the first few letters of the name, or using arrow keys), then clicking once on the item's name also activates the text field.

  • Change document name on HP 6700 using Win 8.1 so that I can save with my documents on hard drive

    change document name on HP 6700 using Win 8.1 so that I can save with my documents on hard drive.
    Am new to this, so help an old man.
    I scan a document, and it comes out as  time and date, and number, but how can i give it a name, so that I can file with other documents, not just the scans.
    Thanks

    Hi,
    You need to install the HP printer software.  The installation process will place a printer icon under the Windows 8.1 Apps menu. Click on the icon and you should be able to see the Advanced setting link.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Existing cross Reference: how to change the name of the file it refers to?

    Hi everybody,
    I am a professional translator.
    One client of mine sent me a complete FrameMaker 9 book file for translation.
    I translated the content via a CAT-Tool and now am in the process of checking if cross references and markers are ok directly into the file.
    I noticed that many cross references are linked to another file of the book. But in the process of translating each file separately, I gave them a slightly different name (I added the language at the end) so as to be able to recognise them eventually.
    Now I have this problem: I cannot find in the cross reference interface where to change the name of the file into the new one the cross reference is supposed to refer to.
    Am I right in wanting to change the file reference? If so, how do I do that?
    Or is it better to avoid this task and rename the translated file into their original names ? Would it work then?
    Thanks for your help.

    ... book file ...
    ...  each file separately, I gave  them a slightly different name (I added the language at the end) ...
    I'm guessing that you renamed the component files by means other than using the Edit > Rename File from the Book menu.
    If so, do over. Rename from the Book menu. It automatically revises all the cross-references in all the component files.
    In a Book, the only thing that's safe to rename with the file manager is the .book file itself.

  • Change the name of a file.

    Hello, I don't how can I change the name of a file ?.
    Somebody can help me, please?
    For example : c:\out\prove1.csv to  c:\out\prove1_09112007_163001.csv
    Thanks

    Another way would be to use the FILE_COPY and
    FILE_DELETE of the class CL_GUI_FRONTEND_SERVICES to first copy the file and then delete the other one.
    REgards,
    Rich Heilman

  • BEx Brodcaster for Workbook - Cannot change the name of attachment file.

    Dear All Experts,
    I am using the BEx Broadcaster to distribute report of workbook via email. The name of attchament file in email is the technical of workbook. I want change the name of attchment file and found this thread
    [Broadcasting Workbook - Change attachment filename|Broadcasting Workbook - Change attachment filename] that reference to method in background process. Can I create customize program or method to change the name of file.
    Thank you and really appreciate your help.
    Zilla D.

    Hello Zilla,
    By SAP methods, this is not possible. There is no way to do that. May you can suggest it on our Community of Innovation. See note 11.
    This is not only your concern. Some customers already request this functionallity.
    Best Regards,
    Edward John

  • I want to change document name.

    Hi, all.
    I want to change document name.
    But the business one can change only AP document.
    AR document can't change their name.
    Is anyone know why only AP documents can change their name.
    Thank you for your help.
    seiichi

    Dear
    In Business one it is only possible to change the purchasing documents. you actually can do it from sdk.  change the system form title and menu name by updating Form.Title and MenuItem.String, as long as you get these UI API
    objects with your code.
    Best Regards,
    xiaodan AN

  • Change document name in event receiver

    I need to rename a document during an ItemUpdating or an ItemUpdated event. Either one would be fine. When my user changes the file name, I want my code to set it to something else. In the examples below, I am trying to set it to a silly constant value.
    If I can get this to work, I'll change it to use something meaningful.
    Is there any way to change a document's name in an event receiver? I have tried using ItemUpdated (with <Synchronization>Synchronous</Synchronization> in elements.xml). I have tried this:
    public override void ItemUpdated(SPItemEventProperties properties)
    using (DisabledEventsScope scope = new DisabledEventsScope())
    base.ItemUpdated(properties);
    try
    properties.Web.AllowUnsafeUpdates = true;
    properties.ListItem.File.Properties["FileLeafRef"] = "FOOFOO.docx";
    properties.ListItem.File.Update();
    properties.Web.AllowUnsafeUpdates = false;
    catch (Exception ex)
    properties.ErrorMessage = "Document cannot be renamed." + ex.Message;
    properties.Status = SPEventReceiverStatus.CancelWithError;
    //base.ItemUpdated(properties);
    I have also tried this:
    public override void ItemUpdated(SPItemEventProperties properties)
    using (DisabledEventsScope scope = new DisabledEventsScope())
    base.ItemUpdated(properties);
    try
    properties.Web.AllowUnsafeUpdates = true;
    properties.AfterProperties["FileLeafRef"] = "FOOFOO.docx";
    properties.ListItem.Update();
    properties.Web.AllowUnsafeUpdates = false;
    catch (Exception ex)
    properties.ErrorMessage = "Document cannot be renamed." + ex.Message;
    properties.Status = SPEventReceiverStatus.CancelWithError;
    //base.ItemUpdated(properties);
    And in that last one, I also tried setting properties.ListItem["FileLeafRef"]. I have also tried putting the base.ItemUpdated line after my logic (where you see it commented out above).
    Nothing works. No errors are thrown, but the document name stays the way the user set it.
    Leigh Webber

    There's three things you have to do in order to update the name properties:
    Assign properties.ListItem to a variable
    Update the BaseName field
    Update the Type field (if you wish to change the extension)
    public override void ItemUpdated(SPItemEventProperties properties)
    EventFiringEnabled = false;
    base.ItemUpdated(properties);
    var item = properties.ListItem; item["BaseName"] = "BarBar";
    item["Type"] = "docx"; //If you need to change the extension
    item.Update();
    EventFiringEnabled = true;
    This should fix your issue

  • Changing default name of FDF file created by submit button

    Hi all,
    I was wondering if there was a way to change the default file name used by acrobat when the submit button is clicked. Currently, when a user clicks the submit button on my form, acrobat allows them to generate an FDF file and either save it to their hard drive or attach it to an email, but uses the file name "<name of pdf form>.fdf" I would like to change this to a unique ID that is generated based on form data. I didn't have any problems generating the UID, but I can't figure out how to change the name of the FDF file.
    Does anyone know if this is possible?
    Thanks.
    Jose

    Do you sign the document before extending the features? If you do then make sure "Lock the Document after signing" checkbox is not checked. Try this:
    Clear all signature fields.
    Click on the field that you want to sign
    "Sign Document" window will appear
    In the left bottom corner this check box will appear.
    Uncheck it.

  • Change MessageType name in xml file

    Hi experts,
    I have developed a receiver interface that creates an xml file and put it on an external server.
    Now other side says that this tag:
    <ns0:MT_MexElectronicInvoice_EDICOM xmlns:ns0="urn:Myfirm-EDICOM:MexElectronicInvoice">
    is not correct, they want another description:
    <ns0:MT_MexElectronicInvoice_myFirm xmlns:ns0="urn:Myfirm-EDICOM:MexElectronicInvoice">
    My question is: is possible to change MessageType tag in xml file without changing the message type structure name in Integration Repository?
    thanks
    fabio

    use another mapping which has the target  MT as  <ns0:MT_MexElectronicInvoice_myFirm xmlns:ns0="urn:Myfirm-EDICOM:MexElectronicInvoice">
    Add this mapping after the original mapping in your interface/operation mapping.
    This will be the easiest way to handle this requirement as you will only need to do a one to one mapping.
    Another option will be to write a java mapping to do a simple replace function for the string <ns0:MT_MexElectronicInvoice_EDICOM xmlns:ns0="urn:Myfirm-EDICOM:MexElectronicInvoice"> to  <ns0:MT_MexElectronicInvoice_myFirm xmlns:ns0="urn:Myfirm-EDICOM:MexElectronicInvoice">

  • Trying to change the name of 1 file

    I have searched the topic and have not found a solution that works for me,
    I am trying to write an AppleScript that will change the name of a single file from path:old.txt to path:new.txt
    I have tried
    tell application "Finder"
    set name of file "work.txt" to PartA & PartG & ticker & ".txt"
    end tell
    among others and always either receive an error message, access denied or unable to set old file name to new file name

    You're missing the point.
    set name of file "work.txt" to PartA & PartG & ticker & ".txt"
    When you set the name of the file, the Finder needs two things - the original file that you're trying to rename, and the new name you want it to take.
    In your revised script you're specifying the existing name (not path) of the file you want to change, and specifying its path along with the new name. That's the wrong way around.
    Think of this command in the following manner:
    set name of (original file specification) to (new file name)
    Now, in the case of the 'original file specification' you need to provide enough information for the Finder to identify the file. You're just saying 'work.txt', but that is not enough (and that's why it's complaining). There could be a hundred 'work.txt' files spread around in different directories on your disk. How is the Finder supposed to know which one you want to change?
    A better format would be:
    tell application "Finder"
      set name of (file "work.txt" of path to desktop) to "ABC.txt"
    end tell
    In this way the Finder can absolutely identify which file you want to change (the file 'work.txt' that's on your desktop) and the new name you want it to take.
    Now, if the file is not on your desktop you can amend the script to include the relevant path, e.g.:
    tell application "Finder"
      set name of (file "work.txt" of folder "blah" of disk "disk name") to "ABC.txt"
    end tell
    This tells the Finder to look in the folder 'blah' on the specified disk.
    You can also do this by including the path to the file in the form:
    tell application "Finder"
      set name of (file "disk name:blah:work.txt) to "ABC.txt"
    end tell
    where you use : to delimit each folder in the path.
    Hope that helps.

  • Change Document Names in Map of Documents

    Hello,
    I am taking the attachments from a completed task and putting them into a map of documents variable.  I was wondering if it is possible to change the names of the documents in the map?  I would like to be able to add an identifier to each document in the map.  Thanks.

    The problem is that you put the id in quotes - which no longer evaluates the statement, but treats it as a litteral.
    To make it easier on my feeble brain (especially when debugging using record/playback) I break it down into multiple steps in the same set value
    /process_data/@myTempID is a string
    /process_data/@myTempDocis a Document
    Location  
    Expression
    /process_data/@myTempID 
    /process_data/MapKeys[1]
    /process_data/@myTempDoc
    /process_data/MapOfDocuments[@id=/process_data/@myTempID]
    /process_data/MapOfDocuments[@id=/process_data/@myTempID]     
    setDocAttribute(/process_data/@myTempDoc, "wsfilename", "test.doc")

  • Logic changing the names of audio files when I drag and drop into arrange

    i am dropping some 44.1/24 bit files into logic and for some reason out of nowhere the names of the files are changed. it removes digits i have entered in the file for identification purposes, so i am no longer sure what they are, and seems to be replacing it with "#". could it have something to do with import settings? i have not changed any...

    This happens because until recently Logic didn't handle long filenames very well.
    Long filename support was added in Logic 9.1.x so I recommend upgrading to that version - or using shorter file/pathnames.
    The #7875 bit appended to the name is the number of the disk block the file is stored at...

  • How can i change the name of this file?

    In finder, the file under "desktop".

    Click on the file to highlite it, and hit the return key. Edit text/file name.
    You can not change the Places name: Desktop
    Message was edited by: leroydouglas

  • How to open a file, change the name and write file

    Hi,
    I want to open an existing .dat-file in Labview, manipulate the data and save this data into a new file with a different file name.
    Though the name should be different I would like to use the old name and add something to it.
    (In my programm the .dat file containes the date and time the data was
    measured and I would like to keep this information in the filename.)
    For example: the original title is file1.dat now I want to save it as file1_manipulated.dat
    Is that possible? What is the best and easiest way to do it?
    Thanks a lot
    Chris

    Hi Mike,
    thanks for your help.
    This will give me my path in string format. But to open a new file and then write my data into it, I need a path format (see right side of png)
    Is that right?
    I attached a png, so you hopefully get an idea where this is going. (I know this won´t work yet)
    I open a file and this filename depends on the date and time the data was recorded. So I can´t work with a stringconstant.
    Sorry for this beginner questions - this stuff is absolutly new to me.
    Thanks in advance
    Chris
    Attachments:
    newfile.png ‏11 KB

Maybe you are looking for

  • HT201209 How to tell how much is left on my gift card

    Where do I find my balance on gift card

  • Steps for ABAP Mapping

    Hello,      Can any one explain how to do ABAP mapping?and necessary trancsaction codes for this? Ex: I am sending PO to reciever system. And if posibel screen shots....plz Thank you

  • Anyone worked on Value Mapping Replication for Mass Data

    hi all, Is there any one who worked on <b>Value Mapping Replication for Mass Data</b> stuff. What is this? The on page 139 of the doc below tells about registereing https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/627d1cbc-0601-001

  • Various problems using extension manager with command line

    Hello all, We are installing our plugins  to CS4/5/5.1 version of Adobe Photoshop as part of our installer and  allow the users to select specific versions of Photoshop to install the  panel for. There are a few old problems that I wanted to rant abo

  • Messages App Frozen/Exiting Early. How can I reset it?

    When I tap the messages icon, a gray screen loads for about 5 seconds and then the program exits out to the home screen.  I still receive text notifications but I can't read incoming text.  Or if I slide the banner to read the content of the message,