Question of repeats...    ?

I have an app written as a joke for a buddy to mess with him when he plays world of warcraft. I have "Do Something When" set to run this app when world of warcraft is launched and the app will close wow and run the script i want. but the problems is, if the app is running and you try to launch WoW again, it will let it open. So how can i have the app running but keep world of warcraft from opening? I don't have WoW on this computer so in place of wow i am using "iChat" in the script.
tell application "iChat"
quit
end tell
tell application "Michaels wow"
activate
end tell
display dialog "Michael, are you sure you want to play World of Warcraft?" buttons {"Yes. And I understand that Lindsey will kill me.", "No. I'll live to die another day."} default button "No. I'll live to die another day."
if the button returned of the result is "Yes. And i understand that Lindsey will kill me." then
display dialog "It's your funeral." buttons {"To Azeroth!", "Let me reconsider..."}
if the button returned of the result is "To Azeroth!" then
beep 5
delay 1
display dialog " Smile!
Prepare for facial recognition..." buttons {"I'm Ready.", "Nevermind."}
if the button returned of the result is "i'm ready." then
tell application "Photo Booth"
run
tell application "Photo Booth" to activate
tell application "System Events"
click menu item "Take Photo" of menu "File" of menu bar item "File" of menu bar 1 of application process "Photo Booth"
-- keystroke "t" using {command down} -- alternate method if there is a keyboard shortcut
end tell
delay 4
quit
end tell
tell application "Finder"
delete (every item of folder "photo booth" of folder "pictures" of folder "ben" of folder "users" of disk "macintosh hd" whose modification date is greater than ((current date) - 1 * minutes))
end tell
delay 2
display dialog " Indentity Confirmed." buttons {"Continue."}
delay 1
display dialog "What would you like to do?" buttons {"Update my addons.", "Wisk me away."} default button "update my addons."
if the button returned of the result is "update my addons." then
tell application "Curse Client"
run
activate
end tell
else
if the button returned of the result is "wisk me away." then
tell application "Finder"
open (every document file of folder "desktop" of folder "ben" of folder "users" of disk "macintosh hd" whose name contains "mike splash")
end tell
delay 4
tell application "Preview"
quit
end tell
tell application "iChat"
run
end tell
end if
end if
end if
end if
end if
Thanks!

My suggestion:
End the original program with:
tell application "WOWblock launcher" to activate
return
Then, save a script like this:
delay 1
tell application "WOWblock" to activate
And change the 'WOWblock launcher" in the main code to the name of what you saved this as.
Also, change the "WOWblock" in the launcher code to the name of your main app.
What this will do:
Just before the blocker app quits, it will tell another to launch. The one that launches will open the blocker again, so you start afresh.
This should do the trick!
Tell me if this doesn't work, or if you have any questions.
Good luck!
-Nate

