Could not save changes to this script because of a program error. -2706

OK, this is very odd! Please try the following and let me know your results:
1) Create a new script with the following example code:
set testList to {}
repeat with i from 1 to 8145
copy i to end of testList
end repeat
2) Save the script as an Application (name it whatever you like).
3) Launch the newly created Application and see if you get the same error message I am getting...
    *Could not save changes to this script because of a program error.*
    -2706
If you replace the number 8145 with 8144 (or any number less than 8145) the script runs without error. Any number greater than 8144 returns the error message shown above. Maybe there's a reason for this that I'm overlooking or is this another bug?
I looked up error code -2706 ([HERE|http://developer.apple.com/Mac/library/documentation/AppleScript/Concept ual/AppleScriptLangGuide/reference/ASLRerrorcodes.html]) which says it is a "*Stack overflow.*"
Thanx in advance for any insight on this!!
NOTE:
The only workaround I've found for this is to make sure the script resets the variable before it quits. Like this:
set testList to {}
repeat with i from 1 to 8145
copy i to end of testList
end repeat
set testList to ""

Hey Pierre, thanx for taking the time to scratch your head with me!
Very odd indeed.
Glad it's not just me that thinks this!
I've also noticed that the problem occurs even when you try to save the script as a compiled script. That's possible as long as you haven't run the script. Once you have run it, trying to save it seems impossible. You get the message: *“The document “Document title” could not be saved.”*
I've noticed the same thing as you and have experienced this extra error several times while trouble shooting this problem!
On the other hand, is there any good reason for which you would want to save such a big list? Are there any drawbacks to the workaround you've found?
I don't want to save ANY variable EVER unless I explicitly tell my script to do so! This variable is not a property, so why would my script want to save it? I haven't noticed any drawbacks to the workaround. Setting the list variable to "" or {} (or ANYthing with under 8145 items) seems to work fine. I just find it weird that my script can't "*save changes to itself*"?! What is there to save? It's just a variable that should release after my script has run ...unless I'm completely misunderstanding how variables work after ALL these years of scripting.
Btw, the following version of the script (as you probably already know) is much faster, although it doesn't change anything to the result:
*set testList to {}*
*set testListRef to a reference to testList*
*repeat with i from 1 to 8144*
*copy i to end of testListRef*
*end repeat*
Yeah, it definitely runs much faster this way! I just posted a quick example that would illustrate the 8144 list count limit. My script sets a variable to a list of numbers contained in a text file. This list is almost always rather large! Right now there are over 20,000 items in this list of numbers.
Again, thanx for your time my friend!!

Similar Messages

  • Could not complete the Refine Edge command because of a program error.

    This is kind of me being a smart ***… but, I’ve found an Error with the new refine edge. And I’ve solved the problem:
    If you check “remember settings” and refine a selection with output set to “New Layer with Layer Mask” and then try and refine another selection when you have an adjustment layer selected, the “New Layer with Layer Mask” is greyed out, but unless you change the output setting to something not greyed out, you get the error "Could not complete the Refine Edge command because of a program error.”.
    I’m sure there’s a better place I could have posted this and all that, but there you have it.
    Oh, and the solution is to just change the “Output to” to something not greyed out.

    Without system information and details on what exactly you are trying to do like what channel/ mask/ slection you are trying to refine in what specific image nobody can really say anything. Such errors are always specific. It would be best if you provided a screenshot of the selection in the image.
    Mylenium

  • Why am I getting this err -Could not complete the Split Extrusion command because of a program error

    To recreate this error, draw 2 simple shapes in Illustrator CS6, copy and paste them together as a Shape layer in Photoshop CS6.
    Then go to 3D > New 3D Extrusion from Selected Path. I just accept the defaults.
    Then go to 3D > Split Extrusion.
    The error is thrown at this point. No matter what I do, I can't get it to work.
    I've tried rasterizing the shape, but then I get a different error. When I select 3D > New 3D Extrusion from Selected Layer, I get the error: "Could not complete the New 3D Extruions from Selected Layer command because the path is too complex." This is ridiculous. I can't get the 3D to work at all.
    Is Photoshop just this buggy or am I trying to do something that should not be possible? If so, the error message certainly should be more helpful than what I'm seeing.

    You may have answered my question. I AM using the 64bit version of Illustrator CS6. I had no idea there were bugs in it that affected paths copied and pasted from Illustrator to Photoshop.
    A bit more about what I'm trying to accomplish... I'm trying to follow Deke's tutorial (http://www.deke.com/content/dekes-techniques-018-creating-a-3d-pie-chart) which is already difficult since so much has changed between CS5.5 and 6, but then on top of that, I keep getting errors!
    So I created the pie chart exactly as he shows and copied and pasted into Photoshop exactly as he does. Before submitting this post, though, I tried drawing just two very simple triangle shapes, copying them both and pasting them into Photoshop as a shape layer. The shapes weren't overlapping, but they were a part of the same shape layer just like the pie chart tutorial.
    Thanks for your help. If there is anything else I should try before just giving up because of the 64bit bugs, please let me know.

  • "Could not use the clone stamp tool because of a program error". How to fix this fault?

    When I try to use the Clone Stamp Tool I am met with the message shown above. I have tried in all the ways I could find to beat this: different photos, switched the computer off and on again, run a de-bugging program through it (Advanced System Care 5 Pro) and Microsoft's own stuff. The problem exists solidly and, without one of its most important picture repair tools Photoshop is pretty much useless.
    I have just set this new Photoshop Elements 10 program up on my Windows 7 (64) laptop. I have plenty of memory and a large enough hard drive; the machine is fairly new, stable and does not usually suffer from programming problems. I have found nothing on any of the Adobe Forums, or in other sites, to give me a hint as to what has caused the problem other than a bad program disk. My first conclusion was that I should reinstall the program, but it appears that I will then lose one of my two registration rights, that strikes me as being ridiculous as reinstallation is surely the most logical thing to do with a potentially faulty program disk! But I would have to uninstall to reinstall, and that's when the the second registration cuts in I am advised. I have tried every way I can think of to beat this to no avail. I'll be truly grateful if someone can help me out on this. Thank you!

    Thanks guys! I'm afraid that I'm still not sure: I've been told that uninstalling - after of course deactivating - amounts to a life gone... Yet according to the set of licence rules Adobe has, you're allowed to copy programs in a mirror image which, of course, would be used for a clean wipe - and surely that contradicts their set of rules? The rules seem to imply that that would be okay: no life lost. My concern is that through no fault of my own I have what appears to be a duff program; it's out of warranty now (my fault - I didn't install it until I could buy a more heavy-duty laptop). If the rule is "two-strikes-and-your-out, then I lose my last reactivation after THIS installation. I will get in touch with Adobe - but I live in the UK, and therein lies the problem: the equivalent of $39 dollars for the chat and whatever else it might cost is off-putting to me I'm afraid. If I could find out whether or not Adobe has a patch or something I would be a lot more happy about it all - the reinstallation after all may NOT cure the problem and I'd be stuck with a bunch of coffee cup coasters! Hey, ho...

  • "Could not complete the Blending Options Command because of a program error"

    I'm using CS5, PhotoShop 12.04 x64. I received this error message this morning when I tried to use the blending options. My software is in another state, so reloading is not an option right now. Can anyone suggest another way to address this problem?

    Trash your preferences...

  • Could not complete the Check Spelling command because of a program error.

    I'm trying to spell check a flyer and I continue to get this message.

    You have not provided any system info, no info about your version of PS, no details about your language, fonts used etc., so nobody can even begin to guess.
    Mylenium

  • Startup error message - Could not run this script because of a disk error.

    I uninstalled Dates-to-iCal-Launcher and couldn't find any info about how to uninstall it online (just dragged the icon from Applications to the Trash). Now every time I start my iBook, I get an error message from Dates-to-iCal Launcher (there is an icon that looks like a scroll on the left):
    Could not run this script because of a disk error.
    -43
    How do I get rid of this error message? It happens every time I turn on the computer. Thank you!

    thanks for the update.
    there is no risk when changing settings in any OS user interface like System Preferences etc.
    there could be some risk in manually deleting files from Library folders, which is done sometimes to uninstall applications.
    keep in mind to regularly back up important files.

  • Cannot save as PDF - "Could not save a copy as (filename) because the file is already in use..."

    I have a number of PSD files I've created and I'm trying to save them as PDFs.
    I can Save for Web and Devices, I can save as a .gif, .eps., and every other format I've tested, but I cannot save as a PDF. I get the error:
    "Could not save a copy as (filename) because the file is already in use or was left open by another application."
    I'm running Adobe Master Collection CS5 with Photoshop CS 5.5 (12.0.4 x64) on a Windows 7 64-bit machine.
    I have a 928 GB HD with 697 GB free.
    I have rebooted and tried saving the files immediately after I reboot. I have killed my virus scanner. I have killed a number of other possible culprits including Acrotray.exe and CS5ServiceManager.ext
    I have run Process Explorer as recommended by Microsoft and found no applications using the file. I've also tried saving the file to my external hard drive and/or renaming the file with only rare luck.
    Nothing seems to fix it.
    The boards seem to suggest Adobe isn't taking responsibility for this and pointing it back to the OS or other software. I'm willing to believe them if someone can show me how/where to kill whatever process it is - but at this point, all my indicators point back to Photoshop.

    Here is a clip from a past post where user could not drag and drop files to hard drive.
    To my great relief I have now sorted this issue and offer the following as the Correct Answer. My sincere and grateful thanks go to Curt and Yammer, above, who have helped me so much in sorting this Windows 7 issue which is clearly very relevant to Bridge users also. Any slowness to grasp what they have been saying is down to me!
    The key to solving this issue lies is understanding that in terms of Windows 7 Security, every internal or external hard drive, plus folders, sub-folders and files thereon has an OWNER. Also each OWNER has a certain level of PERMISSION to do things such as moving files to a different folder, deleting or re-naming them etc. If you try to do things that you don't currently have Permission to do, that is when you get an ‘Access Denied’ error message. Also your system has an Admistrator or Administrators and at the outset you need to ensure through the Control Panel that you are listed as one of them. .
    If, like me, you didn't realise these things, (and why would you if Microsoft or your computer or hard drive suppliers couldn't be bothered to really make sure you knew about them), then trying to fathom the ‘Access Denied’ problem becomes a stressful and frustrating nightmare as I can testify having spent a week at it!
    The steps that I took to resolve the issue and which I believe now constitute the 'Correct Answer' are as follows:
    First make sure that you have Administrator rights on your system via the Control Panel
    Next ‘right click’ on the Drive whose files you want to gain full access to, for example the drive that your pictures are stored on, and click on 'Properties'.
    Under the Security tab you will see a list of Groups and Users on this drive and the Permissions that they have to do things.
    Before doing anything to edit these Permissions, first click on the Advanced button. This opens another window with a tab showing the Owner of this drive.
    Click on the Owner tab and if you are not already listed as the owner, make yourself the owner by selecting your name from the list. I believe it should appear there if you are an admistrator or user. (In my case at this stage the owner was initially shown as an obscure string of numbers and letters which I believe identified the drive when it was connected to the lap top I was using before I upgraded my machine)
    Now be sure to check the box that says "Replace Owner on Subcontainers and Objects" and the click Apply. On completion of this step, the drive in question and all the folders, subfolders and files thereon should now be 'owned' by you. You could check this out by right clicking on a particular folder then clicking Properties > Security > Advanced > Owner. Your name should appear. So far so simples!
    Now go back to the Security Tab for your drive (Step 2 / 3 above) and look at the Permissions you currently have. Your aim now is to allow yourself 'Full Control.' If you don’t currently have this level of permission click Edit, select your name on the list, check ‘Full Control’ and 'Apply' the change.
    I think I'm right in saying that at this point whilst still working in the Drive directory you are now given the option of ticking boxes which allow you to, in effect, cascade the permission you have just granted yourself to all the files and folders on that drive. Tick the box to allow this and Windows should then take care of the rest.If I'm not quite correct here then in my particular case, for example, all my images were stored on my external drive. The top level, or 'parent' folder in which all my pictures could be found was the 'My Pictures' folder and I had created a number of folders and subfolders ('child ' folders) within that folder. The permissions I gave to the Parent folder – My Pictures – were cascaded down through the Child folders.
    On completion of the above step I tested the result in Windows Explorer by dragging a few files back and forth between folders and it now worked perfectly - I was now able to move / delete / rename etc all files without now getting the dreaded access denied message. What a sense of relief! This meant that I could now open Bridge normally rather than having to right click it and 'Run As Admistrator' - albeit that is a very useful thing to do until you get the problem sorted as described.

  • Could not save as "untitled-218a.jpg" because write access was not granted.

    Can anyone guide me on what might be going on?  I am unable to save images in PS.  I keep getting this error:  Could not save as “untitled-218a.jpg” because write access was not granted.
    Thank you!

    we don't even know what platform your using or  version of PS
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Could not save changes

    Trying to use Notes on icloud.com (the web site) on Windows, and this is my most common result when I edit or add a new note: "Could Not Save Changes"  Doesn't matter what browser I've used so far, it's very consistent.  Clearing cache, cookies, you name it makes no difference either.
    The console fills up with things like this:
    Failed to load resource: the server responded with a status of 421 (Unauthorized) https://setup.icloud.com/setup/ws/1/validate?clientBuildNumber=14G39&clientId=BC 9079C0-EC24-425F-BD93-496D1BA823B0
    Failed to load resource: net::ERR_CACHE_MISS https://www.icloud.com/
    Notes:  WARN Notes.Statechart<sc1181>: state loadedState.editorState.noteLoadingState has no initial substate defined. Will default to using an empty state as initial substate javascript-packed.js:218
    Notes:  Content change notification has incorrect values javascript-packed.js:218
    Notes:  WARN Notes.Statechart<sc1181>: No initial substate was defined for state loadedState.editorState.noteLoadingState. Entering default empty state javascript-packed.js:218
    CloudOS:  SC.Benchmark "Total application load" ended without a matching start.  No information was saved. javascript-packed.js:151
    Notes:  Content change notification has incorrect values javascript-packed.js:218
    GET https://p01-notesws.icloud.com/no/changeset?clientBuildNumber=14G39&clientI…BD93 -496D1BA823B0&dsid=38249672&syncToken=d9fd6bfc783bb13719740d4560d6aff6 500 (Internal Server Error)
    Notes:  Changeset failed with response:
    Notes:  uncaught error
    So as far as Notes goes, how can I fixed up what seems to be a messed up state?

    Hi John,
    If you are having an issue with saving changes to Notes in the iCloud web site, you should check to make sure that your  computer meets the system requirements for iCloud, in particular the web browser versions. See this article -
    System requirements for iCloud - Apple Support
    Specifically -
    Internet Explorer 10 or later, Firefox 22 or later, or Google Chrome 28 or later (desktop mode only)
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Could not use the spot healing brush because of an internal error!

    Hi All. I have been trying out the Photoshop CC trial and all is well but all of a sudden I have been getting the "could not use the spot healing brush because of an internal error" message when I'm using the healing brush rapidly! I'm sending the tiff file from Capture One Pro 8 as a Tiff file so I'm not sure if this has anything to do with it.
    Many Thanks

    Hi it does not crash but I looked in the Photoshop Crashes folder anyway and it was empty! The message flags up and then press OK to remove it.

  • Getting error The user could not be registered at this time due to an internal error in R11

    We created new Organization (that had alpha numeric value e.g.  7777A) using Customer Online to be used in iStore i11 version. 
    The user account and password was also created for the organization.  When we tried to login to istore the first time the registration screen (jtftmplh.jsp) was displayed.  After filling the needed information and submitting we get the error:
    "The user could not be registered at this time due to an internal error Please contact the system administrator if this problem persists.
    Note to System Administrators: View source for more information about this error."
    But if we created new Organization with numbers only  e.g. 7777  we don't have the issue. Yet we already have large number of organization with alpha numeric and they work fine. (believe they were pragmatically loaded).
    The profiles "HZ: Generate Party Number" and "HZ: Generate Party Site Number" are set to Yes.
    ==> Here is the error in the page source:
    Message: The user could not be registered at this time due to an internal error
    Please contact the system administrator if this problem persists.
      Note to System Administrators: View source for more information about this error.
    Stack:
    oracle.apps.jtf.base.resources.FrameworkException: The user could not be registered at this time due to an internal error
    Please contact the system administrator if this problem persists. 
    Note to System Administrators: View source for more information about this error.
        at oracle.apps.jtf.um.template.TmplUtils.action(TmplUtils.java:406)
        at _oa__html._jtftmplh._jspService(_jtftmplh.java:3961)
        at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
        at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
        at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
        at oracle.jsp.JspServlet.internalService(JspServlet.java)
        at oracle.jsp.JspServlet.service(JspServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java)
        at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java)
        at _oa__html._jtftmplh._jspService(_jtftmplh.java:3870)
        at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
        at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
        at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
        at oracle.jsp.JspServlet.internalService(JspServlet.java)
        at oracle.jsp.JspServlet.service(JspServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java)
        at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java)
        at _oa__html._jtftmplh._jspService(_jtftmplh.java:2342)
        at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
        at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
        at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
        at oracle.jsp.JspServlet.internalService(JspServlet.java)
        at oracle.jsp.JspServlet.service(JspServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java)
        at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java)
        at _oa__html._ibeCRgpBusinessCreate._jspService(_ibeCRgpBusinessCreate.java:1467)
        at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
        at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
        at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
        at oracle.jsp.JspServlet.internalService(JspServlet.java)
        at oracle.jsp.JspServlet.service(JspServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
        at org.apache.jserv.JServConnection.run(JServConnection.java:294)
        at java.lang.Thread.run(Thread.java:680)
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: IBE_ERR_UM_REG_USER
        at oracle.apps.ibe.um.RegisterBusiness.handle(RegisterBusiness.java:1157)
        at oracle.apps.jtf.um.template.TmplUtils.action(TmplUtils.java:379)
        ... 37 more
    Caused by: oracle.apps.jtf.base.resources.FrameworkException
        at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)
        at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)
        at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)
        at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)
        at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)
        at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)
        at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)
        ... 39 more
    The error message is not helpful and not clear of the error. How can we register users with alpha-numeric value (if that is the issue?).
    Thanks for your assistance.

    Been like this for a couple of days.  Is this something that happens from time to time?

  • Itunes could not connect to the iPhone "iPhone" because of an unknown error

    Hello. I have a PowerBook G4 running OSX 10.5.5 867 MHz 640MB Memory. I have installed iTunes 8 and my library is kept on a separate Lacie External Hard Drive. When I connect the drive, Open iTunes and then plug in the iPhone G3 8G I receive the following message:
    "itunes could not connect to the iPhone "iPhone" because of an unknown error occurred (0xE8000001)"
    If someone can point me in the right direction to problem solve I'd really appreciate it.
    Thanks

    This may not make you feel any better, but it's not you, it's not your new phone, and it's not the way Apple normally works. It is extreme overload for today. I have one of the original iPhones, and today I tried to simply get the new software, and after all the download and firmware updating, I got the same message you did. It had persisted all day, and, I'm sorry to say, is likely to for the rest of the day. I'm on a Mac, so it's not a Vista thing, either. Other people I know who bought the new phone are also experiencing the same thing. Spread the word! Discourage anyone from upgrading today! Or they, too, will be WITHOUT A PHONE!!
    Good luck to us all,
    Shelley

  • I cannot reset my photostream, when I do so, I get an error message that says, " Your Photostream could not be reset at this time due to a server error"  Any ideas?

    I cannont reset my photostream, when I attempt to do so I get an error message that says, " Your Photostream could not be reset at this time due to server error"  Any Ideas?

    Been like this for a couple of days.  Is this something that happens from time to time?

  • "your photostream could not be reset at this time due to a server error, try again later"

    Is anyone else having this issue. As according to Apple system status all icloud services are online & working. It has been like this for a number of days & is the same when i try and reset photostream in safari on my iMac & Firefox on my work's PC.
    Anyone know of a way of fixing it?

    Its now miraculously fixed itself after 8 days of not working.
    Another Apple mystery.

