Applescript freezes with Safari

When I ask Applescript to wait until a web page in Safari has fully loaded, it seems like Safari often simply refuses to answer and my applescript consequently freezes. Is there a way around this? Here's a simplified version of what I'm asking Safari to do. I added the timeout so you don't have to wait 2 minutes for the script to time out:
with timeout of 20 seconds
          tell application "Safari"
  activate
                    repeat 100 times
                              set the URL of document 1 to "https://accounts.craigslist.org/login"
                              repeat until the text of document 1 contains "Account Log In"
                                        delay 1
                              end repeat
                              set the URL of document 1 to "http://humanpotentialcenter.org"
                              repeat until the text of document 1 contains "Want to know more?"
                                        delay 1
                              end repeat
                    end repeat
          end tell
end timeout
It doesn't have any problems when I run it on my 10.5.8 system, but it does freeze the Applescript when I run it on my 10.8.5 system. Suggestions?

The web sites visited are pretty much the same on either the iMac or MacBook. These are well known sites for the most part. I always keep updates current with any of the software I use including Adobe...

Similar Messages

  • System freezes with Safari open; what does this mean...?

    Hi:
    Once in a while I have Safari open, and then my whole system freezes, even when I have Safari open in the background. The only thing I know for sure is that Safari is open when I get a system freeze.
    In the system.log file I found the following warning:
    'Sep 17 17:08:12 localhost /Applications/Safari.app/Contents/MacOS/Safari: * Warning: ATSUSetFontFallbacks has been deprecated. Use ATSUFontFallbacks objects instead. *'
    Interestingly, I always see this line in the system.log as the last line before my system freezes. Any thoughts?
    Kind regards,
    Bas

    Hi Edwin:
    Thank you for your reply. When my Powerbook is physically plugged with an ethernet cable, I will try that. However, at home I connect to the Internet wirelessly, through Airport.
    Bas

  • Internet freezes with Safari, Firefox & Chrome, but not when using MS IE

    When using my macbook wirelessly and am in the Mac OS, my internet freezes after 5 minutes, doesn't matter if I am using Safari, Firefox or Chrome. If I shut down and boot up Windows XP and use IE, it does not freeze up. I use my iMac with the same router wirelessly and never have any issues with Sarari... Can anyone suggest what I should try? I have removed and reloaded Safari, Firefox and just tried Chrome, with the issue still happening...
    Thanks,

    The web sites visited are pretty much the same on either the iMac or MacBook. These are well known sites for the most part. I always keep updates current with any of the software I use including Adobe...

  • I have a imac 10.6.8 with snow leopard. Just upgraded to iphoto 11 Now my computer keeps freezing up mostly if my iphone is connected.  It even freezes in safari.  Can i get my money back and unistall

    I have a imac 10.6.8 with snow leopard. Just upgraded to iphoto 11 Now my computer keeps freezing up mostly if my iphone is connected.  It even freezes in safari.  Can i get my money back and unistall

    This forum is for people to discuss issues with other users. Apple aren't here. No one here can give you your money back. So, contact the the App Store support, if that's where you bought it. There's a link on the right hand side of the App Store window.
    Regards
    TD

  • Safari "freezes" with OS X Mavericks, anyone else having the same problem? Any solutions?

    My Safari browser keeps freezing after I switch to a different application (i.e the app store, itunes store) and back to Safari. I can still move from tab to tab & swipe up/down on the websites, however the rest of the functionality is disabled (inclusive of clicking any material on the website or the tool bar of Safari).
    Has anyone experienced a similar problem? Can anyone offer any advice on solving the matter?
    Thank you in advance.

    I had a similar glitch with Safari. I tracked it down to how things were configured for the Mouse in System Preferences. I'm using the current Magic Mouse that came with my iMac in 2011 and I don't use all the mouse's functionality. I suspect the upgrade changed something in my mouse settings so I went back to be certain they were set as I had them.
    Under Point & Click:
    Scroll direction natural - I leave this unchecked otherwise the scrolling works in reverse to what I'm used to.
    Secondary click on right side - I leave this unchecked because I don't use it.
    Smart Zoom - this I have checked off because I find it handy for zooming in on text that can appear too small for my comfort.
    Under More Gestures:
    Swipe between pages with one finger - this I have checked because I find it convenient rather than having to use the back-and-forward buttons.
    Swipe between full-screen apps - this is checked for convenience.
    Mission Control double tap with two fingers - this I leave unchecked because Mission Control is an icon easily found in the dock.
    I can't say this will definitely fix the problem except that it worked for me and the freezing of Safari is now gone.

  • Safari Crashing/Freezing with Yahoo Mail

    I think this has already been mentioned but hoping Apple will do something about it if we keep bugging them.
    Safari keeps freezing when I try to attach a file using Yahoo Mail. I have to force quit, even though it doesn't say that Safari's unresponsive.
    Combined with the fact that Safari has also become very slow at loading pages, if they load at all, I've reverted to using Firefox. Thanks for the version 5.0 update, really regret installing it.

    HI,
    I think this has already been mentioned but hoping Apple will do something about it
    It's not Apple's responsibility to update third party software.
    If you have BrowserPlus installed, it's not compatible with Safari 5.
    How to uninstall BrowserPlus: http://help.yahoo.com/l/us/yahoo/browserplus/uninstall.html
    You can contact Yahoo here for that. http://help.yahoo.com/l/us/yahoo/mail/yahoomail/contactus/index.html
    You're not the only Yahoo user having problems with this... http://discussions.apple.com/message.jspa?messageID=11661807#11661807
    Carolyn

  • Safari 6 freezes with OSX 10.7.5

    I'm using a recent Safari 6.1.6 update - and am now experiencing a problem I never had before with Safari on my OSX 10.7.5 MacBook Air system.
    I am unable to use Safari for more than fifteen minutes or so before it freezes, and always when I'm switching to a new tab to view something. I never have more than six or seven tabs open. This is particularly irritating when I'm downloading material at the time, which is instantly lost, of course. Safari did freeze with earlier versions, but rarely more than once or twice a week.
    Is there a way to return to earlier versions of Safari? Would this help? Any suggestions - preferable a solution - gratefully received.

    I'm using a recent Safari 6.1.6 update - and am now experiencing a problem I never had before with Safari on my OSX 10.7.5 MacBook Air system.
    I am unable to use Safari for more than fifteen minutes or so before it freezes, and always when I'm switching to a new tab to view something. I never have more than six or seven tabs open. This is particularly irritating when I'm downloading material at the time, which is instantly lost, of course. Safari did freeze with earlier versions, but rarely more than once or twice a week.
    Is there a way to return to earlier versions of Safari? Would this help? Any suggestions - preferable a solution - gratefully received.

  • Safari keeps freezing with spinning disc. Can you help

    Safari keeps freezing with spinning disc. Can you help

    I've been having this problem somewhat recently myself.  Not a constant thing, but I've had blue & multi coloured wheels at a PC like level. 
    drew

  • Re: Safari Freeze with open and closing repeatly!!! HELP

    Hi guys, I'm new here and it's because of Lion.
    Recently I'm facing some freeze problem on my Lion when I opening Safari and Mail. It will freeze up my Mac and eventually shutting it off by the "hard way".
    But today, my safari freeze once every 10times of opening (average) which is really annoying.
    I have verify my disk verify whatever there have in disk utility. Reformated the hardisk, Installed Snow leopard and reinstalled Lion 3 times and it does not help the safari. And ofcourse I did whatever updates there have.
    Besides, I have tried "APPLE HARDWARE TEST". everythings is fine here.
    But when I create a new guest account on Lion, the safari there won't freeze and run smoothly. But I wouldn't want to move all my stuff there.
    It's been really annoying since today as I hardly able to launch Safari and type this out.
    PLEASE HELP ME ALL THE EXPECT OUT THERE !!!!

    Just for the record, this had nothing to do with Safari.
    facebook was down for a number hours today:
    http://www.bbc.co.uk/news/technology-17284437

  • Safari regularly "freezes" with OS X Lion 10.7.4 ???

    Recently updated to OS X Lion Version 10.7.4 and have had nothing but trouble with Safari ever since. From very slow loading pages to screen freezes and inability to scroll down on many websites, it's driving me crazy! Is is Safari? Is it my network? Is it the new operating system? I had a great Safari experience before making the upgrade and nothing but trouble ever since. Help!

    Hi...
    From your Safari menu bar click Safari > Empty Cache
    If that didn''t help, back to the menu bar click Safari > Reset Safari. Select the top 5 boxes, click Reset.
    If that didn't help, go to ~/Library/Caches/com.apple.Safari/Cache.db
    For Lion v10.7x:  To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library
    Move the Cache.db file to the Trash. Quit then relaunch Safari to test.
    If that didn't help, from the menu bar again, click Safari > Preferences then select the Privacy tab.
    Click Details then click:  Remove All Website Data
    If that didn't help, might be corrupted Safari preferences (.plist)
    Quit Safari.
    Go to ~/Library/Preferences/com.apple.Safari.plist
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop.
    Relaunch Safari. If that helped, move the .plist file to the Trash. If not, move it back to the Preferences folder.
    Tip: Disabling the Lion "resume" feature will help to avoid caching issues in Safari.
    Open System Preferences > General
    Deselect:  Restore windows when quitting and re-opening apps
    If nothing above has helped, go to Safari > Preferences > Extensions. If you have any installed, turn that OFF, quit then relaunch Safari to test.
    And try troubleshooting Safari unsupported plugins.  From the menu bar click Safari > Preferences > Security
    Deselect: Enable plug-ins. Quit then relaunch Safari. If that made a difference, follow the instructions here > Safari: Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues
    ? Is it my network?
    Recently updated to OS X Lion Version 10.7.4 and have had nothing but trouble with Safari ever since.
    More than likely corrupted preferences,  OR, a plugin, or an extension that was compatible with the previous Mac OS X but not Lion v10.7.

  • I'm getting the rainbow wheel when I try tp pen in internet page (Safari). The page half loads then appears to freeze with the rianbow wheel.  I get the same result when I try to stream a movie from NETFLIX.  Freezes up rather than plays (after loading).

    I get the rainbow wheel when I try to open an internet page. It loads halfway, then freezes, with the rainbow wheel whirring around. Smae thing happens when I try to stream a movie on Netflix.  The movie loads, then the wheel shows up and the screen freezes.  Same thing when I try a DVD, it takes the disc, but won't play when I hit on PLAY.
    I am repair permissions, and all that I can do, but I am a novice.  Any help would be greatly appreciated because I spend big bucks and drive 40 miles to get Apple help.
    Sharon in the woods of Idaho

    Welcome to Apple Support Communities.
    If your profile info is up to date, you probably have a 2006 or 2007 MacBook with a CoreDuo or Core2Duo.
    It probably came with 512MB or 1GB RAM memory and a 60, 80, or 120GB hard drive.
    You're still running OS X Tiger, 10.4.
    Your DVD drive may be dirty or wearing out.
    For specifics about your computer, click on the  Apple Logo in the menu bar, then About This Mac, and More Info... to find details.)
    You may be running short of hard disk space. You should have at least 10% free, or 10 to 15GB free for best performance. Less than that, and your hard disk is spending lots of time searching for places to store data.
    Complex web pages and sites like Facebook and Twitter, and pages using Adobe Flash, and high-bandwidth applications like video streaming from NetFlix can all cause your computer to run slowly, and the fan to run at high speed, because the processor is working hard. Conversely, email is not terribly resource-intensive, and probably still works pretty well.
    Several things can each provide a small performance increase (listed in no particular order):
    Adding more RAM memory. Upgrade to 2Gb to give your programs a bit of 'breathing room', especially if you are running more than one program at a time.
    Erasing the hard drive and reinstalling the current operating system and programs from scratch. This erases all your existing programs and data. Unless you have backups and program discs, you lose everything currently stored on it.
    Installing a higher capacity, faster hard disk, say 250GB or 320GB will give your programs and data more space, and perhaps faster access if you replace the factory 5400rpm drive with a 7200 rpm drive. If your current hard disk is nearly full (less than 10% free space), the drive has to 'thrash' to free space to store information. 
    Upgrading the operating system to OS X 10.5 Leopard or OS X 10.6 Snow Leopard. Both are discontinued OS X versions, still available to order directly from Apple, but not likely found on a store shelf any longer. An upgrade to OS X 10.7 Lion might not be possible for your MacBook (details here: http://www.apple.com/macosx/how-to-buy/), and Lion would likely cause a further slowdown, because honestly, Lion is optimized for newer, faster dual-core or quad-core computers with fast video chipsets and 4GB or more of RAM.
    A faster internet connection, for example: I switched internet providers to get a 3.0Mb DSL connection (up from a 512Mb connection) for an extra $10 per month, and saw downloads and internet browsing speeds increase dramatically.  With the slower connection, it was not possible to watch video.
    Will all of these upgrades together get you close to the performance of the latest MacBook Air or MacBook Pros? NO!
    Ultimately, you have a 4- or 5-year-old computer, and spending up to several hundred dollars for upgrades might not be a worthwhile investment for you, versus applying that much money toward the cost of a new(er) Mac, and perhaps passing your MacBook on to a friend, child, or grandchild who needs mainly email capability.
    If a brand new Apple is not in the budget, consider a refurbished Mac from the Apple Store online. These are reliable computers from 'last year's models' and have the same 1-year Applecare warranty as a brand new model, and often sell at a discount of 10 to 30 percent of the price when the model was introduced.
    I'm using a mid-2007 MacBook, purchased as a refurb from Apple in late 2007. It came with 1GB RAM, a 120GB 5400 rpm hard drive, and OS X 10.4 Tiger. Over the years, I've upgraded it twice. Firs to 2GB, then to 4GB RAM, to a 320GB drive, then to a 500GB 7200 rpm hard drive, and to OS X 10.5 Leopard, and then to OS X 10.6 Snow Leopard. Rather than one more round of upgrades to OS X 10.7 Lion, I'm saving for a newer MacBook Pro or MacBook Air at some time in the future.

  • MySpace pages with embedded videos freeze on Safari

    Does anyone have any idea why MySpace pages with videos on don't seem to work ... they load but the browser scrolls down so slowly that they are unusable, pages without video work fine though. Is there any way of fixing this (without using a different browser).
    Cheers,
    Matt

    I was having a problem with Safari and Firefox and Camino quitting when I tried to view an online video, such as full length episodes on the TV network websites. I upgraded Adobe Flash to the latest version (version 9.0.124.0) and then repaired permissions and this took care of the problem. (Before I posted this I double checked the fix by going to the CBS and NBC web sites and watching 5 minutes of CSI:NY and Chuck and both played fine with nary a hiccup.)

  • Powerbook M9969LL/A Tiger SAFARI lockup freeze with AOL

    Anyone else get issues between Safari and AOL? I can never load and send messages properly and cleaning...always a lockup as AOL refreshes.
    I now use Mozilla products (Firefox and Camino) for surfing web, as I can receive AOL and send without hiccups.
    What is up with these Apple products...is Apple just TRYING to make things difficult and alienate people?
    Thanks.

    Hi Michael,
    I've used AOL together with Safari and both work just fine. I wil tell you howver that when using a dialup connection I have noticed the kernel_task averages around 30%CPU usage and that's before I launch Safari. Here's some information that might interest you with regard to modems.
    Jrsy

  • AppleScript "save" command with Safari?

    I have used the Script Editor to create complex URLs and open them in Safari. All works smoothly. What does not work smoothly is saving the opened web pages to my desktop so that I can read them when I'm travelling and away from the internet. Is "save" enabled in the Safari dictionary? I have used various commands such as
    tell application "Safari"
    open location theURL
    save
    end tell
    or
    tell application "Safari"
    open location theURL
    save filename
    end tell
    or
    tell application "Safari"
    open location theURL
    save document to filename
    end tell
    where "theURL" is a well-formed URL, and "filename" is either a plain file name or a POSIX or Mac-style path-name including the file name. The URL always opens correctly, but non of these Save commands succeeds in saving the file to disk. "Save" seems to be a basic command in the Standard Suite, but I can't understand how to get it to work with Safari. What am I doing wrong?
    G5 Mac OS X (10.4.3)

    maybe something like this...
    tell application "Safari"
    activate
    tell application "URL Access Scripting"
    download "http://www.apple.com/" to (path to desktop as text) & "apple.html"
    end tell
    end tell
      Mac OS X (10.4.3)  

  • Problems with Safari, Firefox and Flash player

    Ever since I got my new iMac that has Snow Leopard I've had problems with Safari and Firefox freezing or crashing. It appears that part of the problem is the Flash plugin because sometimes a screen pops up and says something like: the flash script is having problems. I've tried uninstalling & reinstalling Flash, Safari and Firefox but the problem is still there. My browser seems to hang up or freeze a lot no matter if I use Safari or Firefox.
    Any ideas?
    I just discovered the Chrome browser from Google this morning and so far its working very well. No freezes and it appears to handle Flash video without any problems.
    How can that be?
    Thanks

    Ah! The proverbial missing information. Why the regrets? Most people are having no issues migrating from previous computers; it's the preferred method. See Best Practices and Setup new Mac. You're a long way from starting over.

Maybe you are looking for

  • MacBook Pro clock shows incorrect time

    My new MacBook Pro does not display the correct time when set automatically; its an hour behind. When set it manually, incoming emails are timed an hour behind the correct time. The time zone setting is correct (UK). Can anyone help me please?

  • Updating a Materialized View.

    Hi, I'm using Oracle 9.2.0.6. We have a materialized view with this definition. SET DEFINE OFF; DROP SYNONYM APPSRO.FTBV_QT_ESR_TO_1ST_ESC_DTL_1D; DROP SYNONYM APPS.FTBV_QT_ESR_TO_1ST_ESC_DTL_1D; DROP MATERIALIZED VIEW FTBV.FTBV_QT_ESR_TO_1ST_ESC_DTL

  • Please tell me the driver program of  the sapscript J_1i_are1 ?

    Please tell me the driver program of  j_1i_are1 and which table is populating before printing ? I have to add chapter id for the particular material is it feasible ? Please help .

  • AA9.0 Pro - Reset ddl on file open?

    I have some old documents with a handy little toolbar at the top, part of which is a drop-down list of document sections. The user can choose a section from the ddl and click a button either to print the section or go to it. In my old version of Acro

  • How To Turn On SYNCHRONOUS MESSAGE Viewing in message display tool

    Hi everyone, We want to view the Synchronous Messages in the message display tool using the url: http://port/messaging system/monitoring , but we are not able to do that  as when we are trying to view a particular synchronous message, we are displaye