Do I need maintenance scripts ?

I am using Macaroni which runs Unix maintenance script every time I start the computer. At night the cpmputer is shut off. Do I really need to run these scripts with Snow Leopard ?

I know people have weighed in on this before.
sudo periodic all
that is all and no I don't leave mine on, or run them daily, in fact hardly at all. But I do other things to keep the system in top shape.
as long as the utility is certified compatible, you are fine. I think Onyx, SL Cache Cleaner and others can also automatically schedule cron to run next time, I just don't do anything automatic.
Every time you start? or once a day? some scripts are only weekly and monthly anyway.

Similar Messages

  • Execution of maintenance scripts in Lion

    Hi there,
    as of the latest update to OS X Lion, the maintenance scripts have ceased to perform automatically.  Before, the scripts executed at their proper times (daily, weekly, monthly) and whenever the computer was running (no need to wait for specific time slots).  I was able to verify the processes via Maintidget, a widget that monitors script activity and can also be used to execute them manually.  As I said, presently there is no more automated script activity - I have to force their execution via Maintidget.  Does anyone has an idea why this should be so?

    the discussion of the timed maintenance is an old one and does no longer apply.
    Sure it does.  Those scripts are ancient carry-overs from the early days of Unix and have not been changed much since then.
    Also, macjack has a good point.  Verify what the widget is telling you.  Paste the following command into the Terminal to find out when they last ran:
    ls -al /var/log/*.out
    The output on my machine is:
    Hyperion:~ thomas$ ls -al /var/log/*.out
    -rw-r--r--  1 root  wheel  355773 Feb 20 06:05 /var/log/daily.out
    -rw-r--r--  1 root  wheel    1352 Feb  1 06:07 /var/log/monthly.out
    -rw-r--r--  1 root  wheel    2697 Feb 18 09:31 /var/log/weekly.out

  • Running Maintenance Scripts for Mac OS 10.5.8 HELP!

    I am trying to run the maintenance scripts on my laptop for the first time. I go to Terminal type in "sudo periodic daily weekly monthly" and hit return. A warning message pops up the some data may be lost.... and the the Password prompt comes up. I back up consistently so I just want to run the scripts since it has never been done. However, when I try to type in my password, NOTHING types. I hit return and tried again, but nothing. Can someone please help me figure out what is wrong and if there is any other maintenance I need to do to the system?
    Thanks in advance for any help.

    You don't need to use any utility, or perform any procedure, to make sure OS X's built-in maintenance tasks have run under OS X 10.5 and later.
    OS X 10.5 will run its cron jobs automatically (actually, they are no longer handled by the UNIX facility "cron", they are now handled by a similar facility called "launchd". if that means anything to you) whether you have left your computer on all night or not. You no longer need a utility to run missed maintenance as of OS X 10.5. It will run automatically at the next available opportunity. Actually, this was the case as of OS X 10.4, but a bug kept the maintenance routines from running more than once per restart under OS X 10.4. This was fixed in OS X 10.5
    http://discussions.apple.com/message.jspa?messageID=6552347
    http://arstechnica.com/reviews/os/macosx-10.4.ars/5
    http://developer.apple.com/macosx/launchd.html

  • Maintenance scripts

    Hi everyone,
    I have two questions that I need help with, both related to the running of maintenance scripts. I downloaded and installed "anacron" the other day. When I check terminal, I notice that the daily maintenance script runs between midnight and 1am each day. I'm pretty sure that the default time for Tiger is somewhere between 3 and 4 am, a time which is assumed to not have much user activity. If the maintenance scripts are now being run around midnight or 1am, times when I am likely to be using the computer, will I notice a system slowdown? I've heard that supplemental maintenance scripts programs, (like Onyx, anacron, macjanitor, etc) are not necessary.
    I would uninstall the program, but I've tried searching for the files that the readme says to delete, and I am unable to find them (using the Finder and EasyFind). I am not sure if the program has now replaced Tiger maintenance, and if I delete anacron then the Tiger scripts won't run anymore. Can someone provide me with a way to safely uninstall the program and ensure that the scripts will still run? Thank you.

    Hi Louis
    I have been running Anacron for several years with no problems. You will not know when it is running most of the time unless you hear your hardrive clicking. Since my computer sleeps through the scheduled times it normally would run, it will run the scrips at times after the time period exceeds the time limit set since last run. Daily scripts every 24 hrs., etc. Anacron will check every hour to test the time limit to see if it needs to run and will run the scripts when needed. Therefore, if your computer was sleeping or off less than 24 hrs. of the time the daily script was set to run or since the last time it was run and you wake it or turn it on 3 days later, the daily script will run approximately 15 minutes past the next hour.
    As I said, it has never given me a problem and you won't ever have to worry about the log files getting bloated.
    These scripts don't really need to be run that often and some people prefer to use manuel programs such as ONYX to run them on occasion. That's probably more of a personal preference. I choose not to want to think about it and let Anacron do it's thing. If I ever think it may be causing problems, I won't hesitate to remove it. But so far on 3 computers, no problems.
    But if you feel the need to uninstall it follow this:
    To uninstall Anacron, go to Hard Drive/Library/LaunchDaemons/anacron.plist. Move the file "anacron.plist" to the desktop and restart the computer. Then you can trash anacron.plist file.
    Or, search in the Finder or with spotlight for Anacron. You will see the "anacron.plist" file. Delete it and restart the computer. Then you will be able to empty the trash.
    I can't really say how much this and permission repair has really helped, but I can tell you that for 3 years I have virtually no problems with my computers and have never had to reinstall the operating system on any of them other than updating or moving to the newer OSX.

  • Maintenance Scripts?? MacJanitor?

    On my G4 iBook running 10.3 I found and used an app called Macjanitor.
    Here is the blurb from their site.
    Freeware utility to run the system's daily, weekly, and monthly maintenance scripts.
    These scripts are normally run between 3am and 5am, and will not be run if you shut off your Mac at night. This can allow log files to grow very large, and prevent system databases from getting backed up.
    With MacJanitor, you can run these scripts 'by hand' periodically without having to use the Terminal to keep your Mac OS X machine in top racing form.
    Excellent for laptop users and others who shut off or put their Macs to sleep at night.
    Supposedly normal set maintenance scripts in OS X are set to run around 3-5am (not sure where you see this) but they will only run if the system is on (of course) and Not asleep. Well I can guarantee my system is alseep as that time !!
    I also stumbled across someone commenting on how useless MacJanitor was because they use something called Aancron http://members.cox.net/18james/anacron-tiger.html
    Blurb from their site
    Anacron runs the periodic daily, weekly and monthly tasks on your Mac even if the machine (a laptop, for example) spends much of its time asleep or switched-off. Anacron silently checks when you reboot and every sixty minutes while the computer is running to see if the various periodic scripts are overdue, and runs them if necessary. The advantage of Anacron over many other solutions to this issue is that it runs as a proper Unix background process, requires no user intervention, and uses the regular periodic scripts, including local additions or modifications.
    Sounds like a better solution, but I curious to what others due for running these maintenance scripts?
    Has anyone used either of these 2 programs under 10.4?
    Opinions and experiences please.

    Yes, I use OnyX because it runs them at times I have scheduled it to do so. 10.4.0 or later runs them automatically, if the computer is on and idle at 1AM, which isn't normal for many people so running them with an app can be good if you leave your machine running for days or weeks at a time. That said if you shut down your machine down every night there is no need to because the tasks will be run at boot each morning.

  • MacBook Maintenance Scripts?

    Hey there guys,
    I have heard a little bit on these Maintenance Scripts which are supposedly run during the late hours at night when any given Mac is left running for 24 hours.
    Does anyone have any further info on these maintenance scripts?

    Hyde244 wrote:
    Hey there guys,
    I have heard a little bit on these Maintenance Scripts which are supposedly run during the late hours at night when any given Mac is left running for 24 hours.
    Does anyone have any further info on these maintenance scripts?
    There's a widget that I have so that I can monitor the maintenance scripts and manually run them if need be. It's called [Maintidget|http://www.apple.com/downloads/dashboard/status/maintidget.html].
    Works for me -GDF

  • Periodic Maintenance Scripts

    I read this thread http://discussions.apple.com/thread.jspa?messageID=3136865&#3136865
    but it is closed so I coldn't post an additional question.
    In understand about how the 3 maintenance scripts are supposed to work (Thank you Dr. Smoke!), but for a variety of reasons I need to put my MacBook Pro to sleep at night. Last night, I set the Energy Saver options to wake up at 3:00 AM, having previously checked to see that the daily script was set to run at 3:15. The computer goes to sleep after one hour, so that should have given enough time for the script to run.
    This morning the daily script had NOT run, and the Console log is filled with entried like this:
    Mar 21 03:30:47 administrators-computer DirectoryService[49]: Active Directory DS Plugin: Kerberos Time Skew Too Large. Check Date/Time!\n
    (There are no entries between 3:00 and 3:30). The computer was not connected to the network where the AD lives (that is at work). Also, this morning when I woke the computer up manually, the clock was set at 3:40.
    I can continue to run the daily script by hand, but I would rather not. Any help will be appreciated.
    Walt

    Make your life simpler. There are some excellent alternatives that completely automate running the maintenance scripts for you. You'll find them at VersionTracker or MacUpdate.
    Macaroni - Shareware $8.00
    Anacron - Freeware
    PseudoAnacron - Freeware
    These utilities check if the periodic maintenance scripts were run at their scheduled times, and if not runs them immediately. They assure the scripts are run when your computer is turned on so you needn't worry about scheduling the computer to wake up at a certain time.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Overnight maintenance scripts

    I am a big fan of MacJanitor as it is simple, uses what is already built in to Tiger, and does mess with any settings. I do shut down my mac overnight.
    1.) If one doesn't use a 3rd party app to run these tasks, wasn't there an OS update that addressed something to the effect that if those files become to large or they haven't run, something will trigger them?
    2.) Has anyone heard if the next OS version will finally allow some way to control this or perform them via built in Apple software?
    Thanks!

    baltwo wrote: "1) Yes. IIRC, the 10.4.4 update fixed the OS so that if the scheduled tasks didn't run at their scheduled time, they'd run when the machine restarted (or awoke from sleep)."This is wholly incorrect.
    See my "Running the Mac OS X Maintenance Scripts" FAQ for all the advice you need on the scripts. In particular, the section "How the scripts are launched on a schedule" discusses the timer behavior under Tiger that have lead some to believe — incorrectly — that the scripts run "off schedule."
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Maintenance scripts question

    I was just wondering if the daily, weekly, and monthly maintenance scripts will run overnight if I have the 'puter set to sleep after an hour or so. In other words, will it wake itself to do maintenance? Thanks!

    If you would like to forget about the problem then download and install either Macaroni or PseudoAnacron - VersionTracker or MacUpdate. They will automatically run the scripts whenever the computer becomes available if they did not run at their scheduled times.
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility. For situations DU cannot handle the best third-party utilities are: Disk Warrior; DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.0 is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.6.1 is Leopard compatible; Drive Genius is similar to TechTool Pro in terms of the various repair services provided. The current version, 1.5.1, is Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack. If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline. Note that presently AppleJack is not compatible with Leopard.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. PsynchX 2.1.1 and RsyncX 2.1 (Freeware)
    6. Carbon Copy Cloner (Freeware - 3.0 is a Universal Binary)
    7. SuperDuper! (Commercial)
    8. Data Backup (Commercial)
    The following utilities can also be used for backup, but cannot create bootable clones:
    1. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    2. Toast
    3. Impression
    4. arRSync
    Apple's Backup is a full backup tool capable of also backing up across multiple media such as CD/DVD. However, it cannot create bootable backups. It is primarily an "archiving" utility as are the other two.
    Impression and Toast are disk image based backups, only. Particularly useful if you need to backup to CD/DVD across multiple media.
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.

  • Maintenance scripts, whats that all about?

    In this case I do not actually have a problem, but have heard about on other forums recently something about scripts running in the middle of the night, assuming you leave your computer on that somehow magically keep your Mac working properly. I did a search on the apple forums for this but to no avail.
    Anyone know what this is about? Does it actually work, and if so why?
    From my perspective it seems like one could cause more problems by always leaving a pc on, due to power failures or surges etc.
    Thanks in advance for some insight on this, or links where I could learn more.

    Yes, the Keebler elves are busy late at night keeping the computer problem free!
    There are three maintenance scripts that Unix runs on a daily, weekly, and monthly schedule. The scripts are run automatically between 3 and 5 am provided the computer is turned on and not sleeping. The scripts perform certain general maintenance chores such as deleting old log and temporary files, rotating the logs, and updating the lookup database.
    These maintenance activities prevent log files from growing to unwieldy size which also tends to keep the logs from becoming corrupted. This does help keep OS X running smoother, but they hardly keep OS X completely free of problems. Other efforts are needed:
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs the best third-party utility is Disk Warrior. DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption. However, DW is not yet compatible with Intel Macs. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.5.1 is Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility called Macaroni that will automate the maintenance activity regardless of whether the computer is turned off or asleep.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack. If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk 6 (Shareware)
    4. Deja Vu (Shareware)
    5. SuperDuper (Commercial)
    6. Carbon Copy Cloner (Freeware - not universal binary.)
    7. LaCie SilverKeeper (Freeware - not universal binary)
    8. RsynchX 2.1 and PsyncX 2.2.1 (Freeware)
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.

  • Does OS X automatically run the maintenance scripts?

    Can someone tell me if OS X (10.6 or 10.7) automatically runs the Daily, Weekly and Monthly maintenance scripts when my computer is asleep? If not, does OS X cause these scripts to run at the next point when the computer awakes?

    Yes, Apple fixed that issue that they would only run in the early AM when most users have their machines off/sleeping and clog the machine up.
    No need to worry about having to do anything anymore unless you have a glitchy issue, then the free OnyX will clean your machine's caches out nicely.
    http://www.titanium.free.fr/

  • Running Periodic Maintenance Scripts in Mountain Lion

    Here's an oldie question that I think has been asked with every new version of Mac OS X.  If a user shuts down his Mac in the evening and restarts in at 7AM the next morning, do the three periodic maintenance scripts ever run in Mountain Lion?
    It's easy to run them manually in Terminal or even with with an Applescript that I wrote, but do they need to be run under the condition I posed above?
    Thanks.

    For those people stating that no one needs to run these scripts or that they're somehow dangerous, please reconsider before posting inaccurate things like that.
    I haven't seen anyone stating that the scripts are dangerous. Clearly, they aren't. They are, however, unnecessary if the system is rebooted every day. The only exception is the periodic daily script 100.clean-logs, which deletes symbolic links in /Library/Logs/CrashReporter to crash and panic reports in /Library/Logs/DiagnosticReports older than 60 days. The reports themselves are deleted by a different process. Conceivably, if this script didn't run for a long enough time, the boot volume might fill up with broken symlinks to deleted crash reports. How long would that take?
    Well, a symbolic link takes up 77 bytes of storage space. Storage devices, however, allocate space in minimum units of one sector, which is usually 512 bytes. Some of the newer 3 TB hard drives have a 4096-byte sector size. So let's make some worst-case assumptions. Your boot drive is 3 TB, and you have only 1% of that space free, which is 30 GB. You generate 100 crash reports a day -- those being only crashes of system processes, of course, not user processes, which are logged to a different place. So your volume is filling up with symbolic links at the rate of about 400 KB a day. At that rate, it would take only about 75 years to fill it up completely.
    So you're quite correct. If your system is always shut down -- not in sleep -- between the hours of 3:15 and 5:30 AM every day, you should manually run 100.clean-logs at least once every 75 years. Let's say once every 25 years, to be on the safe side. Thanks for pointing that out.
    Properly Maintain Macbook pro: Apple Support Communities

  • UCCX 7 HA Creating a Permanent User Prompt from a Maintenance Script

    Hi,
    I have script that records a prompt, names the wav file a puts it in the prompts directory. This is used for a special message for a contact centre script, these are usually temporary messages and there is an option in the same maintenance script to silence this prompt. The customer wants to be able to change the permanent prompts like the welcome prompt however when I restart the primary contact centre CRS engine the special message prompt is gone from the prompts folder in windows. It was never in the list of prompts when I listed the prompts in the app admin GUI page. Is there any way I can copy this recorded prompt from the windows folder to the prompt repository so that if the contact centre is restarted the prompt is not deleted.
    I have attached a copy of the script so you can see how i'm doing this, When the call comes in to the script 'Main_Menu' the user presses 1, the call goes to the 'System_Menu' the user presses 1 again to go to 'Record_System_Prompt', from here you record the system message and the script puts a wav file called IECHA_IT_Sys_Mess.wav in to C:\Program Files\wfavvid\Prompts\user\en_GB. But this wav file is only in the windows folder not in the list of prompts in the UCCX appadmin page.
    Thanks
    Regards
    Neil

    Hi Neil
    This is quite a common query; basically you should never write to the wfavvid folder directly. If you upgrade to 8.0, you'll find you can't do that anyway.
    Instead of using a write document step or whatever to write to disk, so this:
    1) Create a User variable
    2) Use a 'get user' step to populate that variable with a user reference, you will need to specify a user ID or extension number on this step that refers to a user configured with Supervisor or Administrator rights. I usually allow the actual end user to log in with their extension and PIN, and use those creds to get the user. Other engineers just create a user called 'PromptUploader' or similar, and give that the required rights.
    3) Once you have the 'get user' populating the user variable, under it's success branch add a 'Authenticate User' step to authenticate the user refernce in conjunction with a PIN or password (either that you gathered from the caller's DTMF or a static string)
    4) Under the success branch for that, you can then use the 'Upload Prompt' step to upload the prompt you have recorded.
    Regards
    Aaron
    Please rate helpful posts...

  • I need a script, is it possible?

    Hello all,
         I need a script that does the following.
    I select an object in AI CS3 and then execute the script.
    1st. The script takes the object and fills it with 100% magenta and makes it a spot color named CC.
    2nd. The script then resizes the document to 1" larger than the selected object and centers all art in the middle of the art board,. (so if the object is 10.5" x 15.7" the document setup size is changed to 11.5" x 16.7")
    3rd. The script then stores the size of the selected object and the new resize of the document setup on the clipboard. So if I paste into notepad it would paste "10.5 X 15.7 - 11.5 X 16.7"
    That is it, it does not need to be exact on the pasting syntax but close if you know what I mean. This will be used in a production environment so a hot key to execute the script would be nice.
    If I can get help with this it would be awesome, Please let me know if you can help.
    Anton

    there you go
    var doc = app.activeDocument;
    var sel = doc.selection;
    var doc2 = null;
    for(j= sel.length - 1; j>= 0; j--) {
        var spotty = new SpotColor();
        spotty.tint = 100;
        var spottyColor = new CMYKColor();
        spottyColor.magenta = 100;
        spotty.spot = doc.spots.add();
        spotty.spot.colorType = ColorModel.SPOT;
        spotty.spot.name = "CC";
        spotty.spot.color = spottyColor;
        sel[j].fillColor = spotty;
        sel[j].name = "##REFERENCE";
        var nInc = new UnitValue(1, "in");
        var cWidth = new UnitValue(sel[j].width, "pt");   
        var cHeight = new UnitValue(sel[j].height, "pt");
        doc2 = app.documents.add(DocumentColorSpace.CMYK, cWidth + nInc.as("pt"), cHeight.value + nInc.as("pt"), 1);
        var newSel = sel[j].duplicate(doc2);
        var nTL = parseFloat((nInc.as("pt") / 2));
        var nTop = cHeight.value + nTL;
        newSel.position = [nTL, nTop];
        grabAndCenterObjects();
        var txtFrm = doc2.textFrames.add();
        txtFrm.contents = "Old dimensions: " + cWidth.as("in").toFixed(2) + " X " + cHeight.as("in").toFixed(2) + "\" New dimensions:" + (cWidth.as("in")+1).toFixed(2) + " X " + (cHeight.as("in")+1).toFixed(2) + "\"";
        doc2.selection = null;
        txtFrm.selected = true;
        app.copy();
        txtFrm.remove();
    function grabAndCenterObjects(ignorePath) {
        for(j = doc.pageItems.length - 1; j >= 0; j--) {
            if(doc.pageItems[j].name.indexOf("##REFERENCE") > -1) continue;
            var mElem = doc.pageItems[j].duplicate(doc2);
            var left = (doc.pageItems[j].width > doc2.width) ? -(doc.pageItems[j].width - doc2.width) / 2 : (doc2.width - doc.pageItems[j].width) / 2;
            var top = (doc.pageItems[j].height > doc2.height) ? (doc.pageItems[j].height + (doc.pageItems[j].height - doc2.height)/2) : (doc.pageItems[j].height + (doc2.height - doc.pageItems[j].height)/2);
            mElem.position = [left, top];
    hope it helps;
    cheers;

  • Need java script 6.26 to use banking software keep getting "the connection was reset" error Java appears on addon blocked list

    I am trying to use Team One Credit Unions CU@home to access my accounts. Their support team tells me I need Java script 6.26. I show that on my add on list but it also states Java is blocked on the blocked software list. How do I get Java script running so I can do my home banking or at least test it to be sure that is the issue. I have tried running this program with Java enabled and disabled with the same results.

    To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java
    See:
    * http://kb.mozillazine.org/Java
    * http://kb.mozillazine.org/JavaScript
    Java 6 U26 is about the Java plugin.
    You can see in "Tools > Add-ons > Plugins" if the Java plugin is installed and also on the about:plugins page via the location bar.
    * http://www.java.com/en/download/help/testvm.xml - How do I test whether Java is working on my computer? - 1.4.2_xx, 1.5.0, 6.0

Maybe you are looking for