Is there a way to count time in Applescript?

I'm trying to write a script that performs actions after a specified amount of seconds. How can I do this?

AFAIK, you can't script that. definitely not with applescript.
to elaborate. opening a finder window can't trigger anything. the best you can do is something like this. periodically poll how many windows are open in finder and to which folders and do something if that info changes.
Message was edited by: V.K.

Similar Messages

  • Is there any way to force time machine to keep retrying after disk i/o error?

    a little background to my problem:
    i've had a hard drive problem previously, and i managed get all the data off of my mac by trying and retrying to access the same files and also from my working time machine backup. after zeroing out and reformatting my drive and doing a clean install of Mavericks i had everything back up running no problems.
    recently, my macbook pro would be stuck and slow in recently imported iphoto pics so i figured my hard drive is really failing this time around
    i try to get a time machine backup to save what i can, but after a couple of tries time machine would just stop backing up and in console i would see a disk i/o error.
    is there any way to force time machine to keep trying to backup through the disk i/o error so i can save what i can before getting a new drive?
    edit: a little more info, i know i have a harddrive error from looking at the console, but when i do a verify disk in disk utility it comes up clean and even after doing a disk repair it comes up clean i still see disk i/o errors in the console.

    See:
    *http://kb.mozillazine.org/Preferences_not_saved
    Thee can also be a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (extensions.sqlite, extensions.rdf, extensions.cache, extensions.ini) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry.<br />
    New files will be created when required.
    See "Corrupt extension files":
    * http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to do a compatibility check or see if there is an update.

  • Is there a way to apply Time Remapping to multiple clips simultaneously?

    Is there a way to apply Time Remapping to multiple clips simultaneously? I'd like to uniformly speed up and slow down two different clips that are playing in a picture-in-picture setup. I’m hoping there’s a more elegant way to sync them up than just editing their Time Remapping functions individually (I already tried using an Adjustment Layer. It didn’t work).

    you can try nesting the two clips together, then control the time remapping of the nest.

  • Is there a way to put TIME as a parameter during run-time of the Disco repo

    Hi All,
    I want to time TIME as a report parameter, so that I can fetch the data within the specific time period. Already we can give the Date as a parameter to fetch the data within the specific date period.
    But I want to fetch the data within the particular time period in a day . Is there a way to give TIME as a parameter in the Disco report.
    Thanks,
    Kamal

    Hi,
    Transaction_date is date field and therefore will have a date and a time component. So when you say "transaction_date between 10.00 and 17.00" do you mean between 10.00 and 17.00 with todays date or do you mean the time part of the date is between 10.00 and 17.00 and the date can be any date?
    If you mean the time part of the date is between 10.00 and 17.00 and any date then follow this workflow:
    1. Set the format mask of a date field, eg. transaction_date using Disco Admin as HH24:MI
    2. In Disco plus/desktop create a start date parameter e.g. sdate based on this date field
    3. In Disco plus/desktop create a end date parameter e.g. edate based on this date field
    4. Create a condition using the transaction date and these parameters:
    TO_DATE(TO_CHAR(TRUNC(:sdate),'YYYYMMDD')||TO_CHAR(TRANSACTION_DATE,'HH24:MI'),'YYYYMMDDHH24:MI') BETWEEN :sdate AND :edate
    5. Unselect any conditions created when the parameters were created.
    You can then enter 10:00 and 17:00 into the parameters and select any transaction date with a time portion between the times in the parameters.
    Rod West

  • HT204057 is there a way to use time machine with a backup drive connected to my AirPort?

    is there a way to use time machine with a backup drive connected to my AirPort Extreme?

    Unfortunately, this is not officially supported by Apple......if you still have the 4th Gen AirPort Extreme that you list in your equipment profile.
    However, the new "tower" shaped version of the AirPort Extreme does now officially support Time Machine backups to a drive at the USB port of the device.

  • Is there a way to monitor Time Machine's current backup task?

    I started a second Time Machine backup to a NAS yesterday (in addition to my local TM Backup, which will now be taken offsite). It took a good 24hrs to finish, which was expected over WiFi. Since the initial backup, all the hourly backups have seemed normal...20-80 MB or so. Then all of a sudden this morning, I noticed the backup was taking longer than usual. I think it was indicating something around "1.09 GB of 1.09 GB", which seemed like a lot. I checked again, and the latter number had increased...something like "2.10 GB of 2.10 GB". I'm not running a VM, and there are no other obvious reasons the backup would be so big. I figured I'd let it go. I checked back again 30mins later and it was up to 69.1 GB of 69.1 GB.
    So what's going on here? TM typically knows exactly how much it needs to backup before it starts copying files. Why would the latter number continue to go up, particularly when there's no obvious reason for the extra data to backup?
    I tried opening the .inprogress pkg, but the folder size calcs weren't nearly fast enough for me to see where the backup was going. I tried the fseventer app, but it didn't seem very clear where files were being copied from; I could see where they were being placed, but since the backup is encrypted, backupd was writing to slices in the sparseimage, rather than an obvious hiearchy.
    Is there a way to monitor the files that TM is currently backing up...say in real time? Is there a debug logging mode for the backupd? Or is there a log of the files that were copied in the last backup? I'd prefer to see this in real time, so that last option would be least useful.
    I've poked through the great resources over at pondini.org, but nothing seems to really cover a backup that's in progress.
    Thanks in advance for any tips or ideas.
    p.s. I finally ended up stopping the really long backup; rebooted; restarted the backup manually, and this time it was a much more managable 500 MB. Additionally, I could see that during the final "cleaing up" stage, it removed the huge .inprogress file.

    Choose Connect to Server from the Finder's Go menu, provide the first computer's IP address, log in, and set it up in the Time Machine pane of System Preferences.
    (59008)

  • Is there a way of excluding Time Machine from drives list?

    Every time I save a file or an application scans the drives on my iMac, the Time Machine drive is included.
    But because the HDs in the external drive (Iomega) go to sleep between Time Machine back ups, they have to spin up (2 HDs in a RAID setup, so both have to spin up) before the application can go on. That takes something between 5 and 10s every time.
    Is there a way of excluding the TM drive from the normal drives list? So that it's invisible to applications?
    Cheers,
    Marco

    if it is spotlight that i s scanning your drives, add the time machine drive to the privacy area in system prefs:spotlight:privacy. either drag the drive to the window or click the + buttonon bottom right.

  • Is there a way to access Time Machine files associated with an old user name?

    My iMac was running super slow and there was a bunch of programs, etc. that I wanted to get rid of anyway so I thought I would do a "clean install" from my Snow Leopard disc.  I moved items on my desktop to my Seagate external drive and then unplugged it.  I have had Time Machine saving to it for a long time so I was confident I could just move a few items (pictures, music, etc.) back on to my hard drive when the install was completed.  To my surprise, when I went to Time Machine I found the items I had moved from my desktop but no earlier versions of my other files. 
    In researching this issue a little bit, it appears that perhaps I created a new user name when I did the install and that my historical items are likely still on the Seagate but stored somewhere associated with my old user name.  I understand that if I can change my user name back to the original that I may be able to access the items and transfer the items I want.  To compound the situation, I have no idea what my old user name even was.
    Does this make sense to Mac experts out there?
    If so, is there a way to see the old user names and access the Time Machine files?
    I've been avoiding telling my wife that I may have lost all our kid photos so I'm desperately hoping someone can help.

    The problem is that Time Machine detects your new OS X copy as a new Mac and it doesn't let you access to your backups. To access to them, see > http://pondini.org/TM/E3.html
    Another option would be to access to your backups manually. Open a Finder window, select the Time Machine drive in the sidebar and go to Backups.backupdb > your computer's name > one of the backups > your partition's name, and copy the data you want

  • Is there a way to use Time Machine to backup my Macbook Pro to an external drive connected to my iMac?

    I recently purchased a Seagate Goflex Desk 2TB and I've already used Time Machine to backup my iMac running 10.5.8 to the drive. Is there a way to backup my Macbook Pro running 10.6.8 to the drive using Time Machine while the drive is still connected to my iMac? Any help is appreciated!

    Choose Connect to Server from the Finder's Go menu, provide the first computer's IP address, log in, and set it up in the Time Machine pane of System Preferences.
    (59008)

  • Is there a way to count the number of chars in a formatted text box?

    I have a formatted text box in my web dynpro for comments pertaining to workflow.
    in the backend, this is mapped to a char200 field.
    is there a way to have a running counter to let the user know how many chars are left? I'm not sure if there's an event to use for that.
    thanks,
    robert.

    Hello Robert,
    There is no way to get a running total of characters typed by the user - if you really need this functionality - consider creating an Adobe Flash Island.
    There was in the last year another thread which covered pretty much the same theme - it could be worth looking at that - although you will find that the eventual solution is the same as I suggest above.

  • Is there any way to disable time machine based on network connection?

    I would like to have time machine not run when I am on my wireless connection, but be enabled when connected via ethernet.
    Is there any way to do this automatically?
    Thanks!

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Click the Clear Display icon in the toolbar. Try the action again. Post any messages that appear in the Console window – the text, please, not a screenshot.

  • Is there any way to undo Time Machine formatting?

    Within 20 minutes of becoming a proud iMac owner for the first time I think I have made a serious mistake
    I have two external hard drives, a 1TB Seagate that I wanted to use as my Time Machine back-up drive, and a 500MB WD drive that I had various files on that i wanted to copy to my iMac.
    I had both drives connected through USB and when I went through set-up I selected the Time Machine option for the Seagate drive.  I certainly don't recall my WD drive being mentioned at any point in the process, however when I look at the WD drive it now shows as 'Time Machine Backups', as does my Seagate drive, so it appears both drives were re-formatted.
    Is there any way to undo this or will I need to look at data recovery software?

    It sounds like you got this prompt:
    And clicked Use as Backup Disk.  Then got this:

  • In Ical is there a way to save time in 24hr format?

    Is there a way to save events in 24hr format? in the Iphone you can enter and save in 24hr format...

    Creating a new event results in the AM/PM format.
    Switching to week view leaves it in AM/PM format.
    Changed the setting at iCloud, iCal in the cloud and on iPhone are 24h clock, iPad2 (3 of them) and iMac remain in the AM/PM format. Maybe it is something to do with machines built for Canada, or maybe they just haven't all sync'd yet. Going to try full shutdown of everything and power it all back up.
    Thanks for the help and ideas.

  • Is there a way to count the number of times an array moves from positive to negative?

    I have an array of values, and I need to find the number of times that the array changes signs (from positive to negative, or vice versa). In other words from a graphical standpoint, how many times a certain line crosses the x-axis. Counting the number of times the array equals zero does not help however, because the array does not always equal exactly zero when it crosses the axis (ie, the points could move from .1 to -.1).
    Thanks for you help. Feel free to email me at [email protected] I only have lv 5.1.1 so if you attach any files, they cannot be version 6.0.

    Attached is a VI showing the # of Pos and Neg numbers in an array, with 0 considered as non-Pos. It is easily modifiable to other parameters - including using the X-axis value as your compare point versus only Zero.
    This is a modified VI from LV (Separate Array.vi)
    Compare this with your other responses to find the best fit.
    Doug
    Attachments:
    arraysizesposneg.vi ‏40 KB

  • Is there a way to prevent time capsule from accessing ****?

    Just wondering if there is any way to block access to certain sites or all sites accessed through Time Capsule.

    Sorry, but no.
    You might want to take a look at OpenDNS for something like that.
    FamilyShield

Maybe you are looking for