Script works Great, Pro-Tips appreciated.

This script is used to make a few changes that SOME of our die suppliers require. It works great. If you have a little time to look it over and give me some advice on best practices, consiseness etc. it would be greatly appreciated.
Note: The files this script is aimed at are fairly civilized, and don't vary much so I didn't have to buld in room for varience. For example, the die lines will ALWAYS be a spot color, so I didn't need to include anything for RGB or CMYK.
// script.name = prepDieFile.js;
// script.description = removes unnecessary layers, vectors, and text. Leaves cross-mark line unpainted. Colors all remaining text and strokes black;
// script.requirements = an opened document;
// script.parent = elDudereno // 10/10/13;
// script.elegant = false;
#target Illustrator
var idoc = app.activeDocument;
var pi = idoc.pathItems;
var tf = idoc.textFrames;
var deletedLayers = 0;
var deletedPaths = 0;
var spotStroke = 0;
var deletedText = 0;
var blackedText = 0;
var layerCount = idoc.layers.length;
//loop through all layers deleting hidden layers. Loop from the back, to preserve index of remaining layers when we remove one.
for (var i = layerCount - 1; i >= 0; i--) {
          var thisLayer = idoc.layers[i];
          if (thisLayer.visible == false || thisLayer.locked == true) {
                    thisLayer.visible = true;
                    thisLayer.locked = false;
                    thisLayer.remove();
                    deletedLayers++;
unlockPaths();
//locate largest path item (bounding box) and lock it.
var theBiggest = pi[0];
for (i=1; i<pi.length; i++) {
          if (Math.abs(pi[i].area) > Math.abs(theBiggest.area)) {
                    theBiggest = pi[i];
theBiggest.remove();
deletedLayers++;
//locate second largest path (cross-mark size) remove stroke and lock
var secondBiggest = pi[0];
for (j=1; j<pi.length; j++) {
          if (Math.abs(pi[j].area) > Math.abs(secondBiggest.area)) {
                    secondBiggest = pi[j];
secondBiggest.strokeColor = NoColor;
secondBiggest.fillColor = NoColor;
secondBiggest.locked = true;
// loop through path items delete if hidden, registration, or un-stroked. Change all non-registration spot colors to 100% GrayColor.
for (var j=pi.length -1; j >= 0; j--) {
          var ipath = pi[j];
          if (ipath.hidden==true) {
                    ipath.remove();
                    deletedPaths++;
          if (ipath.locked==false) {
                    var strokeColor = ipath.strokeColor;
                    if (strokeColor.typename == "NoColor"){
                              ipath.remove();
                              deletedPaths++;
                    else if (strokeColor.typename == "SpotColor"){
                              if (strokeColor.spot.name == "[Registration]"){
                                        ipath.remove();
                                        deletedPaths++;
                              } else {
                                        ipath.strokeColor = GrayColor;
                                        ipath.strokeColor.gray = 100.0;
                                        spotStroke++;
unlockPaths();
// delete text frames with first letter set to registration. Turn all other text to black.
for (t=tf.length -1; t>=0; t--) {
          var iTxtFrm = tf[t];
          var firstLtr = iTxtFrm.characters[0];
          if (firstLtr.characterAttributes.fillColor.spot.name == "[Registration]"){
                    iTxtFrm.remove();
                    deletedText++;
          else {
                    var chars = iTxtFrm.characters;
                    for (var c=0; c<chars.length; c++) {
                              var ltr = chars[c];
                              ltr.characterAttributes.fillColor = GrayColor;
                              ltr.characterAttributes.fillColor.gray = 100.0;
                              blackedText++;
redraw();
alert(deletedLayers + " hidden or locked layer(s), " + deletedPaths + " path(s) & " + deletedText + " text frames, were deleted.  " + blackedText + " letters, & " + spotStroke + " stroke(s) were converted to 100% K.");
//unlock all path items
function unlockPaths(){
          for (var k=0; k<pi.length; k++){
                    var lpath = pi[k];
                    if (lpath.locked == true){
                              lpath.locked = false;
Thanks for taking a look.
http://www.filedropper.com/0388701die <-sample file.

I recently updated this to delete all but one artboard and make the remaining artboard the same size as the object with the largest area.
// script.name = prepDieFile.js;
// script.description = removes unnecessary layers, vectors, and text. Leaves cross-mark line unpainted. Colors all remaining text and strokes black;
// script.requirements = an opened document;
// script.parent = elDudereno // 10/10/13;
// script.elegant = false;
#target Illustrator
var idoc = app.activeDocument;
var pi = idoc.pathItems;
var tf = idoc.textFrames;
var deletedLayers = 0;
var deletedPaths = 0;
var spotStroke = 0;
var deletedText = 0;
var blackedText = 0;
var deletedBoards = 0;
var boardCount = idoc.artboards.length;
//loop through all artboards deleting all but the first.
for (var i = boardCount - 1; i >= 1; i--) {
  var thisBoard = idoc.artboards[i];
  thisBoard.remove();
  deletedBoards++;
var layerCount = idoc.layers.length;
//loop through all layers deleting hidden layers. Loop from the back, to preserve index of remaining layers when we remove one.
for (var i = layerCount - 1; i >= 0; i--) {
  var thisLayer = idoc.layers[i];
  if (thisLayer.visible == false || thisLayer.locked == true) {
  thisLayer.visible = true;
  thisLayer.locked = false;
  thisLayer.remove();
  deletedLayers++;
unlockPaths();
//locate largest path item (bounding box) set artboard to that size and remove path.
var theBiggest = pi[0];
for (i=1; i<pi.length; i++) {
  if (Math.abs(pi[i].area) > Math.abs(theBiggest.area)) {
  theBiggest = pi[i];
idoc.artboards[0].artboardRect=theBiggest.geometricBounds;
theBiggest.remove();
deletedLayers++;
//locate second largest path (cross-mark size) remove stroke and lock
var secondBiggest = pi[0];
for (j=1; j<pi.length; j++) {
  if (Math.abs(pi[j].area) > Math.abs(secondBiggest.area)) {
  secondBiggest = pi[j];
secondBiggest.strokeColor = NoColor;
secondBiggest.fillColor = NoColor;
secondBiggest.locked = true;
// loop through path items delete if hidden, registration, or un-stroked. Change all non-registration spot colors to 100% GrayColor.
for (var j=pi.length -1; j >= 0; j--) {
  var ipath = pi[j];
  if (ipath.hidden==true) {
  ipath.remove();
  deletedPaths++;
  if (ipath.locked==false) {
  var strokeColor = ipath.strokeColor;
  if (strokeColor.typename == "NoColor"){
  ipath.remove();
  deletedPaths++;
  else if (strokeColor.typename == "SpotColor"){
  if (strokeColor.spot.name == "[Registration]"){
  ipath.remove();
  deletedPaths++;
  } else {
  ipath.strokeColor = GrayColor;
  ipath.strokeColor.gray = 100.0;
  spotStroke++;
unlockPaths();
// delete text frames with first letter set to registration. Turn all other text to black.
for (t=tf.length -1; t>=0; t--) {
  var iTxtFrm = tf[t];
  var firstLtr = iTxtFrm.characters[0];
  if (firstLtr.characterAttributes.fillColor.spot.name == "[Registration]"){
  iTxtFrm.remove();
  deletedText++;
  else {
  var chars = iTxtFrm.characters;
  for (var c=0; c<chars.length; c++) {
  var ltr = chars[c];
  ltr.characterAttributes.fillColor = GrayColor;
  ltr.characterAttributes.fillColor.gray = 100.0;
  blackedText++;
redraw();
alert(deletedBoards + " art board(s), " + deletedLayers + " hidden or locked layer(s), " + deletedPaths + " path(s) & " + deletedText + " text frames, were deleted.  " + blackedText + " letters, & " + spotStroke + " stroke(s) were converted to 100% K.");
//unlock all path items
function unlockPaths(){
  for (var k=0; k<pi.length; k++){
  var lpath = pi[k];
  if (lpath.locked == true){
  lpath.locked = false;
Credit to @Tom_Friedman for post 13 in this thread Re: Resize Artboard

Similar Messages

  • Short, basic VB script works on 2003 Server but not on 2012 R2 server

    Hello all,
    Hopefully I'm posting this in the right place. I have a legacy VB script that I need to keep, but I'm having trouble getting it to work on Server 2012 R2.
    The script reads a file called "Test.txt" that contains the following string:
    String1|String2
    Part of the VB script is to read this "Test.txt" file and parse this line into 2 separate elements based upon the "|" delimeter:
    On Error Resume Next
    Dim FSI, inputFile, String, f, WshShell,WshNetwork, WshFSO, StringArray
    inputFile = "Test.txt"
    CONST ForReading = 1, ForWriting = 2, ForAppending = 8
    Set FSI = CreateObject("Scripting.FileSystemObject")
    Set f = FSI.OpenTextFile(inputFile, ForReading, True)
    Set WshShell=WScript.CreateObject("WScript.Shell")
    '********* Read the file ********
    String = f.ReadLine
    msgbox("String: "&string)
    '********* Split the line *******
    StringArray = Split(String,"|", -1, 1)
    msgbox("stringarray(0): "&stringarray(0))
    msgbox("stringarray(1): "&stringarray(1))
    The variables in this script when ran on Server 2003 are:
    string = String1|String2
    stringarray(0) = String1
    stringarray(1) = String2
    So this script parses the String1|String2 line perfectly on Server 2003. However, running this same VB script on Server 2012 R2 results in very strange output:
    The variables in this script when ran on Server 2012 R2 are:
    string = ӱƥt
    stringarray(0) = ӱƥt
    stringarray(1) =
    Is there anything on Server 2012 R2 that I need to install to get this to work in VB, or what is the issue with Server 2012 R2 and visual basic? I'd LOVE to redo this in PowerShell but I need to keep it Visual Basic for legacy reasons for a few more months.

    Hmm interesting. I tried using the 3 different "format" parameters for the OpenTextFile method, and none of them worked on Server 2012 R2:
    http://msdn.microsoft.com/en-us/library/aa265347(v=vs.60).aspx
    However, I copied the text file directly from the 2003 server and placed it on the 2012 R2 server, and then the script worked great!
    Thanks for steering me in the right direction Bill!

  • When I call someone using FaceTime from my mac, they can see me but no hear me. Is there something I need to do to make this happen? I also have an iPad 2 and FaceTime works great on it if I call somebody. Why no sound from my mac FaceTime using a mac pro

    When I call someone using FaceTime from my mac, they can see me but not hear me. Is there something I need to do to make this happen? I also have an iPad 2 and FaceTime works great on it if I call somebody. Why no sound from my mac FaceTime using a mac pro and isight camera, mike combo.
    If I use google it works. If I use Ichat, it works. If I use skype it works.

    This sounds like something similar to https://discussions.apple.com/thread/3388112?start=105&tstart=0.
    Try turning down the speak volume (System Preferences->Sound->Output->Output Volume)  or the microphone gain (System Preferences->Sound->Input->Input Volume). Do this on both sides of the call.

  • I have a Seagate Slim Portable 500 GB USB 3.0 external hard drive that worked great with my Macbook Pro 13" Retina but gets ejected and won't show files on any iMac.

    I have a Seagate Slim Portable 500 GB USB 3.0 external hard drive that worked great with my Macbook Pro 13" Retina but gets ejected and won't show files on any iMac. My Macbook Pro and the two different iMacs I tried it on were all using Mountain Lion, so the only difference was the iMac versus Macbook Pro.

    I just tried this, no luck...
    I connected a different USB cable, still the same problem. Tried both cables with the problematic hard drive on two different computers, still the same problem.
    At this point I assume I'll probably need professional help in saving the files, thanks for the assistance.

  • Airplay from MBP works great. Any tips on optimizing lag?

    We're using Apple TVs on a couple LED TVs in the office, and it works great! The ONLY thing we notice is some lag when mirroring our desktops via AirPlay (mouse tracking, refresh, etc) Not a big deal at all, but if there is anything I can do to optimize this, it would be great to know.
    . We're all on < 2012 MB Pros or MB Airs, and have a 2012 Time Capsule running as our wireless router using 802.11n.

    Such lags are invariably network related. You may be able to optimise your network by repositioning equipment or changing channels, otherwise it may require additional equipment.

  • I salvaged a late 2006 Mac Pro.It works great but I need to change the administrater password so I can make changes

    I SALVAGE A LATE 2006 MAC PRO FROM A RECYCLING CENTER.IT WORKS GREAT AND I WANT TO SWITCH OVER TO IT.BUT IM LIMITED IN WHAT I CAN DO BECAUSE I CAN'T MAKE CHANGES WITHOUT A PASSWORD. THERES NO WAY OF FINDING THE ORINGNAL ADMINISTRATER.CAN ANYONE HELP  WITHOUT IT COSTING ME ALOT OF MONEY. THANK YOU- -  RECYCLME

    The first thing you should do after acquiring a used computer is to erase the internal drive and install a clean copy of OS X. How you do that depends on the model. Look it up on this page to see what version was originally installed.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard installation disc, which you can get from the Apple Store or a reputable reseller — not from eBay or anything of the kind.
    If the machine shipped with OS X 10.6, you need the gray installation discs that came with it. If you don't have the discs, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc, hold down the C key at the chime.
    If the machine shipped with OS X 10.7 or later, it should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime.
    Once booted from the disc or in Internet Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive, which is what you should do.
    After partitioning, quit Disk Utility and run the OS X Installer. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    You should then run Software Update and install all available system updates from Apple. If you want to upgrade to a major version of OS X newer than 10.6, buy it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.

  • I have a Mac book pro on vesion 10.6.8 and want to access icloud as it works great on my iphone 4.  Not sure best way to upgrade as some of the review of Lion on the appstore are awful.  Any advice

    I have a Mac book pro on vesion 10.6.8 and want to access icloud as it works great on my iphone 4.  Not sure best way to upgrade as some of the review of Lion on the appstore are awful.  Any advice as I also have MIcrosoft word etc and don't want to have to purchase these again.

    That is the best list ever for Lion compatibility!
    You can also do this:
    Launch the programs you know and love on your Snow Leopard Mac.
    Utilities --> Activity Monitor
    Under the "Kind" tab it will identify the programs running PowerPC, Intel and Intel 64.
    No PowerPC apps will run under Lion.
    Don't worry about Apple's system stuff like Mail, iCal, Safari.
    Don't worry about the system processes, like fontd and launchd, those will be replaced if you go to Lion.
    Just look for the programs that you need.

  • How is an OCR executed in Acrobat X Pro?  Recognize does not work.  Third Party OCR works great!

    How is an OCR executed in Acrobat X Pro?  Recognize text does not work.  Third Party OCR works great!

    How was the pdf created. When I want to get the best results I scan to TIFF at 300 dpi and then import the TIFF file into Acrobat.
    What scan resolution and format for the scan was used?

  • FaceTime won't work on my MacBook pro unless I tether it through my iPhone - FaceTime works great on my phone through the home wifi network but never connects on the MacBook anyone got any ideas

    FaceTime won't work on my MacBook pro unless I tether it through my iPhone - FaceTime works great on my phone through the home wifi network but never connects on the MacBook anyone got any ideas

    Hey mwe1978,
    I understand that you are having issues with FaceTime on your MacBook. In my experience, the following article may provide best troubleshooting practices, and lead to a resolution:
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/TS4185
    With FaceTime for Mac you can place and receive video calls to users of FaceTime on supported devices. Learn the system requirements for FaceTime for Mac and basic troubleshooting steps to resolve FaceTime for Mac activation and usage issues.
    Thanks,
    Matt M.

  • Adobe Story Script doesn't allow me to embed the script in Premiere Pro

    Adobe Story Script integration with Premiere Pro Doesnt allow me to embed the script
    Goal:  Embed an Adobe Story Script into Premiere Pro. (mac)
    Method:  I have a video with a verbatim transcript.
    I inport the transcript into Adobe Story and save it in the proper Adobe Story File extension (.astx)
    I save it to the Adobe cloud and I have also exported it to my desktop.
    I launch Premiere Pro and import the video that I have transcribed.
    The I try one of 3 ways to get the script to the video in PP.
    The first steps are the same as below:
    I go to Adobe Story and log in from within PP.
    I locate the file.
    I add a Scene.
    I make sure the scene is the same as it is within PP
    then...
    1.
    I drag and drop it onto the Movie file.
    Nothing appears within the Embed Adobe Story Script Meta Data field.
    2.
    I click on Analyze and the Embed Adobe Story Script script checkbox remains greyed out (Unable to select it)
    If I click Analyze then PP will analyze the script (does a decent job) but this is NOT what I want.  I want to attach the verbatim script to the video which is why I have it transcribed.
    3.
    Right click on the movie file within PP and the contextual menu allows me to attach a script.
    I locate my downloaded .astx file on my Mac and select it.
    Still nothing appears within the Embed Adobe Story Metadata field.
    I have worked with Anand from support who suggested I post this question here.
    I dont know if there are only certain Adobe templates for which this will work (ie TV script, Film etc)
    He suggested that this would most likely work only for the .mov file formats, but then discovered that it should work even for .mp4 files.
    In any case - if anyone has any thoughts, ideas, or has experience with this It would be greatly appreciated.
    Jon
    17 Views Tags: premiere proContent tagged with premiere pro, adobe story scriptContent tagged with adobe story script, embed adobe story script into premiere proContent tagged with embed adobe story script into premiere pro
    Translate

    Hi!
    I'm getting crazy  on this. I'm following the worflow suggested in the video (create a script in Story  with the clip transfer, import the clip to Premier, dragging the script to the clip). The clip has the scene number corresponding to the script.
    Unfortunately, nothing happens. The "attached script" is empty. And if I do the spech analysis it takes a lot of time (about three times as the original video, although I'm trying to suply a literal transcript).
    BTW, what I'm trying to do is to edit the videos from the scripts. I'm working on a documentary, with a lot of footage (30 x 2hs interviews). If I can create the script combining pieces of the inverviews in Story, and then importing it into Premiere. Anybody done something similar?

  • Works great in Firefox, crashes IE6 on 3 different Windows

    Hello,
    At work we are looking to purchase a mainframe terminal emulator applet which gathers parameters through JavaScript.
    Some of these parameters are sensitive, and we wish to keep them hidden, particularly from doing "View Source" in the web page.
    I tried to demo a technique using two applets on the same page: one applet will "set" an INPUT TYPE="HIDDEN" value and the other will "get" the (sensitive) JavaScript values
    and use them.
    To control the order, the first applet writes the second applet's <APPLET> tag dynamically.
    The technique works great using the 1.5 plugin in Firefox on Windows ME, Windows XP Pro SP2 and Windows 2000 Server. It also crashes badly Internet Explorer 6 on the same machines, as soon as you try to launch the second applet.
    Hang, freeze for 5 minutes, CTR-ALT-DELETE. Pretty bad.
    I tried recompiling with javac -source 1.4 and get the same.
    I tried recompiling with javac -source 1.3 and get the same.
    Below is the complete code (one HTML file and two applets). You can also download the compiled project with source at:
    http://www.quadmore.com/applet2/applet2.zip
    We control our environments, but need to use IE. Any fix or workaround would be greatly appreciated.
    Thanks!
    Bert
    (begin JSjava.java)
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.*;
    import netscape.javascript.*;
    public class JSjava extends Applet implements ActionListener
         Button b1;
         TextField tfuser;
         TextField tfpass;
         JSObject win;
         public void init()
              setLayout(new FlowLayout());
              tfuser = new TextField(10);
              tfpass = new TextField(10);
              b1 = new Button("vers la page web");
              b1.addActionListener(this);
              add(tfuser);
              add(tfpass);
              add(b1);
         public void actionPerformed(ActionEvent ae)
              if (ae.getSource() == b1)
                   // send TO FORM
                   JSObject win = (JSObject)JSObject.getWindow(this);
                   JSObject outputLabel;
                   win.eval("setHTMLInputTextUser('"+tfuser.getText()+"');");
                   win.eval("setHTMLInputTextPassword('"+tfpass.getText()+"');");
                   //lancer le deuxi�me applet ici
                   try
                        outputLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
                        outputLabel.setMember("innerHTML","<APPLET NAME=JS2 CODE=JSjavatwo.class MAYSCRIPT WIDTH=200 HEIGTH=200></APPLET>");
                   catch(Exception e)
                        e.printStackTrace();
    (end JSjava.java)
    (begin test.html)
    <html>
    <head>
         <SCRIPT>
              var s;
              var s2;
              function getHTMLInputTextUser()
                   return window.document.dynamic_hidden_values.secretusername.value;
              function setHTMLInputTextUser(s)
                   window.document.dynamic_hidden_values.secretusername.value = s;
              function getHTMLInputTextPassword()
                   return window.document.dynamic_hidden_values.secretpassword.value;
              function setHTMLInputTextPassword(s2)
                   window.document.dynamic_hidden_values.secretpassword.value = s2;
              function showHiddenValues()
                   alert('The user name is...' + window.document.dynamic_hidden_values.secretusername.value + ' and the password is...' + window.document.dynamic_hidden_values.secretpassword.value);
         </SCRIPT>
    </head>
    <body>
         <form name="dynamic_hidden_values" method="post">
              <input type="hidden" name="secretusername" value="">
              <input type="hidden" name="secretpassword" value="">
              <input type="button" value="Show the current values" onClick='showHiddenValues();'>
         </form>
         <APPLET NAME="JS" CODE="JSjava.class" MAYSCRIPT WIDTH="200" HEIGTH="200"></APPLET>
         <div id="lblOutputText">�</div>
    </body>
    </html>
    (end test.html)
    (begin JSjavatwo.java)
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.*;
    import netscape.javascript.*;
    public class JSjavatwo extends Applet implements ActionListener
         Button b2;
         TextField tfuser;
         TextField tfpass;
         JSObject win;
         public void init()
              setLayout(new FlowLayout());
              tfuser = new TextField(10);
              tfpass = new TextField(10);
              b2 = new Button("de la page web");
              b2.addActionListener(this);
              add(tfuser);
              add(tfpass);
              add(b2);
         public void actionPerformed(ActionEvent ae)
              if (ae.getSource() == b2)
                   // receive FROM FORM
                   JSObject win = (JSObject)JSObject.getWindow(this);
                   tfuser.setText((String)win.eval("getHTMLInputTextUser();"));
                   tfpass.setText((String)win.eval("getHTMLInputTextPassword();"));
    (begin JSjavatwo.java)

    There is a mention in the "Core Java" Vol.1 book by Cay Horstmann that 2 applets from the same codebase can communicate with each other, but this is not a good solution for us as one of the applets will be purchased.
    It has also been suggested that sub-classing the purchased applet might be possible, but of course that would be a no-cab-do if the inheritance was flagged as "final".

  • ICal Server was working great then...BAMF! No account information found...

    Our iCal server is failing to authenticate, although the Open Directory Services on the server appear to be working. Originally the server was bound to the domain and pointed to the Open Directory server for the main company (which ultimately is probably a good idea).
    However
    That was switched so that our server is now it's own Open Directory Master (although DNS still points to the right place).
    Any chance this could have royally screwed things up in the bowels of the authentication preferences?
    Whenever trying to start an iCal account on our server I'm getting this error (NOTE that iCal server worked great for a day before BAMF! Error city)
    Account information not found
    Request to the server http://myserver.domain.com:8008/principals/users/username failed (code 30).
    the following error log shows itself from iCal server. Any thoughts you have would be greatly appreciated
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 marking host ('127.0.0.1', 8009) down ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2008-05-14 14:49:57-0700 [-] [pydir] ])
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 retrying with ('127.0.0.1', 8010)
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 marking host ('127.0.0.1', 8010) down ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2008-05-14 14:49:57-0700 [-] [pydir] ])
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 retrying with ('127.0.0.1', 8011)
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 marking host ('127.0.0.1', 8011) down ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2008-05-14 14:49:57-0700 [-] [pydir] ])
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 retrying with ('127.0.0.1', 8012)
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 marking host ('127.0.0.1', 8012) down ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2008-05-14 14:49:57-0700 [-] [pydir] ])
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 retrying with ('127.0.0.1', 8013)
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 marking host ('127.0.0.1', 8013) down ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2008-05-14 14:49:57-0700 [-] [pydir] ])
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 retrying with ('127.0.0.1', 8014)
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 marking host ('127.0.0.1', 8014) down ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2008-05-14 14:49:57-0700 [-] [pydir] ])
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 retrying with ('127.0.0.1', 8015)
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 marking host ('127.0.0.1', 8015) down ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2008-05-14 14:49:57-0700 [-] [pydir] ])
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 retrying with ('127.0.0.1', 8016)
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 marking host ('127.0.0.1', 8016) down ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2008-05-14 14:49:57-0700 [-] [pydir] ])
    2008-05-14 14:49:57-0700 [-] [pydir] 14/05/2008 14:49:57 no working servers, manager -> aggressive
    2008-05-14 14:50:02-0700 [-] [pydir] 14/05/2008 14:50:02 re-adding ('127.0.0.1', 8012) automatically
    2008-05-14 14:50:02-0700 [-] [pydir] 14/05/2008 14:50:02 re-adding ('127.0.0.1', 8015) automatically
    2008-05-14 14:50:02-0700 [-] [pydir] 14/05/2008 14:50:02 re-adding ('127.0.0.1', 8014) automatically
    2008-05-14 14:50:02-0700 [-] [pydir] 14/05/2008 14:50:02 re-adding ('127.0.0.1', 8009) automatically
    2008-05-14 14:50:02-0700 [-] [pydir] 14/05/2008 14:50:02 re-adding ('127.0.0.1', 8011) automatically
    2008-05-14 14:50:02-0700 [-] [pydir] 14/05/2008 14:50:02 re-adding ('127.0.0.1', 8010) automatically
    2008-05-14 14:50:02-0700 [-] [pydir] 14/05/2008 14:50:02 re-adding ('127.0.0.1', 8016) automatically
    2008-05-14 14:50:02-0700 [-] [pydir] 14/05/2008 14:50:02 re-adding ('127.0.0.1', 8013) automatically

    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] Log opened.
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] twistd 2.5.0 (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ Contents/MacOS/Python 2.5.1) starting up
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] Configuring directory service of type: twistedcaldav.directory.appleopendirectory.OpenDirectoryService
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] Configuring directory service of type: twistedcaldav.directory.appleopendirectory.OpenDirectoryService
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] "Directory service <OpenDirectoryService '/Search': '/Search'> has no GUID; generating service GUID from realm name."
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] "Directory service <OpenDirectoryService '/Search': '/Search'> has no GUID; generating service GUID from realm name."
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] Traceback (most recent call last):
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/bin/twistd", line 21, in <module>
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] "Directory service <OpenDirectoryService '/Search': '/Search'> has no GUID; generating service GUID from realm name."
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] run()
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistd.py", line 27, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] app.run(runApp, ServerOptions)
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 379, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] runApp(config)
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistd.py", line 23, in runApp
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] _SomeApplicationRunner(config).run()
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 157, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] self.application = self.createOrGetApplication()
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 202, in createOrGetApplication
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] ser = plg.makeService(self.config.subOptions)
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/tap.py", line 593, in makeService
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] service = serviceMethod(options)
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/tap.py", line 360, in makeService_Slave
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] baseDirectory = directoryClass(**config.DirectoryService['params'])
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 107, in _init_
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] self.recordsForType(recordType)
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 392, in recordsForType
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] return self._storage(recordType)["records"]
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 369, in _storage
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] self.reloadCache(recordType)
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 495, in reloadCache
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] if recordShortName in disabled_names or guid in disabled_guids:
    2008-05-16 11:23:04-0700 [-] [caldav-8011] [-] TypeError: list objects are unhashable
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] Traceback (most recent call last):
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/bin/twistd", line 21, in <module>
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] run()
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistd.py", line 27, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] app.run(runApp, ServerOptions)
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 379, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] runApp(config)
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistd.py", line 23, in runApp
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] _SomeApplicationRunner(config).run()
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 157, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] self.application = self.createOrGetApplication()
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 202, in createOrGetApplication
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] ser = plg.makeService(self.config.subOptions)
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/tap.py", line 593, in makeService
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] service = serviceMethod(options)
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/tap.py", line 360, in makeService_Slave
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] baseDirectory = directoryClass(**config.DirectoryService['params'])
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 107, in _init_
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] self.recordsForType(recordType)
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 392, in recordsForType
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] return self._storage(recordType)["records"]
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 369, in _storage
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] self.reloadCache(recordType)
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 495, in reloadCache
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] if recordShortName in disabled_names or guid in disabled_guids:
    2008-05-16 11:23:04-0700 [-] [caldav-8014] [-] TypeError: list objects are unhashable
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] Traceback (most recent call last):
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/bin/twistd", line 21, in <module>
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] run()
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistd.py", line 27, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] app.run(runApp, ServerOptions)
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 379, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] runApp(config)
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twisted/scripts/twistd.py", line 23, in runApp
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] _SomeApplicationRunner(config).run()
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 157, in run
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] self.application = self.createOrGetApplication()
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twisted/application/app.py", line 202, in createOrGetApplication
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] ser = plg.makeService(self.config.subOptions)
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/tap.py", line 593, in makeService
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] service = serviceMethod(options)
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/tap.py", line 360, in makeService_Slave
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] baseDirectory = directoryClass(**config.DirectoryService['params'])
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 107, in _init_
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] self.recordsForType(recordType)
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 392, in recordsForType
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] return self._storage(recordType)["records"]
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 369, in _storage
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] self.reloadCache(recordType)
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] File "/usr/share/caldavd/lib/python/twistedcaldav/directory/appleopendirectory.py", line 495, in reloadCache
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] if recordShortName in disabled_names or guid in disabled_guids:
    2008-05-16 11:23:04-0700 [-] [caldav-8015] [-] TypeError: list objects are unhashable

  • When I first activated the iCloud keychain it was working great. But now it doesn't seem to be working on my iPod or iPads, i.e.: a wifi password it was able to use a few days ago over all devices now will only automatically work on the MacBook?

    When I first activated iCloud keychain on my stuff (MacBook Pro, iPod and 2 iPads) it was working great and the all logged in to a wifi network that I had only used the password for on the MacBook. But yesterday the others all started asking for the password again (which I unfortunately don't remember and the friend who had it has recentlly had a stroke and also cannot remember it). I've tried turning iCloud keychain off and then back on again, but to no avail. Any thoughts would be appreciated.

    What probally currputed is the battery, all type of devices do this when the battery gose out. and when it only lights up when pulged in that a sign of a bad battery. click here for support on a replacment battery. Hey dose maybe this page or this page will help.

  • Script works in PowerShell ISE but not in regular PowerShell window

    Hello all!
    I've got another PS conundrum to ponder.  I have the following script lines:
    write-host"Check
    for password complexity requirements:"-foregroundcolorblack-backgroundcolorwhite
    write-host""
    import-moduleactivedirectory
    $PasswordPolicy=Get-ADObject$RootDSE.defaultNamingContext
    -PropertypwdProperties
    $PasswordPolicy|Select@{n="PolicyType";e={"Password"}},`
    DistinguishedName,`
    @{n
    ="Password complexity requirements";e={Switch($_.pwdProperties)
    0{"Passwords
    can be simple and the administrator account cannot be locked out"} 
    1{"Passwords
    must be complex and the administrator account cannot be locked out"} 
    8{"Passwords
    can be simple, and the administrator account can be locked out"} 
    9{"Passwords
    must be complex, and the administrator account can be locked out"} 
    Default{$_.pwdProperties}}}}
    |ft*-auto
    When I run this code in ISE, it works great.  It returns the value for the setting "1" which is what this GPO is set to.
    But, when I run this same code in elevated PowerShell prompt, I get the following error:
    Any help would be greatly appreciated.

    Hi,
    Are you creating $RootDSE before you use it?
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Coded ui scripts working in one system when taken latest it is not working in other system

    Executable scripts working on one system, when taken latest on another system and executed, fails without throwing any error

    Hi Yellesh,
    Could you please provide us detailed error messages so that we can further look at this issue?  This blog introduced a similar scenario, maybe it can help you.
    http://blogs.msdn.com/b/mathew_aniyan/archive/2011/03/01/smart-match-amp-slow-coded-ui-tests.aspx
    One quick way to figure out the issue is to record a new and similar coded UI test against the same application on another system and run it. If the new test run fines, compare it with the old one for example the searchproperties of controls and the control
    hierarchy etc.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • ITunes keeps on crashng on my iPad1

    After 6 months of owning my iPad iTunes and the App store constantly crashes on me. Any help would be appreciated

  • Dynamic library?

    Hi there, I'm curious...does anyone know how to point iTunes to a library folder and then have it automatically synch with that folder and everything in it? I am constantly rebuilding my entire library because I add a bunch of music to my HD, but the

  • Error 0 Statement Ignored

    I'm migrating from Reports 10.xxx to 11.1.2.0, and I run into something very strange. Any select statement on any trigger on Reports 11.xxx  returns Error 0 at line x, column x SQL statement ignored. The reports have been and are still running on Rep

  • HT1725 how to reset your security questions

    please help me

  • HT202643 Java for OS X 2014-001: How to re-enable the Apple-provided Java SE 6 web plug-in

    Sorry guys I'm new in regards to this article: Java for OS X 2014-001: How to re-enable the Apple-provided Java SE 6 web plug-in and Web Start features - Apple Support I just would like to know if I after entering the commands do I just quit out of T