Cannot save "Untitled-4" under a new name.

I'm getting this error trying to run the HelloWorld.jsx Script on a Windows Server 2003 VM machine inside OSX.
I've been working with the server with no problems, having been able to test scripts to import XML, and export in various formats..
I had just written a Windows App test client in C# .Net, the aim being to develop an Object Pool to control multiple instances, and was going to use HelloWorld as the test script... and now this.
The same script runs perfectly well from the ActionScript IDE, both in the Windows Server and on OSX.
InDesign Server is running as a Windows Service.
I can view the WSDL on http://localhost:1978/?wsdl ... fine.
Any ideas?

You may as well see the script
//HelloWorld.jsx
//Create a new document.
var myDocument = app.documents.add();
//Get a reference to the first page.
var myPage = myDocument.pages.item(0);
//Create a text frame.
var myTextFrame = myPage.textFrames.add();
//Specify the size and shape of the text frame.
myTextFrame.geometricBounds = ["6p0", "6p0", "18p0", "18p0"];
//Enter text in the text frame.
myTextFrame.contents = "Hello World!";
//Save the document (fill in a valid file path).
//If the active document has not been saved (ever), save it.
//If you do not provide a file name, InDesign displays the Save dialog box.
app.documents.item(0).save(new File("/c/myTestDocument.indd"));
//Close the document.
app.documents.item(0).close();

