[CS5 - JS] wrong error app.activeDocmunet = there is no document

Hi all
I call a function by onClick function in a palette Window.
In this function i try to check "app.documents.length" and the result is 1
But, if I check "app.activeDocument" the result is "there is no document"
If I set a "MyDoc = app.documents[0]" and I check MyDoc.path, again the result is "there is no document" even if MyDoc is a document.
it's a nonsense
Someone can help me?

With Illustrator, you should use BridgeTalk in a palette Window, you function will be like this:
function onClick(){
     var btMsg = new BridgeTalk();
     btMsg.target = "illustrator";
     btMsg.body = "app.activeDocument.save();";//or do something else.
     btMsg.onResult = function( resultMsg ) {
          $.writeln("Result = " + resultMsg.body);
     btMsg.onError = function( errorMsg ) {
          $.writeln("Error = " + errorMsg.body);
     btMsg.send();

Similar Messages

  • Error - app store there was an error in the app store. please try again later. (4)

    Hi guys,
    Can't really figure it out. I have a single apple id on my iMac. My appstore is always asking for an update for Angry Birds, but when I click to update it asks for some other apple id. I never used any other apple id here.
    How can I get rid off Angry Birds on my iMac? Can I delete is somewhere (its not in apps folder)? Because if I am trying to buy it for my current apple id it fails saying Uknown Error

    this does not work, i have been trying now for about 2 weeks, i think its time apple got onto this error and did something about it

  • Quoting form -- APP-236049: There is an error in order submission

    Hello all,
    In the Quote form, When i am trying to Submit a Quote (by clicking on 'Place Order' button in Quote form), it is throwing the error "APP-236049: There is an error in order submission"
    Can any body help me in this.
    Thank you,
    Aush

    symptom: The item specified is invalid or does not exist in the warehouse
    you specified.
    Please enter a valid item-warehouse combination
    change: Note Role : Navigation -> Order management -> Order return -&
    gt; Import order -> Correction.
    cause: Internal ordered enabled flag not checked for the item
    fix:
    Check the internal order Enabled flag for the Item
    Thanks
    Naveen

  • I downloaded Lion and  have attempted to 'updat' it from apps to my imac... after 3 hours of uploading it show mw an error message saying there's something wrong with my internet connection... which there is not. Anyone else experience this?

    I downloaded Lion and  have attempted to 'update' it from apps to my imac... after 3 hours of uploading it show me an error message saying there's something wrong with my internet connection... which there is not. Anyone else experience this?

    What type of Internet connection do you have?  How fast is it?

  • I recently loaded OSX mavericks on my Imac. I now find I cannot open any Adobe products from CS5. The error message reads " to open Adobe illustrator CS5.app, you need to install a JAva SE 6 runtime. Would you like to check and install one?

    I recently loaded OSX mavericks on my Imac. I now find I cannot open any Adobe products from CS5. The error message reads " to open Adobe illustrator CS5.app, you need to install a JAva SE 6 runtime. Would you like to check and install one? I try to install but get the error" download error". As far as i know I'm using Adobe Java 7. None of my CS5 suite works anymore............and i really dont want to upgrade to a monthly cloud service fee as i hate this policy with a passion.

    This goes for Dreamweaver CC on Mavericks!!!!! THANK YOU!
    I couldn't launch Dreamweaver CC. An error told me to install "java se 6 runtime". But when I clicked  OK I got another error telling me there is a network problem! I found this forum post on CS6 products, so I tried the download link, installed java 6 and presto, it worked! Thanks!

  • What does this error mean? There was an error in the App Store. Please try again later. (100)

    what does this error mean? There was an error in the App Store. Please try again later. (100)

    I have the same problem and thought it might be related to moving to Denmark. My app store account was set up for USA and then the error number in parentasis was (13). After changing the profile to Denmark the number changed to (100), like yours

  • I cannot to download from the mac app store (There was an error in the App Store. Please try again later. (20))

    I cannot to download from the mac app store (There was an error in the App Store. Please try again later. (20))
    I traied to remove cookies and still don't working.

    Regretably, none of the above solutions has resolved this problem for me.
    Whenever I try to perform updates (in my case, Xcode and iPhoto both want to update), I receive the following error:
    An error occurred during purchase.
    (of course, I am not trying to purchase anything, it is a free update)
    If I press Retry, the above repeats until I press Cancel, then I see:
    We could not complete your request.
    There was an error in the App Store.  Please try again later.  (20)
    I have been "trying again later" for three weeks now, with no resolution in sight.

  • Hi, I cant login to the facebook app on my iphone 5 ios 6.0.2.  I keep getting an error message saying 'There was an error logging in using single sign on' when im asked to log in again i get a 'session expired' message.  This only started happening yeste

    Hi, I cant login to the facebook app on my iphone 5 ios 6.0.2.  I keep getting an error message saying 'There was an error logging in using single sign on' when im asked to log in again i get a 'session expired' message.  This only started happening yesterday. Anyone else having this problem? Thanks.

    I am having the same problem and took the following steps to mitigate it to no avail.
    1. I deleted the Facebook app on the phone and turned off Facebook in the iPhone's system-wide settings.
    2. I re-enabled Facebook in the iPhone's system-wide settings and reinstalled the Facebook app and logged in again. It worked. For about an hour.
    3. I completely restored the phone to a previous backup (before the problems started) and reenabled Facebook .... reinstalled the app.... and now it works intermittenly. But it hasn't worked in about 12 hours now (just tried a few minutes ago).
    Please advise.

  • HT4463 no able to buy apps - can download free ones only - error message is: There was an error in the App Store. Please try again later. (100)

    no able to buy apps - can download free ones only - error message is: There was an error in the App Store. Please try again later. (100)
    i need solution ?

    Hi there hamzaarab!
    I have an article here for you that deals with this exact issue:
    Mac App Store: "An unknown error occurred (100)" when purchasing
    http://support.apple.com/kb/ts3637
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • Adobe CS5 Updates fails !!!  There was an error downloading this update HELP

    Adobe CS5 Updates fails !!!  There was an error downloading this update HELP (Windows)

    I have the same problem, but I'm on a mac 10.9. I have 2 folders inside the Adobe Patch folder inside the Adobe folder. The items have a bunch of letters and numbers.
    I've attempted 2 downloads, each going through almost the whole process and stopping about 90% saying unable to install, fix the problems listed below (there was an error downloading this update, please quit and try again later). When I click on the consumer support for further assistance, it takes me to an Adobe page that says “This serial number is not for a qualifying product. Please try another” .  I have CS4  design premium, CS5 design standard, and Acrobat Professional installed.
    Thanks

  • Updated iMac to Yosemite.  Now when in LR5 and try to edit photo in PS CS5 I get error 15 and it will not open.  I've uninstalled PS and reinstalled it but still get the same error.  Any thoughts out there.

    I just upgraded my iMac to Yosemite.  Now when in LR5 and try to edit a photo in PS CS5 I get error message 15.  It says to uninstall and reinstall PS CS5.  Done that and error is still there.  I can open PS outside of LR but not inside.  Any thoughts?

    The first thing I would suggest is for you to go to the folder containing your catalog, using your system browser. There will be a folder that has the extension .lrdata. Delete that folder, and then try to start Lightroom. If that doesn't work, replace your catalog with your most recent backup.

  • The app could not be added to your itunes library because an error occurred. There is not enough memory available.

    Hi guys,
    When i drag and drop an application(development app built) to my iTunes> Library > App. Then i got a error "The app 'XYZ' could not be added to your itunes library because an error occurred. There is not enough memory available." Please see my image below:
    I seached any solutions to fixing for those problems. But i did not still to  fix them.
    Apple Support Team please help me for this problem! Or anyone? Can you help me for fix this problems?
    Thanks guys so much!

    Thanks for your feedbacks "diesel vdub".
    "Is there sufficient free space on the computer?"--> My space on computer hardisk either ipad free more.
    "Has iTunes been closed and relaunched?"--> I launch this app any more time, and it still an error.
    "Has the computer been rebooted?"--> I try reboot my computer and --> open itune--> drag may app to itune--> Still occurr this message.
    Have you other way for fix this propblem?
    I running:
    My computer: Window 7 Ultimate
    My ipad: iPad 2, iOS 7.01.
    iTunes Application on Window version: 11.2.2.3
    Anyone, please help me!
    Thanks all.

  • Everytime I come to purchase neverwinter nights 2 it won't let me, and brings the following error message up; 'There was an error in the App Store. Please try again later (100). It is later, days later, and still nothing is working. Help!?!

    Everytime I come to purchase neverwinter nights 2 it won't let me, and brings the following error message up; 'There was an error in the App Store. Please try again later (100). It is later, days later, and still nothing is working. Help!?!
    Thanks

    Try here >  Mac App Store: "An unknown error occurred (100)" when purchasing

  • An Internal error has occurred: There is something wrong in CryptuprotectData

    When I try to upload to Facebook, I receive the following error message: "An Internal error has occurred: There is something wrong in CryptuprotectData". How do I fix it?

    Your client is CR R1, your server is XI R2. This is a known bug. To fix you need BOE XIR1 SP3 or above. I'm not sure this was fixed in a CR service pack. Sorry I can't find a link for that right now.
    Or use [this link|http://resources.businessobjects.com/support/additional_downloads/service_packs/crxir2.asp] to get CR R2, uninstall CR R1, and replace with CR R2. NOTE: they should still use the same license keys. If using CR to XIR2 you should always keep the same version so this is the preferred method.
    Regards,
    Tim

  • TS4185 I have downloaded facetime from the App store and I keep receiving this message - An internal FaceTime error occurred.  There was a problem with FaceTime. You need to quit and open FaceTime again.  Please help!

    I have downloaded facetime from the App store and I keep receiving this message - An internal FaceTime error occurred.  There was a problem with FaceTime. You need to quit and open FaceTime again.  Please help!

    This error message could result from an incorrect setting for date and time, or an operating system which does not have the latest updates installed.  It's a good idea to have your location setting on automatic.  Turn on the wi fi in your mac for a minute or so, to allow it to automatically search for your present location.  Do this even though you have the correct time Date settings displayed.

Maybe you are looking for