Automator pause for random time

Okay, I am trying to set up a tethered camera type of deal that randomly takes pictures every 5-15 seconds.
Question #1
Is there a way to specify the random number variable to remain within a range of specific numbers, so for example it will only generate numbers 5-15?
Question #2
How can I take the number in the random variable and use it as the time in the "Pause" function?
Question #3
Or is there some easier way to accomplish what I am trying to do?
If I get this working, it'll basically be...
Take Picture>
Pause (here is where I need the help!)>
Loop for 15 minutes then end>
Additional Loop, this time asking if you want to start from the beginning>
Download Pictures>
Import Files into iPhoto.
Any help is much appreciated
Message was edited by: kahnikaze

to pause for a random time as you want use the following apple script action instead of the pause action
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
on run {input, parameters}
set x to random number from 5 to 15
delay x
return input
end run</pre>

Similar Messages

  • Help!!  Sound pauses at random times on my DVD after I made it in FCE.

    All, Here is what I am doing: I am making a highlight tape with my kids. I have added music and exported the sequence with no markers and the "SelfContained moive" box UNCHECKED. I then add the three different clips into iDVD and create an "image". I then use Disc Utility to burn my images.
    Here is the problem: When I watch the DVD's on my big screen, at random times the sound pauses and then continues. I can rewind and replay it but it isn't there anymore. I have troubleshooted all that I can. I can't seem to see/hear anything in FCE or iDVD. Has anyone ran into this problem?
    Thanks.

    if you absolutely can't fix it, watch Godard's A Woman is a Woman and then call it an intentional reference to the sound in that film.

  • Minor collection pauses for longer time (40 seconds to 3 minutes) - web app

    We are facing a strange issue with our Application, it is running under jboss-4.0.2 with jdk1.5.0_07
    It becomes unresponsive after 1/2 an hour load test and comes back to normal within 2 to 3 minutes. The following is a sample of the GC information when it says it takes around 48 seconds in minor collection. It also says JVM Process has not received any CPU time for 49 seconds. Extending timeouts. We have jvm settings like -Xms256m -Xmx2g .All other are default settings.
    Is it due to lesser default young generation space (is it 64m max?) ?
    jvm 1 | [GC [DefNew: 22544K->1299K(23872K), 0.0108188 secs] 230090K->208845K(
    338072K), 0.0110270 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]
    jvm 1 | [GC [DefNew: 22486K->1276K(23872K), 0.0103120 secs] 230032K->208822K(
    338072K), 0.0104925 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
    jvm 1 | [GC [DefNew: 22499K->1282K(23872K), 0.0102190 secs] 230045K->208828K(
    338072K), 0.0104001 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
    jvm 1 | [GC [DefNew: 22516K->1211K(23872K), 0.0137988 secs] 230062K->208757K(
    338072K), 0.0140383 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
    jvm 1 | [GC [DefNew: 22459K->1166K(23872K), 0.0109533 secs] 230005K->208712K(
    338072K), 0.0111790 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
    jvm 1 | [GC [DefNew: 22386K->1496K(23872K), 0.0121308 secs] 229932K->209042K(
    338072K), 48.7297245 secs] [Times: user=0.02 sys=0.00, real=48.73 secs]
    jvm 1 | [GC [DefNew: 22744K->1249K(23872K), 0.0189683 secs] 230290K->209269K(
    338072K), 0.0192538 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
    jvm 1 | [GC [DefNew: 22497K->1402K(23872K), 0.0136421 secs] 230517K->209422K(
    338072K), 0.0138301 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
    jvm 1 | [GC [DefNew: 22650K->1385K(23872K), 0.0153154 secs] 230670K->209587K(
    338072K), 0.0155699 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
    jvm 1 | [GC [DefNew: 22633K->2139K(23872K), 0.0190828 secs] 230835K->210430K(
    338072K), 0.0193875 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
    jvm 1 | JVM Process has not received any CPU time for 49 seconds. Extending
    timeouts.
    jvm 1 | [GC [DefNew: 23387K->2624K(23872K), 0.0243883 secs] 231678K->211720K(
    338072K), 0.0246069 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
    jvm 1 | [GC [DefNew: 23871K->981K(23872K), 0.0231872 secs] 232968K->212118K(3
    Ours OS is windows 2003 server (32 bit), 4GB RAM and 2 cpu.
    Do we need to set some more jvm parameters like
    -XX:PermSize
    -XX:MaxPermSize
    -Xms == -Xmx
    -XX:+UseParNewGC
    -XX:NewSize
    -XX:MaxNewSize
    Please suggest it is very crucial for us.
    Regards,
    Chaula

    I missed 1 thing , in the gc trace
    jvm 1 | [GC [DefNew: 22386K->1496K(23872K), 0.0121308 secs] 229932K->209042K(
    338072K), 48.7297245 secs] [Times: user=0.02 sys=0.00, real=48.73 secs]
    it says 48.7297245 secs for collection of total heap, does it mean major collection was also run here?
    If not then what can cause such a long pause during minor collection?
    Another point is
    Times: user=0.02 sys=0.00, real=48.73 secs
    here user and sys time are very negligible while real time is so huge..what does this mean?
    Thanks & Regards,
    Chaula

  • Firefox has been randomly crashing for two days. I always have google and facebook running. Firefox seems to crash at random times - no specific web page loading. My Firefox is up to date.

    Firefox has been randomly crashing for two days. I always have google and facebook running. Firefox seems to crash at random times - no specific web page loading. My Firefox is up to date.

    There can be multiple reasons for crashing. Seeing this article would be helpful as it lists out the solution for this-
    http://support.mozilla.com/en-US/kb/Firefox%20crashes?s=firefox+crash&as=s#os=win&browser=fx4

  • Music plays at startup and at random times for 10 to 20 seconds at a time, how do I stop this?

    When using Firefox music will start playing at random times, it only last 10 to 20 seconds then it quits. Then at random it will start playing while browsing or when at rest. this is very annoying and I need to figure how to turn this option off.

    Only when i go to a different browser (like IE) after i clear it , then all that shows up is the pages i visited in IE , that is what bugs me , why is IE browsing history sowing up in Firefox ??
    Basically , i can clear the history in Firefox , and then for a example , go to Craigslist , using IE7 (launching it from a complete different Icon , in other words at that time i never open Firefox) , then after closing out , or even leaving open as it does not seem to matter , i go into Firefox , and hit History , and there is every place i visited in IE7 , on my History in Firefox

  • Hold Button Doesn't Work for Random Periods of Time

    Over the past few months I have been having massive issues with my ipod.
    It all started about 4 months ago when the hold function, without me turning it on with the switch, began to turn itself on. This would happen at random periods, for random periods. Sometimes it goes on for a couple of hours, sometimes for a couple of seconds. When the ipod began to get this problem I had been using it consistently for about a year.
    Resetting it does not help - I have tried it countless times. I have noticed it tends to do it more when the battery is not full, but it still has issues when it is. I tried restoring it last night to no avail - it didn't fix the problem.
    My warranty has expired so I don't wish to waste my time and money sending it to apple if it is a simple issue.
    Does anyone know what's causing the problem? Anyone have a DIY solution?
    Thanks in advance and happy easter.

    i used my ipod for a while. and yesterday it was on low battery, very low.
    and the HOLD button, doesnt worked!
    i charged my ipod but the hold button never work again!!
    i reset it with the soft and with the buttons, but nothing!
    who can fix it in argentina??
    thanks.
    andrews

  • Just downloaded the 7.1 IOS update and I'm able to stream my music from the cloud. Does this use up data and how can I get it to stop pausing for periods of time?

    Just downloaded the 7.1.1 IOS update and I'm able to stream my music from the cloud. I'm wondering how I can stream more than just my purchased music?And does this use up data? Also, how can I get playback to stop pausing for periods of time? It is a wifi thing??

    If streaming music when connected to your carrier's cellular network, it uses cellular data.
    Only the music you purchased from the iTunes Store can be streamed unless you have purchased iTunes Match.
    If there is a slow down at the server where the music is stored or high traffic, steaming can be paused. You can also download a song from the iTunes Store cloud to your iPhone so it doesn't need to be steamed.

  • A computer icon appears for no apparent reason at random times on my Toshiba Satellite P745

    An icon appears, where there are two computers, one larger than the other one, on my computer screen for no apparent reason and at random times.  Does this happen to anyone else while they are using their satellite?  Do you know what it is supposed to indicate? 
    I have anti-virus software on my computer. 
    Solved!
    Go to Solution.

    If you can attach a picture of the icon to your reply, maybe somebody can help.
    Always tell us which Satellite P745 you have when you post here. There is a label on the bottom
    -Jerry

  • Why my iphone produces a bug after it renew for OS5.1.1. The bug is when I use message, type a Chinese word, and then using a releveant word, then the program automately closes. Every time I try the same procedure, it definitely closes.

    Why my iphone produces a bug after it renew for OS5.1.1. The bug is when I use message, type a Chinese word, and then using a releveant word, then the program automately closes. Every time I try the same procedure, it definitely closes.

    Nobody knows? Not even administrators?
    Please it would be really nice to have help on that to take all the benefit of the remote app.
    Thank you very much in advance.

  • Finger sensor not working and some time iphone 6 screen also hang/pause  for few seconds

    In my iphone6 finger sensor not working and some time iphone 6 screen also hang/pause  for few seconds.

    Try cleaning the sensor, remove all fingerprints from the settings, and the start over in recognizing prints. There are a number of things that make prints hard to read, sweat, lotion, dirty hands, etc.

  • HT1494 hi....i  cant continuously play my music with my ipod nano....i tried a lot with the settings for wake time but still it is pausing the music path.Please anybody help me with this issue

    hi....i  cant continuously play my music with my ipod nano....i tried a lot with the settings for wake time but still it is pausing the music path.Please anybody help me with this issue

    Is this your problem?
    iPod nano (6th generation): Music stops when display turns off
    B-rock

  • Automator- Workflow for time worked based on project #

    Hello All,
    Trying to use automator to automatically do this workflow:
              I receive email that lists a project number as well as other info but proj. number is most important.
         I do the work etc..,
    Then generate an email sending an invoice for my time worked and other details based on that project number to ONE emaiil address; thus my invoice for payment.
    Goal:
              Thus keep track of which projects I have completed and sent an invoice for...
    Can anyone get me started. I don't see how to get automator to pull that project number out of that email message to begin.
    Thanks,
    Al

    Hi Al,
    No expert here, but see if you can modify this Applescript to extract it...
    http://macscripter.net/viewtopic.php?id=29554

  • Pause for time workflows

    Hey guys,
    Heres the objective. I am trying to make a list where when the items aren't updated within 14 days it sends an email to the person tied to that item. My thought on implimenting this was to run a workflow on creation/ modification that pauses for 14 days
    then emails the person. The problem is that if they modify the item, I want that timer to restart. It would run another workflow... but it wouldn't exactly stop the old workflow would it? Also is having 100 or so items with workflows in pause state a bad idea?

    unfortunately you wont be able to accomplish this in a OOTB workflow, you have two options:
    write a custom timer job
    write a state machine workflow
    both requires coding skills.
    this have been discussed in many forums,
    here and
    here.. many others
    good luck
    If a reply helps you Vote As Helpful, if a reply solves your problem Mark As Answer. Its made to make it helpful for others seeking help.

  • My Iphone 4 at random times, just wont send messages for around an hour even if i have full service, its always up to date so its not that but any help on what this could be?

    My Iphone 4 at random times, just wont send messages for around an hour even if i have full service, its always up to date so its not that but any help on what this could be? It could just be my network being a pain in the *** but im not sure, help me out here people !

    never had that problem or heard about it so my bet is a network issue

  • Pause for user click missing after Seamless Tabbing fix.

    I am upgrading a project from Captivate 5.0 to 5.5. Two of the lessons that worked fine in 5.0 have problems in 5.5. Both lessons use the Tab key to move from field to field in a data row and then the Enter key to calculate at the end of the row. This worked fine in 5.0. In 5.5, pressing Tab caused jump to browser address window. I searched blog and found following solution to add:    so.addParam(seamlessTabbing:, :false:);        to the htm file generated when publishing the file. This is not a desirable solution for long term course maintenance, but it did work. Unfortunately a new problem then appeared. The project moved ahead without waiting for user input in the simulation exercises.
    For slides with click boxes using Tab shortcut key and no other interactive objects, the movie just skipped ahead without waiting for user click. I would like the project to pause until the user presses the Tab key and then move to the next slide.  The properties for the click boxes are:
    Action:
    On success: Go to the next slide
    Attempts: Infinite
    Allow mouse click - yes
    Shortcut: Tab
    Options:
    Captions: Failure only
    Others: Pause for Success/Failure Captions and Pause project until user clicks
    Timing:
    Display for: Rest of slide
    Appear after 0 seconds   (I have played around with this setting, but it does not seem to make a difference.)
    For slides with Text Entry, the failure captions display before the user has a chance to input anything. Sometimes the captions flash several times at random. I would like the failure captions to only display when the user  enters an answer that does not match the stored answers.  The properties for the text entry boxes are:
    General:
    Default text: blank
    Retain Text - checked
    Validate User Input - checked
    Var Associated: Text Entry Box ## (## changes from slide to slide)
    On Focus Lost: No action
    Action:
    On Success: Go to the next slide
    Attempts: Infinite
    Shortcut: Tab
    Options:
    Captions: Failure only
    Others: Pause for Success/Failure Captions
    Timing:
    Display For: Rest of slide
    Appear after: 0.5 sec.
    Pause After: 1 sec
    Transition: No Transition
    To test whether it was something I was doing in the editing, I went back to the original 5.0 version of the lesson and imported into 5.5 again and published without doing any editing. The lessons that worked fine in 5.0 did not work in 5.5. Then I tried replacing all the click boxes with new ones created in 5.5. That did not work. I tried adjusting the timing. That did not work. For the text entry boxes, I tried using Show Button, creating transparent button with Tab shortcut. That did not work. Several of these suggestions were ones that I found elsewhere in the Blog with similar but not identical problems. I never found a problem that combined the seamlessTabbing with the missed pauses.
    I am puzzled and frustrated that these lessons that worked fine in 5.0 don't work in 5.5. Our primary edit is only to update the screen images and add a few new fields. I would often reposition an object on the slide, but not change its properties. Since most of the lessons are working fine in 5.5 and only these two that heavily use the Tab key are not working in 5.5. I don't really have the option of going back to 5.0. I need to put them in an aggregator and they all need to be the same version.
    Is there a patch or a quick fix? Also, can the patch to the htm file be built in or is that what is causing the problem? For future course maintenance, it will be complicated to have to treat these two lessons specially. Also, we usually link to the swf file and not the htm file. Our users often use browsers other than Internet Explorer.
    Any suggestions?   Thanks in advance.

    It would seem Intego Virus Barrier X6 has an intermittent habit of putting the IP address of Apple TV into the Blocked Addresses list despite having checked the 'Trust Apple TV' box and inputting the address into the Trusted Addresses list. Over the course of less than a year this has occurred approximately 4 times to me. My last variation on getting to the root of the problem was to lock the settings with the padlock. I will monitor the situation and should it happen one more time will notify Intego of this 'bug'.

Maybe you are looking for

  • Windows 8 Trackpad Not Working - Other Solutions Didn't Help

    Hello all, I recently installed Windows 8 Pro 64-bit on my Mid '09 MacBook. I had Windows 7 and 8 installed before and working, so I know it is compatible. Unfortunately, my trackpad does not work at all; No clicking, moving, nothing. I tried other s

  • Recommend an Apple tv?

    I'm thinking of buying a 40gb model mostly for listening to Apple lossless music through the optical output via an external amp. The music will be stored on my mac pro. I currently use an old Logitech squeezebox but I'm getting fed up with the buggy

  • Why won't DW CS5 launch anymore?

    I read the faq and searched past posts. The one suggestion that might have helped -- deleting the Dreamweaver CS5 cache -- didn't change anything. It's been about six weeks since I was in DW, and now every time I click the program icon, all I get is

  • A thank you and an apology

    i just want to post a global thank  you to those kind and patient people who have helped this stupid, brain-dead old  duffer with his new BB  and a humble apology to those whose feathers i ruffled with my  grumpy  impatience with it- I was wrong and

  • GoldenGate ADD SCHEMATRANDATA and Patch 10423000

    Hi, I want to enable supplemental logging just for a certain schema, so I issued: GGSCI> ADD SCHEMATRANDATA MySchema The response was: ERROR OGG-01783 Cannot verify existence of table function that is required to enable schema level supplemental logg