Apple Script - Apple Event is Timing Out

i am a novice at apple scripting. i have written an apple script for backing up my desktop to my iPod. i was able to do this based on the basic info in my "panther- the missing manual" book that i have. i have the basic script working but after about 2 minutes into the backup, my "Script Editor" icon in the toolbar starts bouncing and when i click on it, i get a window that says that the apple event has timed out. the backup continues and finishes without problems. however, i would like to edit the apple script to correct this issue and eliminate this error message. i have tried experimenting with applescript commands but i have not been able to find a good primer to learn the language. i need to add script that will allow the event to run for four minutes before it times out.
anyone know the applescript wording to fix my error message?
thanks
G4 Quicksilver AGP Graphics 500   Mac OS X (10.3.9)  

Place the statements inside a block such as:
with timeout of 240 seconds
--commands
end timeout
(9861)
thanks for getting back to me. i tried to use this additional script before, after and inside my original script and still was timing out.
this is the last script i tried. the compiler compiles is fine. i just keep getting the "timeout" error message after two minutes. i have also tried your the additional script before the "tell" and after the "end tell". complies and runs fine in these other locations but still get the error message after two minutes.
tell application "Finder"
with timeout of 300 seconds
--commands
end timeout
duplicate folder "Desktop" of folder "alan" of folder "users" of startup disk to disk "Encrypted iPod" with replacing
end tell

