2 Replies Latest reply on Jul 14, 2015 6:46 AM by shonuff000000

    Applescript for crash id cc2015

    shonuff000000

      Work fine in id cc2014, crash in id cc2015

       

      s =  'set n01 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n02 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n03 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n04 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n05 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n06 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n07 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n08 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n09 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n10 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n11 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n12 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n13 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n14 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n15 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n16 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n17 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n18 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n19 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n20 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n21 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n22 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n23 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n24 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n25 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      s += 'set n26 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n';
      
      
      app.doScript(s, ScriptLanguage.APPLESCRIPT_LANGUAGE);
      
        • 1. Re: Applescript for crash id cc2015
          S Hopkins Adobe Community Professional

          Hi,

          I verified that the doScript crashes. The same script does not crash when run in AppleScript. Strange!

          By the way, the following works, so it must have something to do with the length of the script.:

          @ !

          s =  'set n01 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n'; 

          s += 'set n02 to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\n'; 

          s += 'tell application "Adobe InDesign CC 2015"\n';

          s += 'set contents of item 1 of selection to n01\n';

          s += 'end tell\n';

          app.doScript(s, ScriptLanguage.APPLESCRIPT_LANGUAGE); 

           

          Sorry, I can't be of any help here.

          • 2. Re: Applescript for crash id cc2015
            shonuff000000 Level 1

            Thank you for your contribution.


            What is important is the size of the string!