CS4 jsx app.place leaving object problem

Hi,
I have a jsx script that I am developing for InDesign CS4. The script acquires an xml string, then after doing some manipulation on it, saves it to a UTF-8 file. After saving the file, the script does an app.place() using the file it saved. The file is brought onto the place brush and it works great up to that point. It places very nicely into the document, with a mouse click, after the snippet is imported. The problem is that after the place, when I try to save, via manually doing File --> Save, to an indd file, I get a message "Failure in saving. Object is invalid". Sometimes I receive more than one. If I try to close the tab and elect not to save instead , I receive the message(s) "Failed to purge records for ducument. Object is invalid".
If I reopen CS4 afterward and do a File -> Place and select the file saved by the script in the prior session, it not only places fine but then also allows me to save, cancel, etc. after the place; it works perfectly.
I'm pretty confused here. Is there some housekeeping I should be doing in the script after the place command or something?
Any help appreciated.
Thanks,
David

(idms? what's that?)
You shouldn't need to do any clean-up. As far as I can see, the preprocessing happens in Javascript, and all InDesign itself does is place the resulting file. Even the UTF8 part should not be a problem -- that is, Javascript has no problems at all with that, and InDesign should either reject it as a valid format, or read and place without parsing the UTF8 characters, or read and place entirely correct. (My limited experience with UTF8 in InDesign showing here ...)
As your Javascript creates a new file to be placed, you can try the following:
1. have your javascript preprocess the input and create the new file. Save that somewhere (but I assume the script already does that at present).
2. Quit InDesign. Yup -- let's make sure nothing remains in memory.
3. Restart InDesign, create a new blank file and import your processed file.
4. Try to save it.
Does that cause the same error? If so, it's #1. that causes some memory pollution, and you'll have to review your script. If not, your processed file may be malformed in some way that InDesign can't detect and can't handle. In that case, you should try to open it with a UTF8-aware text editor to make sure the UTF8 is okay.
If it is ... we'll have to think of something else.
[Ed.] I might as well add that the InDesign/Javascript interface is not as trustworthy as one may expect. I once tried reading in a data file of several MBs, and rather than a warning "Out of memory", InDesign simply crashed and burned. Whittling down the data file, one MB at a time, showed there was some upper limit which ID can handle, where above it would die without warning.

Similar Messages

  • Adobe Illustrator CS4 is crashing when I try to place an object

    Every time I try to place an object... or really everytime I try to do something that opens a finder window (re-linking objects, etc) the program crashes.  I have a macbook pro, should have plenty of RAM and have no idea why this is happening.
    Please help!

    Nelli:
    Can you tell us how much RAM you have and what OS version you are running?
    Also, how much hard drive space do you have available?
    It may be only that your preferences got corrupt. Have you tried deleting your preference file and letting Illustrator rebuild it when it's launched again?

  • All of my apps are in iTunes AND on my iPod Touch. in iTunes it the checkbox next to sync apps is UNchecked. should i check the box and have to reorganize all my apps or leave it "un-synced"?

    all of my apps are in iTunes AND on my iPod Touch. in iTunes, under my iPod, the checkbox next to 'sync apps' (in the Apps page under my iPod) is Unchecked. if I check it, all my apps will be all over the place and I will waste hours trying to get it back to the way it was. I don't really have a reason to check the box but I don't know. should I check the box and have to reorganize all my apps or leave it "un-synced"?
    by "un-synced" I mean how it is on my iPod and iTunes at the same time but its not synced
    this happened b/c I had to make a new user acct on my only [Windows 7] computer and when i clicked transfer purchases, this happened.
    any help would be greatly appreciated
    And as you can see ( besides my problem here) i am out of dropbox space. it would be nice if you can click http://db.tt/TQiPs59V to make an acct to give me and you more space

    You should ALWAYS make sure that everything is on your computer and backed up, most especially before any update. The iphone is designed to be synced to your computer regularly.
    If you have failed to do this, then you need to redownload:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Photoshop CS4 Crash  Free Transform Vector Objects

    Hello!
    I've a consistent ad recurring error and I wanted to see if anyone else has it.
    The bug happens when I place a vector smart object either an Illustrator file, or pasting from InDesign.
    I place the object, and confirm.
    Then, when I hit "command t" to free-transform, Photoshop hangs for a second and then crashes.
    It happens every time, on every type of Photoshop file, on any type of vector content.
    I can place an EPS file, and the error does not occur.
    Any suggestions?

    I'm having the same thing happen with CS4 11.0 (I was running 11.0.1 before the crash),
    Anytime I hit the transform command tit hangs then freezes... but never recovers. It crashes the whole system and I need to reboot.
    Intel iMac,  running OS X 10.5.7
    I've trashed preferences, repaired permissions and reinstalled Photoshop (not the entire creative suite).
    I used to have CS3, but it's been uninstalled but I'm not pointing the software to any other plugins... so I'm lost.
    Any ideas?

  • Place an object like Illustrator does.

    Hi. I need a way for Photoshop to place an object like Illustrator does. Sure, Smart Objects are nice but I need a method where I have a PS file and 1 or more layers in it are referenced. When these references are updated the PS file should update automatically (yes, I will have to have the file open and save ...). Illustrator does this ... page layout apps do this. I need for PS to do this or find a work method that will help do this. Any thoughts?
    The specific details:
    We have several hundred images of our app's interface. The images are composites of generic interface and language-specific interface. To make things easier when updating or translating docs we snag the local parts of the interface.
    We would then place and align the separate images in FrameMaker. We're moving to a new tool and output and we need to put all of the images together in a single image file but want to retain the ability to only update the localized sections. Smart Objects are not smart when trying to do this as they require you to either (essentially) re-import the object (using Replace) or edit the object from the composite image. This obviates the ability to simply replace the target image and have the composite update.
    So ... any input? Thoughts? Ideas? I considered the possiblity of doing this from Illustrator but that is just so much more ... demanding.

    Yes one thought, but it's not perfect:
    I think this would require a Phoroshop Javascript which does the following:
    First, prepare the document: Each smartobject should be named like the actual file of it's original content, so the script knows where to look for changes, like "screenshots/shot1.jpg", "titles/title1.png" and so on.
    Second, the script:
    It should go through all smartobjects in the document and then check the file (which it gets by the name of the smartobject) and it's date.
    If it's newer than the document's last changed date, it should replace the content, otherwise just skip it.
    Well I don't know if the Photoshop Javascript is actually capable of things like that, but it can do a lot though and can be a big helper for everything batch-related

  • Contribute CS4 and CS5 file transfer (publish) problem on Windows 7 64 bit

    Have a problem with Contribute CS5 and CS4  on Windows 7 64 bit where upon editing a webiste for example to add a new page (or edit an existing one) and then clicking on "publish" a blank page appears on the website. To explain this further, If i make the required changes to the page and select the option to publish the file later then the file wirtten to the PC appears to be ok and has all the changes, but as soon as I publish it, only a blank page appears on the web server.  ie the upload (ftp) process does happen but the content of the page is being stripped out somewhere during the filt transfer process.
    I have editied the same site with CS4 on windows XP without any problems.
    Any suggestions would be appreciated
    Thank you
    Chris

    I seem to have solved the issue by downloading this install file
    ftp://ftp.adobe.com/pub/adobe/reader/win/9.x/9.2/enu/AdbeRdr920_en_US.exe
    which installs successfully.

  • I can use my appleID without any problems for using to download new apps in the app-store or Itunes - Problem: I can´t use my ID at facetime and Imessage - I´d like to add an EMail account on top to my mobile number. My password will not be accepted!!!???

    I can use my appleID without any problems for using to download new apps in the app-store or Itunes - Problem: I can´t use my ID at facetime and Imessage -
    I´d like to add an EMail account on top to my mobile number to use more this services. My password will not be accepted!!!??? I try it and i try it and i try ist, throughout the same problem. Whats on? The user help desk said, i´ve to reset and use the WLAN key new as well as possible - no way!

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • My iPhone 3Gs has frozen and I can't do anything except turn it off by hard boot. When I plug it in, I have the apple icon and that is all. It was at 43 percent battery life when it happened and my Twitter app was giving me problems. Thoughts?

    My iPhone 3Gs has frozen and I can't do anything except turn it off by hard boot. When I plug it in, I have the apple icon and that is all. It was at 43 percent battery life when it happened and my Twitter app was giving me problems. Thoughts?

    Put it in recovery mode and restore it as described here: http://support.apple.com/kb/ht1808.

  • Ipod 4th gen volume buttons not working. Volume bar not showing in music or video apps, not a speaker problem as this works fine when testing built in alarm tones???

    Ipod 4th gen volume buttons not working. Volume bar not showing in music or video apps, not a speaker problem as this works fine when testing built in alarm tones???

    Have you tried the standard fixes:
    - Reset:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore the iPod from backup via iTunes
    - Restore the iPod to factory defaults/new iPod.
    If still problem you likely have a hardware problem and an appointment at the Genus Bar of an Apple store is in order.

  • The error is occured that Spooler SubSystem App has encountered a problem and needs to be close.

    When, I give the print option in my printer HP Laser Jet 1005, the error is occured that Spooler SubSystem App has encountered a problem and needs to be close. And the Computer is hanged. Kindly give me the suggestion to short out the problem. Kindly give me the reply in my e-mail I.D - {Personal Information Removed}

    For those who still have this problem, I found the solution on this forum -thanks MP2000 (see http://h30434.www3.hp.com/psg/board/message?board.id=Networking&message.id=839#M839)
    Go to the computer that the HP F4280 printer is connected to.
    Click on Start --> Printer and Faxes
    Right click on HP Deskjet F4280 and select Properties
    Click on Advanced tab
    Uncheck "Enable advanced printing features"
    click OK
    And it works!

  • Hello, I have the usual issue to use AcroExch.PDDoc/AcroExch.App/AcroExch.AVDoc objects in Visual Basic (MS EXCEL). On my company's machine I have Acrobat X and everything works fine, but I have another machine with just "Reader" installed - is there als

    Hello, I have the usual issue to use AcroExch.PDDoc/AcroExch.App/AcroExch.AVDoc objects in Visual Basic (MS EXCEL). On my company's machine I have Acrobat X and everything works fine. I am looking for the cheapest solution to get the stuff running on another machine... is there any way to do that with the Acrobat SDK, or do I need to purchase a full version of Acrobat XI ($$) ?

    The Acrobat SDK is nothing by itself. It is just information on how to automate Acrobat - just as the Office SDK doesn't include Office, but is for people who already have purchased Office but want to automate it.
    These automation things are MARKETING TOOLS FOR ACROBAT. Consider this and the technical limitations make a lot more sense.
    So, yes, you need to buy Acrobat. Standard is cheaper than Pro.

  • App place stopped working

    when ever i play games on fb especiall slots my computer shuts off and when i restart it it says toshiba app place stopped working how do i fix this please

    Update the GPU drivers .!
    (Everyone was new at one point)
    You wanna say thanks ?? click the white star on the right side >>>

  • Cannot place smart object because the parser module cannot parse the file

    Some of my images are saved in Ai for use in my Adobe Ps, but a few of them now give me an error when I try to replace
    a smart object with a saved image from Ai.  I get an error message instead that says "cannot place smart object because the
    parser module cannot parse the file", I have no idea what this means or why it only happens to some images and not all.
    I save everything in the same format and load it into the smart object the same way but some do not work.  If anyone
    knows the solution please help me!!
    Thank you in advance!
    Leila

    As it says: the AI file is not readable.

  • With PS 7  create new  Place two objects on the new file  then you may cut copy and paste Cs2  create new  place two object on the new file Cut is not available how does one cut and paste in new file

    With PS 7
    create new
    Place two objects on the new file
    then you may cut copy and paste
    Cs2
    create new
    place two object on the new file
    Cut is not available how does one cut and paste in new file

    If your using File>Place then photoshop cs2 creates what's known as Smart Objects, which photoshop 7 didn't have.
    In photoshop cs2 you can rasterize the smart objects and that should make the Cut function available.
    Select both placed layers, right click on the area to the right of the tumbnail and select Rasterize Layers.
    If in photoshop cs2 you to Help>Photoshop Help and look under Layers>Smart Objects, that should give you a good overview of what smart objects are.

  • Hey guys on my mac book pro after updating three apps wont leave my dock, when i close them they just re-appear they are "LoginServer", "USBServer" and "NetServer" any ideas to what is the issue?????? PLEASE HELP.

    Hey guys on my mac book pro after updating three apps wont leave my dock, when i close them they just re-appear they are "LoginServer", "USBServer" and "NetServer" any ideas to what is the issue?????? PLEASE HELP.

    Hi I have just got back from the apple store and the guy at the Genius bar looked at it and said it was a manufacturing fault, and because it has been like it since new, and seemed to be getting worse he replaced the computer  and I have a new warranty from today.
    We got the feeling as soon as he looked at it that he has seen this before, I did say to him I was concerned it would be a replacement screen and I was not really happy about that as it was so new, and he said that was the normal procedure, but as the fault was already there at new and it was getting worse they would replace. I could not have asked for a better service.
    Not unpacked this one yet but am hoping all is good, its a great little machine.
    Thank you for your responses, and I hope this might help someone else.  One thing it did not seem to be missing pixels but something to do with the screen production?

Maybe you are looking for

  • Contacts not being sorted by last name

    Hello, We recently received 2 Windows HTC 8x Phones (one for me and one for my son) and I wanted to sort my contacts (people on this phone) by last name. However it is not working correctly, it seems some contacts get sorted while others do not and t

  • Need an older version of iPhoto

    I have Mac OS X 10.7.4 and need an older version of iPhoto; how can I acquire it?

  • Migrating to Apex 3.0.1 (magic pdf)

    Hi everybody, In the David Peake article titled "Reporting from Your Browser" : He said that: "With Oracle Business Intelligence Publisher installed, your Oracle Application Express application can generate reports in Adobe PDF, Microsoft Word, Micro

  • Getting Tab Name or Tab Id

    Hello, In my page I have 4 tabs. I would like to get the tab name or tab id to pass to my pl/sql procedure. When user clicks the tab, I am passing certain parameters to the plsql procedure. So is there any way i can uniquely get the tab name or tab i

  • Why I cannot buy software from app store?

    I try many time but I still cannot buy them. I used to buy before but I use my brother credit card and not enought money so when I want to buy it still appear the last process. Even I download the free programme but I cannot I don't know why.... Plea