Similar Messages

  • When I try to sign in with new password for apple, I constantly get "session timed out"

    When I try to sign in with a new password for IPhone, I constantly get "session timed out" and I am asked to try again and it does the same

    sounds like your connection to the internet has failed.

  • Retrieve duration of sound files via Apple Script - System Events

    I need to get more details of my sound files into a FileMaker 10 Database as it is possible by using the FileMaker import function. There ist a complicated way by going first through iTunes and than to FileMaker. Now I found out, that part of the information displayed when pushing cmd+i can be retrieved with this:
    tell application "System Events"
    properties of file "/Volumes/MacHD/singsong.mp3"
    end tell.
    But duration, channels, bitrate are not accessible. Is this a general problem with metadata? May be if I got a hint how to retrieve meta-data from .jpg files I might be able to apply this also on .mp3

    Try the AppleScript forum under OS X Technologies.

  • Apple script to connect VPN when out of office.

    I need an applescript to connect a VPN when not connected to my work network.  Please can someone help me.  I've got the script for connecting the VPN, it is making it conditional on being out of the office I'm struggling with.
    Thanks

    In order to answer your question you have to first determine how your machine knows whether you're in the office or not...
    Once you answer that the rest is pretty easy, but the specifics for how to make that determination are largely down to your network configuration.
    For example, some people might use their IP address as the determining factor - assuming the office network uses a preset range of IP addresses that don't conflict with outside locations.
    Others might rely on the network name (assuming you're using wireless).
    Others might use wired connections at the office but wireless when outside.
    Or maybe you use different network configurations for office and outside.
    The list goes on...

  • JSX script executed through CSXS timing out?

    So what I originally had was a simple .jsx script that I would execute from the Scripts menu. It would take several minutes to run as it iterates several hundred times making modifications to text layers.
    It came time that I wanted to upgrade the script with a Flash interface, which is what I've been working on. Since there is no true asynchronicity to be had, I've modified my .jsx script so that instead of running all in one go, the JavaScript function processes only one item at a time and returns its progress. Meanwhile the Flash interface sits in a loop, calling this function through CSXSInterface.instance.evalScript and updating a progress bar until it reads that there are no more items to process.
    Works great in theory, but for some reason the script will randomly stop around the 20th, 50th, whatever iteration, usually with a SyncResult status of InvalidInputParams (which I have NO idea how that could happen, since it's calling the exact same function with no parameters each time, and the function is returns the same XML string each time, with just a different number indicating progress).
    I tried experimentally increasing the batch size from 1 to 8 (so that the JavaScript function loops 8 times before returning back to Flash), and now it unceremoniously halts after pretty much every batch.
    Is there some kind of hidden execution timeout going on behind the scenes that is causing Flash to bail out of ActionScript when a JavaScript runs too long or something? If so, is there some way of disabling it? If not, does anyone know what could be going on here? Is there some way of dealing with this problem?
    Thanks,
    Dan.

    Sorry if it wasn't clear; this is a Flash panel running in Photoshop. CSXS is required to run the JavaScript that has access to the Photoshop DOM.
    Also, this is running CS4.
    Thanks,
    Dan.

  • My apple mail is giving me a message "server timed out"

    I recieved a message that my apple mail on port 110 timed out what does this mean and how do I troubleshoot?

    www.apple.com/supportmail has articles on troubleshooting your settings but it may be an issue with communicating to the ISP. No?
    http://support.apple.com/kb/TS3276

  • Network Connection Timed Out When Buying Something From iTunes

    I've been on iTunes 10 for a while, not sure how long but before October I'm sure, and had no problems with it until last night. I tried to download an album and got the message "We Could Not Complete Your iTunes Store Request. The network connection timed out. Make sure your network settings are correct and your network connection is active, then try again."
    I've downloaded a song while running this version (10.0.1) and had no problems before.
    Ran diagnostics and it said Network interfaces verified, internet connection verified but secure link to itunes store failed.
    I don't know what to try. I've made sure everything is up to date, restarted everything, I'm connected to the internet, my anti-virus software (AVG) isn't blocking iTunes and I've definitely got enough money for the album in my iTunes account. What should I try?
    Thanks in advance,
    Jodie.

    I was having the same problem last night trying to rent a movie via my Apple TV. Connection continually timed out and I received the message that my ID and password were incorrect. I tried the same via my PC and was able to rent the movie but was unable to access my account. This morning I am able to access my account so I wonder if this glitch is fixed?
    Anyone know?

  • I installed Trusteers rapport and now can't  open internet pages I have been visiting for ages. I tried uninstalling bu i keep reading Apple event timed out! Help!

    How do I install Trusteers rapport?
    I keep reading
    apple event timed out!
    Pleas help?!

    Rapport has never previously worked on a Mac. How to uninstall Rapport, by Trusteer:
    http://www.trusteer.com/uninstalling-rapport-mac-os
    However, Trusteer recently posted this in another thread:
    We would like to recommend you to download Rapport's updated version, as we suspect the problems you were experiencing have already been resolved.
    You can download the latest version here:
    http://download.trusteer.com/Gcur4Wtnu/leopard/Rapport.dmg
    Please restart your browser after the installation completes and let us know if the problem persists.
    If the problem persists, we would be very interested in fixing it.
    Please note that we offer 24/7 free technical assistance.
    Should you need additional assistance, feel free to contact us by submitting the following form: http://www.trusteer.com/support/submit-ticket
    We also have helpful information available in our FAQ: http://www.trusteer.com/support/faq

  • I am trying to load a calpatch to a program called Caldera, but i keep getting the following "AppleScript Error – Terminal got an error:apple event timed out ( -1712)" my IOS is Yosemite, and i am running the latest version of the caldera program

    I am trying to load a calpatch to a program called Caldera, but i keep getting the following “AppleScript Error – Terminal got an error:apple event timed out ( -1712)” my IOS is Yosemite, and i am running the latest version of the caldera program

    Hi Linc, thanks for this ... it is weird, we tried this previously, but we only did a restart.
    This morning our Mac was 'off' even though we hadn't turned it off, (maybe a power outage) I restarted and ran the calpatch immediately, and it worked !!
    it is embarrassing, because as a service engineer, I am always telling customers to restart and even power down completely before trying again.
    Thanks.
    Snakeydee

  • Every time i try to logg on to my apple iD i get the message that tells me who says: "Your sessieon has timed out. Try again. " How can I fix this?

    I get the message" Your time has timed out" when i try to log on my apple id. Can you please help me?

    I get the message" Your time has timed out" when i try to log on my apple id. Can you please help me?

  • Tried purchasing iTunes music. Put in my apple id and password then i was directed to a 'Terms and Conditions' page. I checked the box then clicked the 'accept' button next page read 'your Session has timed out '  try again  with a Done button to click on

    Tried purchasing music from the iTunes Store. When the window popped up I put in my apple id and password. Then I was directed to a 'Terms and Conditions' page. I checked the box next to the 'Yes I agree to these terms and conditions' - then clicked the 'accept' button next page read 'Your Session has timed out. Try again.'  with a 'Done' button to click on. Oh the same thing happens when i try to download  free iTunes. Yes I have tried & tried it again I even logged off and singed back in-- no joy 
    After accessing my iTunes account I was not able to change anything like my credit card number when I tried and was sent right to the 'Your session has timed out. Try again.'
    The last time I purchased any anything was on September 25th 2011 and the 'terms & conditions' page was last updated on October 12, 2011
    Does anyone have an idea to what is going on with my iTunes version 9.2.1 (5) and I can not upgrade to a higher version my iMac does not have the intel processor chip.Thank you for your time and help with this matter. You are greatly appreciated 

    I am having the same problem also! I posted on here about it, but no one has responded with ideas. I called technical support and e-mailed them, the only suggestions they gave was for the to turn off my firewall. But I didn't change anything, so it shouldn't suddenly stop working. Maybe this is just an iTunes issue? But it doesn't even recognize my account anymore, and I cannot log in now.
    If you happen to get an answer, will you please let me know what works for you?
    Thanks!

  • HT1918 Hi - I think I have different apple devices recorded under different apple IDs. Now I would like to consolidate all the devices under one Apple-ID.  I have tried to do this going through the manage accoung like, but it timed out - could somebody he

    Hi - I think I have different apple devices recorded under different apple IDs. Now I would like to consolidate all the devices under one Apple-ID.  I have tried to do this going through the manage accoung like, but it timed out - could somebody help, pls

    Purchases of multple Apple ID accounts cannot be merged as noted here >  Frequently asked questions about Apple ID

  • Getting session has timed out while trying to redeem a gift card. have had no problem in the past.  am running a g4 since 2002 with os 10.4 and itunes 9. have no internet problems and can connect to store ok. so far apple no help keeps blaming it on othrs

    am having trouble for the first time trying to redeem a gift card. Everything same on computer, OS, and internet connection. have been able to redeem other cards. this time am getting "SESSION HAS TIMED OUT" while trying to redeem card. have contacted apple and checked out all their suggestion iE:( must be your connection. typed in code wrong, too old version of itunes, etc) anything but why would a gift card code bee tied to a specific vetrsion of ITUNES. Rediculous!! there has to be others out there that have an older version if itune than i have. has anyone ever had the error "SESSION HAS TIMED OUT" and if so was it corrected?? any information other than apples {change password and give us lots of personal info they probably have) would be appreciated..

    Hello,
    As far as I can see, that Verizon Jet Pack wireless Modem uses WPA2 to connect.
    The Router might complicate things right now.
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations and checked ON?
    The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.

  • I have been trying to update via App Store and every time only with apple software it starts to download and it will says it's calculating time remaining then an error message pops up saying " An error has occurred the request timed out. (102) "

    I have been trying to update via App Store and every time only with apple software it starts to download and it will says it's calculating time remaining then an error message pops up saying " An error has occurred the request timed out. (102)" I have tried everything , I've been told its my ISP but I have tried using differenet internet to attempt the updates. Like I said all other software updates fine its just apple software

    http://www.apple.com/support/mac/app-store/contact.html?form=account

  • When trying to connect to Airplay speakers I get error message "The  network connection timed out" although some sort of connection is made as the speaker is turned on.  Same thing with Apple TV.  Is the distance from my speaker/ TV the problem?

    When trying to connect from iTunes to Airplay speakers I get error message “The  network connection timed out” although some sort of connection is made as the speaker is turned on.  Same thing with Apple TV.  Is the distance between my PC and the speaker or the AppleTV the problem?

    Hi whitwick,
    If you are having issues with your network connection when attempting to use AirPlay, you may want to use the steps in this article to troubleshoot -
    iTunes: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS5209
    Thanks for using Apple Support Communities.
    Best,
    Brett L

Maybe you are looking for