Similar Messages

  • Question about repeating frames

    I am producing a summary report.
    I have several querys that produce different counts.
    for each query I have to have a different repeating frame to display the count.
    However if I produce a summary column on that querys information I do not
    need to repeating column.
    My question is which way is better?
    Thanks

    I am curious. Does your repeating frame only display the total count? It's hard to say which way is better, although you could try qualifying the two on certain criteria. Do they both display the same data you (or the user) wants to see? Which way is easier on you to set up? Did you already do it one way and is it working? If so, is the current way running satisfactory?
    I think a lot of times developers waste hours upon hours trying to make something run a few seconds quicker for a user that may only use the program a couple times a month if that.
    Personally I would use the summary column method. If for no other reason, that it is more manageable to me as the developer to alter a field than it is to alter a frame.

  • Question about repeating in the process chain

    Hello Gurus,
            my DTP is set as "valid records update, no reporting (request red)", and put into a process chain. the process chain goes wrong on this DTP due to some erroneous records.  my questions are:
       (1) based on DTP configuration, all the records are transferred to target successfully except for those erroneous records. is that right?
       (2) after I correct those erroneous records in PSA, I repeat this DTP process in the process chain.  what exact data are transferred by this repeating operation on this DTP?  do we need to take care of all the previously loaded data for this subsequent repeat loading ?
    Many thanks.

    Hi ,
    Please refer my article for your answer, also this has lots of good DTP features.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10339304-7ce5-2c10-f692-fbcd25915c36?quicklink=index&overridelayout=true
    (1) based on DTP configuration, all the records are transferred to target successfully except for those erroneous records. is that right?
    Yes. All the erroneous records go in the error stack and then you can fix the errorneous records there and execute the error DTP.This setting ensures, incorrect/incomplete data is not available for reporting.
    (2) after I correct those erroneous records in PSA, I repeat this DTP process in the process chain. what exact data are transferred by this repeating operation on this DTP? do we need to take care of all the previously loaded data for this subsequent repeat loading ?
    No records are transferred on repeating teh job. We need to manually set the status of request to Green.Yes we need to take care of all the subsequent steps.
    -Vikram

  • Question regarding Repeating Frames...

    Hi
    I've been using Oracle Reports for a short time. I am trying to accomplish something within a repeating frame but can't seem to get it to work.
    The results I receive from my SQL query are in the form of a month associated with a numeric value. These values are being repeated in the frame, so the rows are displayed as: Calendar Period of January value of 5 - Calendar Period of February value of 10, Calendar Period of March value of 15, etc...
    The values are cumulative in my results so I need to subtract the prior month from the current one. I can't figure out how to do this in Reports.
    Is there a way to retrieve a value from the previous frame in a repeating frame? I know I can create a Function to do the calculations. My problem is accessing the value prior to the one being displayed.
    Thanks

    There are probably a variety of ways to do this. Probably the easiest is to use the LAG function in the actual SQL statement. The example below is taken from the Oracle SQL reference.
    SELECT last_name, hire_date, salary,
    LAG(salary, 1, 0) OVER (ORDER BY hire_date) AS prev_sal
    FROM employees
    WHERE job_id = ’PU_CLERK’;
    LAST_NAME HIRE_DATE SALARY PREV_SAL
    Khoo 18-MAY-95 3100 0
    Tobias 24-JUL-97 2800 3100
    Baida 24-DEC-97 2900 2800
    Himuro 15-NOV-98 2600 2900
    Colmenares 10-AUG-99 2500 2600

  • Quick Question About Repeating Songs Within A Playlist

    Here's the situation: I have 45 songs in one playlist and would like to hear 5 of the 45 songs being played more often than the other 40 songs. Is there a way for me to do that? I tried rating the songs, but it repeated ALL of the songs and not the 5 songs I wish.
    Thanks for your time in advance.

    At one point, I think, desktop iTunes used to have a checkbox for playing higher-rated songs more often when in shuffle mode, but can't find it now. I don't think that ever existed on iOS devices.
    You could make a request for such function here:
    http://www.apple.com/feedback/

  • Quick question about repeating frames

    Hello,
    I just wonder if I have a three frames long movieclip and I want a script on the second frame that tells it to begin from frame 1 again so it keeps replaying from 1 to 2 all the time. But I'm able get to frame 3 with gotoAndPlay using a key or button.
    So it's a script that tells flash to go to the first frame I need help with.
    Thank you.

    on frame 2,
    gotoAndPlay(1)

  • Trying to make a loop and repeat a question.

    Hello all,
    I am trying to get a question to repeat itself only if the user enters an invalid amount. I have got the program to generate the invalid question "This is an invalid rate of pay, please enter a valid rate of pay.", but after the program produces this question, the program will still continue (ask the next question) as if the input was valid. I have tried several different if and while statements to try to manipulate the program to call the previous question, but it will not????? Thank you all in advance.I am at a loss. Can someone help please???? Here is the section of code:
    // Employee's hourly rate.
    System.out.print( "Enter hourly rate of employee:" );
    Double employeeHourlyRate = input.nextDouble();
    System.out.println();
    // Monitors pay rate for validity.
    if ( employeeHourlyRate <= 0 ){
    System.out.println ( "This is an invalid rate of pay, please enter a valid rate of pay." );
    //Loops back to hourly rate question.
    I THINK THIS IS WHERE I NEED A LOOP COMMAND.?.?               
    } // Ends loop program.

    Hello and thanks for the advice! I have reconstructed as you suggested. However I am receiving 3 errors. I would also like the program to just repeat the question "Enter hourly rate of employee:". Here are the errors. How do I make this work? Thanks for the help. If it makes a difference I am running windows XP and using text pad.
    1. Payroll1.java:34: cannot find symbol
    symbol : variable employeeHourlyRate
    location: class Payroll1
    while( employeeHourlyRate <= 0) {
    2. Payroll1.java:75: cannot find symbol
    symbol : variable employeeHourlyRate
    location: class Payroll1
    else { grossPay = employeeHourlyRate * employeeHoursWorked;
    3. Payroll1.java:82: cannot find symbol
    symbol : variable employeeHourlyRate
    location: class Payroll1
    System.out.printf( "\nHourly rate: $%.2f", employeeHourlyRate );

  • Repeatedly asking for apple password when adding security questions

    when trying to download apps on ipod touch it asks me to choose 3 security questions (which i did 2 days ago when i first set it up )but when continuing to try and answer questions its repeatedly asks for apple password which i am entering correctly and doesnt seem to get any further and therefore i cant download apps.
    Can anyone help?

    I encountered this on my son's iPod Touch. I tried an 'Update All', but since he has one or two apps from his sister's Apple ID and she wasn't here to enter her password (which stopped the whole process!) I wanted to just update the other apps (purchased on my Apple ID). However, since there wasn't an option to skip an app, it seemed the only way to update the others (around 50 apps) was to click on all the update buttons individually. That would have been annoying enough, but fancy being asked to type in my password for every… single… app!
    Absolute madness. Does Apple not think through these things anymore? They used to pay such careful attention to little details of the user experience. Very frustrating.

  • A few questions regarding the configuration of Adobe Document Services

    <u><i>For Your Information: the main questions are repeated at the end of this post.</i></u>
    The Adobe Document Services seems to work fine. The test I did on http://<server>:<port>/AdobeDocumentServices/Config gives the error
    ' "Required stream: "PDFDocument" not found.” ' so that's fine.
    But when I do this: http://server:50000/webdynpro/dispatcher/local/TutWD_OnlineInteractiveForm/OnlineInteractiveFormApp
    The result: the PDF is shown and I can enter text in the textboxes and also use the radioboxes.
    But I can't use the dropdownboxes, neither can I use the "submit" and "check" buttons..
    Is this normal? Or is it because of the ReaderRights credential?
    Or is it necessary to install the ACF?
    Here is some info I got from a blog:
    "<b>Client Side Requirements</b>
    Follow the steps mentioned below. Please make sure the following prerequisites are met before working with Adobe Interactive Forms.
    NWDS 7.0 / 6.0
    Adobe Live cycle designer 7.1 / 7.0
    Adobe Reader 7.0.8 [ Minimum : 7.0.1]
    <b>End User Requirements</b>
    Adobe Reader 7.0.8 [ Minimum : 7.0.1]
    Active Component Framework (ACF) - SPS 9, SPS 10"
    Two more questions;
    1)This info is in the config guide:
    "If you have installed the ADS and the WD runtime environment on different J2EE engines and if the communication between these engines uses the SLD, you need to publish the ADS to the SLD."
    Does this mean that I don't need to do this when I haven't used SLD? Or is it necessary to install SLD?
    Some more info:
    Prerequisites:
    A System Landscape Dir must already have been configured.
    If you have not yet done so, perform the necessary activities according to the documentation SAP System Landscape Directory, Administrative Activities section, chapters:
    Start and stop the SLD Service
    Configure the SLD Server
    Configure data persistence
    Make settings for the SLD bridge
    You can find this documentation by calling the following URL in your web
    browser: http://<host>:<port>/sld
    When I check this URL, I don't see anything concerning an (already configured) SLD.
    2) Do I need the license below too to develop in AIF?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_srv/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373530373834%7d
    Main questions----
    I need to create a form with a few fields (of which some fields are mandatory); then I have to use a few BAPI's to check these fields and to save the content in a CRM system.
    I've installed Netweaver Sneak Preview, and configured Adobe Document Services (made ADSUser & ADSCaller, set IIOP etc to Autostart, Installed the credentials). The tests seem to work fine, but I haven't developed anything yet.
    My questions:
    1)Is it necessary to install the ACF?
    2)Is it necessary to install Adobe LifeCycle Designer?
    3)Also SLD?
    4)Also the license described above?
    Grz
    Allan
    Message was edited by:
            Allan Duinslaeger

    No one?
    Some questions are answered by someone else.
    -The SLD is okay, it doesn't need to be configured
    -The Adobe Lifecycle Designer is automatically installed when installing the Netweaver Studio Sneak Preview SP16
    Just two more questions:
    1)when I open http://server:port/webdynpro/dispatcher/local/TutWD_OnlineInteractiveForm/OnlineInteractiveFormApp
    The PDF is shown but I can't use the buttons or the dropdown boxes.
    I tried to install ACF but I have NW04s SP16, and the ACF is only SP11.
    So when I install that, it only shows a blue screen with "I am the placeholder control"
    When I install ACF SP19 for NW04, the PDF shows again, but I still can't use the buttons or dropdowns. Is this normal?
    2) Do I need the license described below?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_srv/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373530373834%7d
    Main questions----
    I need to create a form with a few fields (of which some fields are mandatory); then I have to use a few BAPI's to check these fields and to save the content in a CRM system.
    I've installed Netweaver Sneak Preview, and configured Adobe Document Services (made ADSUser & ADSCaller, set IIOP etc to Autostart, Installed the credentials). The tests seem to work fine, but I haven't developed anything yet.
    My questions:
    1) What about the ACF?
    2) Also the license described above?
    Grz
    Allan

  • Randomize/shuffle array item without repeat actionscript 3.0

    i am creating a question and answer quiz using flash cs3 and actionscript 3.0.
    i have a large array of question, i wish to put it into xml document
    (can xml document be reside in the flash file itself?i thought ive seen someone did that.)
    ok,my main problem is to shuffle the questions without repeat until all questions were asked. i have worked on this tutorial,and it does great shuffling without repeat. http://www.flashandmath.com/howtos/deal/
    but,i wish to ask one question at once. i have looked into the option to shuffle frames, but i think about how can i count the score of the quiz at the end of it?
    can anyone tell me the best way of doing this?
    many thanks 

    . i have looked into the option to shuffle frames,
    you can`t really shuffle frames in flash, you have to tell the playhead of your movie to jumpp to a specific frame.
    so if you have say 20 Questions that are ordered in 20 kjeyframes along the main Timeline. you will have an array o Numbers from 1-20 that is shuffled by a function like you mentioned above.
    Then in the function that evaluates your answers that targets this aray as a pointer to where to go next.
    The pointer could be a simple Number, that describes the position of one specific number in this array, like so:
    //At the beginning of your quiz
    var randArray:Array = [1...20];
    var pointer:int = 0;
    var points:int = 0;
    var right:Boolean= false;
    //in the function that evaluates your answer
    function evaluateAnswer():void{
       if(right){
       points+=1;
    else{
    //don`t add Points
    //this will choose the next frame from your shuffled Array
    pointer++;
    if(pointer<=20){
    this.gotoAndPlay(randArray[pointer]);
    else{
    //when the last question is answered do something in a funtion that shows the result
    showResult();

  • Does repeated saving of a pdf file degrade its quality?

    Hi experts,
    I have been asked the following question: Do repeated editing and saving degrade the quality of a pdf file (containing text and image)? I hope some experienced folks can help me answer the above question.
    Thanks
    Loralon

    No it doesn't, at least it's not supposed to.

  • Navigation issues with question slides in Captivate 6

    In earlier versions of Captivate (5.5) we have always been able to insert question slides into our projects as checkpoints and allow the user to freely navigate through the project and answer the checkpoint questions as often as they like. We have also been able to provide success and failure feedback popups for those question.
    In Captivate 6 we are seeing that question slides can apparently only be answered once and do not reset to be answered again the next time the user navigations to those slides. We want to allow the user to answer checkpoint questions as often as they like and we need to be able to provide success and failure feedback popups. We have tried every imaginable combination of setting with no success. Has anyone else been experiencing this or have a solution to this problem?
    Thanks,
    Vernon . . .

    When I run the same projects with the exact same settings side by side in Captivate 5 and Captivate 6, in the Cap 5 project I can navigate the project freely and answer the checkpoint questions repeatedly as often as I like. As I navigate the questions are reset and can be answered again every time I enter the question slides.
    In Cap 6 the questions are locked after the first answer and cannot be answered a second time. Even stranger is the fact that when tested using only a subset of the slides adjacent to the question slide (next 3) it works and does appear to reset the question allowing repeated answers, but it fails when the entire project is run.
    I have asked our other developers to test this and they are experiencing the same problem with their projects.
    The only difference I can see between the two projects is that the Quiz results slide in Cap 6 cannot be deleted whereas it does not exist in the Cap 5 project ???

  • Repeat mode

    Hi Experts,
    I have some question on repeat mode.
    1. Table roosource has a  field to control whether datasource support repeat function. Could you tell the field name? Someone tell me field name is 'Update Mode', but I can't find this field in this table
    2. How to use the repeat mode. Although my delta update result is red light, I don't know to use the repeat function. In Infopackage screen, system tell me reqeat request continue? But I don't what action I should take now. Corrcet the error data in PSA? or anyother solution
    Your response will be highly appricated
    Thanks and best regards
    Alex yang

    HI,
    Can you tell us which datasource you are trying for repeat option.
    ie for FI changing timestamp will help you in getting the repeat of last deltas
    In LO changing setting at table level may help you.
    Generally the QM Status of the status has to be made red and also the data load status which you find in the monitoring screen.
    If you make it automatically the setting are transferred to R3 system and allows for repeat of last delta.
    Providing datasource will help everyone in sharing their thoughts on the same.
    Hope this helps for you.

  • How we can integrate ep system with SAP R/3 system

    I want to integrate SAP EP(7.0) system with SAP R/3.Can any body guide me the step by step method to integrate the above two system.
    How we can configure SLD with J2EE engin?How we can established the JCO connection?
    Thanks
    Kundan

    Hi,
      Why don't you use search functionality in SDN? You can get lots of guides. This question is repeated lots of times.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/ep/how%252bto%252bconnect%252bto%252bsap%252br3%252bsystem%252bthrough%252benterprise%252bportal%252b7.0%252busing%252ban%252biview.
    Configuring SLD in Sneak Preview SAP NetWeaver '04 Sneak
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c1d495-048e-2b10-babd-924a136f56b5
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3d7db2e5-0601-0010-4a88-9f3498f8142f
    Regards,
    Harini S

  • How to replace bytes in a file?

    How to replace some bytes in a file without rewriting it entirely?
    bye
    aldo

    I repeat my question:I repeat my answer...
    java.io.RandomAccessFile.
    Have a look at the java doc!

Maybe you are looking for

  • Is it possible to tether the IPad 2 to the Galaxy S2?

    im getting both of these devices for christmas and instead of paying the extra £200+ for another contract for the ipad could i just tether my android glaxy s2 to it? thanks

  • Subqueries and Case

    I have two codes - A & B My question is can I use code B i.e Case statement as a subquery of code A to get the necessary output =============================CODE A===================================================== select a.search_code,a.name,a.tot

  • HT4858 how do I see the photos on i cloud? how do others?

    Confused that there is not an option to view my photo stream on i cloud. What am I doing wrong. Have read and re-read the help options in i cloud but still cant see where I can see the thing online.

  • I cant find my ipod can you track it for me

    i cant find my ipod can you track it to find it and tell me

  • Dv converter and 32 bit audio possible?

    In order to use all 4 mics on my canon xl2 video camera, I have to set the audio to 12 bit, 4 channel I am recording live directly to my computer, so I need to use a setting that is non-controllable to the video camera. I believe the only easy-setup