Similar Messages

  • Cannot save the Untitled.indd under a new file name.

    hi,
       i am using window.i got this message while save a document,Cannot save the Untitled.indd under a new file name.
    my code is,
    IDocument *docFrom = Utils<ILayoutUIUtils>()->GetFrontDocument();
    UIDRef docRef = GetUIDRef(docFrom);
    InterfacePtr<IDocumentUtils> docUtils((IDocumentUtils*)GetExecutionContextSession()->QueryInterface(IID_IDOCUMENTUTILS ));
    InterfacePtr<IDocFileHandler> handler(docUtils->QueryDocFileHandler(docRef));
    IDFile destFile;
    PMString path("E:/desktop/auquery.indd");
    FileUtils::PMStringToIDFile(path,destFile);
    handler->SaveAs(docRef,&destFile,kFullUI);
    ErrorCode result = ErrorUtils::PMGetGlobalErrorCode();
    pls help,
    thanks,
    screen410099

    Hi JADarnell,
                 desktop is a folder which i created in e: drive.And I found problem so pls give me a solution.
       Problem is i save a file without any changes its save but if i made any change in a document it doesn't save and one more information
      the  saveas method working in ActionComponent.cpp file in a project only.
    thanks,
    screen410099

  • I tried to rename a file, it gave me an error message (can't remember the number - 43??) and then the file disappeared from the original folder. When I do a search, the file comes up under the new name, but it does not show a path, and even though preview

    I tried to rename a file, it gave me an error message (can't remember the number - 43??) and then the file disappeared from the original folder. When I do a search, the file comes up under the new name, but it does not show a path, and even though preview shows the contents, I can't open the document (Powerpoint) and I can't move the document. I tried "Copy" and paste but it doesn't work. I tried "Share" with Airdrop and iChat, but the file is inaccessible. When i try to rename the file, it says the filename is too long.
    When I try to open it, it says the alias is not good, and asks if I want to fix the alias. I'm afraid to do that and lose all access to this document.
    Right now, it feels like a ghost document - it is on the computer intact, but it is in an undisclosed location and inaccessible.
    Please help!!

    I was able to resolve this by repairing permissions, even though no permissions error was listed specifically for that file.
    I could also have recovered it through Time Machine, but I'm interested in knowing how not to have this happen again!
    I was afraid of rebooting and possibly losing track even of the ghost.
    I did not try EasyFind - I'll keep that in mind next time.
    Thanks for all the comments.

  • Could someone help me restore my photos?  I was trying to "restore my database" in iPhoto when it shut down - now my thumbnails are distorted, logged under a new name, and when you click on a thumbnail it opens as another photo.  I was following another "

    Could someone help me restore my photos?  I was trying to "restore my database" in iPhoto when it shut down - now my thumbnails are distorted, logged under a new name, and when you click on a thumbnail it opens as another photo.  I was following another "helpful hint" hold down the option and command key and restart iPhoto - select the top three and you should be able to get rid of the dreaded exclamation point.  My MAC ran through the first two options dealing with thumbnails, but crashed during the "restore database"  step and now I have a mess.  Help, please.  Thank you.

    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • I have manipulated a photo using layers etc and then flattened it and saved it under a new name.  When I use 'Preview' (mac) to view the finished photo it doesn't look right.  It's as the layers have not flattened correctly.  When viewed in Elements 12 it

    I have manipulated a photo using layers etc and then flattened it and saved it under a new name.  When I use 'Preview' (mac) to view the finished photo it doesn't look right.  It's as the layers have not flattened correctly.  When viewed in Elements 12 it looks OK.  The photo looks incorrect in other software such as photo books.
    Looking at the same photo before flattening, what is being shown is only the top layer.
    How do I correct this?

    STEVEN1A wrote:
    I have manipulated a photo using layers etc and then flattened it and saved it under a new name.  When I use 'Preview' (mac) to view the finished photo it doesn't look right.  It's as the layers have not flattened correctly.  When viewed in Elements 12 it looks OK.  The photo looks incorrect in other software such as photo books.
    Looking at the same photo before flattening, what is being shown is only the top layer.
    How do I correct this?
    The top layer is indeed the one that is visible, unless there is/are area(s) of translucency on that layer, so that you can visualize a portion of the subjacent layer.
      the finished photo it doesn't look right.  It's as the layers have not flattened correctly. 
    Are your settings targeted to have the printer manage colors, or, to have PSE manage colors?

  • How can i change the name of my iphone on itunes and register under a new name?

    how can i change the name of my iphone on itunes and register under a new name?

    If you want to rename your device in iTunes, follow this article: iTunes: How to rename your device

  • Was trying to restore my database in iPhoto when it shut down - now my thumbnails are distored, logged under a new name and when you click on a thumbnail it opens as another photo.  Help, please

    Could someone help me restore my photos?  I was trying to "restore my database" in iPhoto when it shut down - now my thumbnails are distorted, logged under a new name, and when you click on a thumbnail it opens as another photo.  I was following another "helpful hint" hold down the option and command key and restart iPhoto - select the top three and you should be able to get rid of the dreaded exclamation point.  My MAC ran through the first two options dealing with thumbnails, but crashed during the "restore database"  step and now I have a mess.  Help, please.  Thank you.

    Repost in the iPhoto forum, where the real iPhoto wizards live:
    https://discussions.apple.com/community/ilife/iphoto

  • I had to set up a new email ID, because I no longer had access to my old email address and Adobe was forcing me to change password, but I could not access the verification email. Now I cannot read my books under my new ID, even though I got Adobe support

    I had to set up a new email ID, because I no longer had access to my old email address and Adobe was forcing me to change password, but I could not access the verification email. Now I cannot read my books under my new ID, even though I got Adobe support to set up my new ID.

    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • How do you save a document with a new name?

    OK  I decided to go with Pages as my document editor on my iPad 2.  It seems to be powerful enough to do the kind of text editing that I need to do. I need some tables, a few graphics, headers, footers, etc.  You know the basic stuff.  I am not going to try to write a dissertation or thesis on my iPad, but I need to be able to write memos and some work documents.
    I am having a hard time learning the Apple way of doing things I guess.  Must be too many years on a PC using Microsoft Office.
    But I need to know how to open an existing document, make some changes and then save it with a new name so I don't overwrite my original document? Just a basic "Save As" function.
    Is this possible?  Or has Apple devised a way that I am just not seeing yet?

    Hi
    Someone maybe can tell you another/the right way of doing this but I do it this way. In pages press and hold the document until it wiggles and then select it by touching it so the orange border appears around it, then press the folder button at the top, the one with the + sign on it and this will create an exact copy on the documents screen. Then just open and edit that one thus preserving the content of the original.
    There may well be a better way, but hope this helps.
    Regards
    Matt.

  • I cannot save any document without changing the name

    No matter how slight a change I make, I cannot save a pdf file without giving it a new name

    I have the same problem.
    I am running Win7
    I have Acrobat X 10.1.3
    I am forced to rename files when I attempt to save to a folder. It seems to work fine when on the desktop.
    Why does it work from the desktop and not from the file folders?

  • Duplicating an IMovie, making changes and Publishing under a new name.

    I've created an IMovie and published it to Itunes.  IMovie gives me the option to "Duplicate Project" which I did as I want to use the same basic movie but change photos, music, etc. and then Publish it under a different name to Itunes. However, when I make changes I only get a warning that I've made changes and need to RE-Publish it. I don't want to do that as it seems it would over-write my existing IMovie--and I want to keep my original version. 
    How do I get IMovie 11 to recognize this is an entirely new Project?  Any help is appreciated!

    Thank you Matt!  That is what I was hoping to hear.  However, I'm still a bit hesitant to go thru with this as it appears that my duplicate project and my original project both have the exact same name.  Will it give me an option to rename by project once I hit the Re-publish (misleading as it is) button--or will it give it a new unique name or just how will it differentiate between the 2 projects?
    Janice

  • Cannot save in Motion 4 on new iMac

    I cannot save anything in Motion 4 on my new iMac. No save, no save as, nothing. I get a window that merely states that "+the document 'whatever' cannot be saved as 'whatever'.+" Is anyone else having this serious problem? The software is all completely updated.

    I know this happened in Motion 3 when the tutorial media was copied from the CD. Even though on a hard drive, it retained write protected status. The answer was to Save As to a different folder.
    Patrick

  • Hello, my English his my second languish, i hope i will be understandable and will understand you... I just use photoshop to modify a picture. First i renamed it, then transformed it, after i save it under the new name. My problem is that in the web site

    Hello, my English his my second languish, i hope i will be understandable and will understand you.

    First see if the image is in RGB, Image CMYK is not displayed on the Internet
    The second image name has to be imported in website programming. For example: On the website the image is figura.jpg name if you rename the image to figura1.jpg the site will not find the image.
    In Photoshop to save as web it will save us now for internet formats. PNG, JPG, Gif

  • Since upgrade to Windows 8, cannot save .rdp files under the Remote Desktop Connection application on the Desktop

    Since I upgraded to Windows 8, I am no longer able to save individual Remote Desktop Connection files as .rdp files. I am talking about the traditional Remote Desktop Connection application on the Desktop that was in previous Windows versions, not the
    Remote Desktop App from the Windows 8 store.
    When I try to click on the Save button I get "An error occurred while saving to file"
    When I try to click on the Save As button I get "Unable to open connection file" with the file address being where I tried to save it with the file name at the end.
    Also when I upgraded to Windows 8, my .rdp files disappeared from my Documents folder.
     I need to create different .rdp files for different programs that my employees get into on my server. Now I have to hand type all the info each time into the Programs tap on the Remote Desktop Connection window, because I can't save to an
    .rdp file.
     I like the Remote Desktop App from the Windows store but it won't let me designate specific programs to use using standard dos notation (ie c:\program files\ etc..). It just goes to my server desktop.
     I want to promote Windows 8 to my employees but I need either .rdp files for the traditional Remote Desktop Connection or the ability to open specific programs using dos notation in the Windows Store Remote Desktop App.

    I know this is an old post but others might still be having the problem. Here's what I did.
    Create a new text file and open it in notepad. Copy the below into it and edit for your environment. (IP, screen size).
    screen mode id:i:2
    desktopwidth:i:1920
    desktopheight:i:1080
    session bpp:i:24
    auto connect:i:0
    full address:s:192.168.x.x
    compression:i:0
    keyboardhook:i:2
    audiomode:i:2
    redirectdrives:i:1
    redirectprinters:i:1
    redirectcomports:i:1
    redirectsmartcards:i:1
    displayconnectionbar:i:1
    username:s:USERNAME
    domain:s:DOMAIN
    alternate shell:s:
    shell working directory:s:
    disable wallpaper:i:1
    disable full window drag:i:1
    disable menu anims:i:1
    disable themes:i:1
    bitmapcachepersistenable:i:1
    use multimon:i:0
    winposstr:s:0,3,0,0,800,600
    audiocapturemode:i:1
    videoplaybackmode:i:1
    connection type:i:7
    networkautodetect:i:1
    bandwidthautodetect:i:1
    enableworkspacereconnect:i:0
    allow font smoothing:i:0
    allow desktop com:0
    disable cursor setting:i:0
    redirectclipboard:i:1
    redirectposdevices:i:0
    drivestoredirect:s:*
    autoreconnection enabled:i:1
    authentication level:i:2
    prompt for credentials:i:0
    negotiate security layer:i:1
    remoteapplicationmode:i:0
    gatewayhostname:s:
    gatewayusagemethod:i:4
    gatewaycredentialssource:i:4
    gatewayprofileusagemethod:i:0
    promptcredentialonce:i:0
    gatewaybrokeringtype:i:0
    use redirection server name:i:0
    rdgiskdcproxy:i:0
    kdcproxyname:s:
    You don't need to worry too much about what's in here. Save the text file as
    filename.rdp then rightclick on the file and select edit. The familiar GUI rdp session editor will open. You can make changes in the GUI and
    save or save as a different session.
     Hope this helps.

  • External hardrive error, cannot save files onto ex hd, NEW MAC USER!!! D:

    hello, i just recently purchased my macbook pro last night, and i had no problem adding all my songs into itunes from my western digital harddrive. But one problem i have been starting to notice is that i can't save any files on it. And whenever i plug it in, it tells me that there has been an error trying to open it up. I have googled for a few hours and the only solutions i have seen are that the cord may be too long and i need a new cord or i have to reformat it, which i don't want to do or else my thousands of songs and pictures are gone. What is the best solution to get access to save to my hard drive without causing any damage to my files. Thank You!

    on the step where you have to use terminal, after UUID, it only says:
    Display detailed information about a disk or partition.
    Root access is not required.
    have i done something wrong?
    edit*-after googling, i see that i should have had a number sequence pop up, ill try again now
    Message was edited by: iwanturpizza

Maybe you are looking for