Maybe you are looking for

  • HP Color LaserJet Pro MFP ME PCL 6

    I've been using the printer for about 1 month and no problems.  Just tried to print a document and now its printing with color lines thruout the page horizintally.  checked my cartridges and it shows they are more than 50 % full.  

  • Image size different than the Bridge

    question. I shoot raw images and can export to jpeg in The Bridge at 6144 x 4096 (25.2 MP) 300 dpi. Opened in Photoshop that's a 20.4x13.6 Why do the same images export from Lightroom at 3286 x 2191, 300 dpi?? In photoshop that just under 11.6x7.7 Wh

  • If your Mac doesn't see your firewire camcorder, you might give this a try

    If this issue has been resolved, please accept my apology. The first time and ONLY the first time I connected my Sony DCR-TRV17 camcorder to the firewire port on my Leopard MacBook (Oct 2008 I think), iMovie recognized it. After that time, the MacBoo

  • HOOKING MY MACBOOK TO LCD HDTV

    Im not very smart when it comes to all this high tech crap I have an hd lcd 32 inch tv. it has like s video ports in the back and says hdmi interface in the front so im assuming it has one of those. I really dont want to have to order something from

  • What is the current sampling rate for iTunes store purchases

    As a dinosaur, I still like getting my music on CD's (and, in fact, I still have quite an LP collection). But even CD's are becoming harder to come by these days and I have found that with the right sampling and codec (256KB/vbr AAC), my lossy compre