Run scripts when program launches and quits?

Howdy all!
Skipping the details: I need to run an AppleScript when a specific program launches and run another AppleScript when that program quits. Anyone know of a free/easy way to do this? (A custom script would work great but my knowledge of AppleScript is limited.)
I have found a few programs that can do this but have yet to find the "perfect" one. For example: In the past I have jury-rigged ControllerMate to do it, but this is for a new computer and I don't want to spend $25 for this simple purpose. I also found Do Something When but the program hasn't been updated in 6 years so I am hesitant to use it.
Any other thoughts on free programs or where I could find info for a custom script?
Matthew

You will need to use something that can observe NSWorkspace events.  An Applescript can be used, how easy depends on the OS you are using (if you are still using Leopard, you will need to use Xcode).   Do Something When still works, as far as I can tell. 

Similar Messages

  • FCP launches and quits

    Just loaded FCStudio 3 a few days ago, no problems. I was not an update.
    Now, upon launching, it launches, and immediately quits.
    When I open it via a Project, FCP asks for the serial number. I enter it as I did originally, and it says invalid serial number.
    Elsewhere here, I read to Trash FCStudio System ID. That made no difference. It's an academic version.
    Hope that I don't have to do a reinstall!
    Thanks for any suggestions,
    Sonny

    Here is what's happening. Not fully understanding how FCP deals with the Scratch disk, and folders, I changed a folder name on the ext. FW drive.
    Thereafter, FCP launches and quits, without the Reset window. If I UNMOUNT the drive, and relaunch, it does show the Reset window, naming the missing HD, BUT the drive is not mounted. I then remount the drive, and FCP just quits on relaunching.
    There must be some way to start over again. I don't have anything important, except for media files from FCExpress. I will import them into a new Project if I can solve this problem. I have deleted the Project file which had no important info.
    I would like to just start over again with a new Project, and import the media files.
    Sonny

  • Hi, i have installed a creative suite design standard few weeks ago but adobe Acrobat not run. When i launch it, Acrobat always ask me to accept "license agreement". Thanks for help

    Hi, i have installed a creative suite design standard few weeks ago but adobe Acrobat not run. When i launch it, Acrobat always ask me to accept "license agreement". Thanks for help

    http://www.interworks.com/blogs/rclapp/2011/07/20/adobe-acrobat-asking-accept-eula-after-u pdating-1010

  • Programs freezing and quitting when certain messages pop up

    I have been having this problem a lot recently. Garageband is one of the worst. For example, I will try to start a new project. The usual little pop-up appears asking if I want to Save, not save, or cancel, nothing unusual about this. Before i can even answer, though, the program freezes then quits. This happens in many programs such as I-tunes, garageband, Text edit, Photoshop... I can't even name them all. Is it possible i accidentally deleted a system file that is causing this problem.

    This is the crash log for a program called live. I was thrilled to learn it had the same problem.......
    Date/Time: 2006-06-30 14:07:33 -0700
    OS Version: 10.3.9 (Build 7W98)
    Report Version: 2
    Command: Live Lite 4 for M-Audio
    Path: /Live Lite 4 for OS X/Live Lite 4 for M-Audio.app/Contents/MacOS/Live Lite 4 for M-Audio
    Version: 4.0.4 (4.0.4)
    PID: 1288
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000006
    Thread 0 Crashed:
    0 com.apple.CoreFoundation 0x901c38b4 CFHash + 0x18
    1 com.apple.CoreFoundation 0x901c2c10 __CFDictionaryFindBuckets1b + 0x70
    2 com.apple.CoreFoundation 0x901d1734 CFDictionaryGetValueIfPresent + 0xec
    3 ....speech.synthesis.framework 0x92845aa8 StartSpeakingNow + 0x480
    4 com.apple.CoreFoundation 0x901c4500 __CFRunLoopDoTimer + 0xf4
    5 com.apple.CoreFoundation 0x901c1860 __CFRunLoopRun + 0x5c8
    6 com.apple.CoreFoundation 0x901c5d74 CFRunLoopRunSpecific + 0x148
    7 com.apple.HIToolbox 0x92886e10 RunCurrentEventLoopInMode + 0xac
    8 com.apple.HIToolbox 0x92889eb0 GetNextEventMatchingMask + 0x1a0
    9 com.apple.HIToolbox 0x9289d988 WNEInternal + 0xa0
    10 com.apple.HIToolbox 0x928ae6a0 WaitNextEvent + 0x4c
    11 com.apple.HIToolbox 0x928ea400 ModalDialog + 0x284
    12 com.apple.HIToolbox 0x929cf894 RunStandardAlert + 0x258
    13 com.ableton.live 0x00245df8 0x1000 + 0x244df8
    14 com.ableton.live 0x0019a658 0x1000 + 0x199658
    15 com.ableton.live 0x003e9138 0x1000 + 0x3e8138
    16 com.ableton.live 0x003e7c38 0x1000 + 0x3e6c38
    17 com.ableton.live 0x00171208 0x1000 + 0x170208
    18 com.ableton.live 0x0024eba8 0x1000 + 0x24dba8
    19 com.ableton.live 0x0024f89c 0x1000 + 0x24e89c
    20 com.ableton.live 0x001663b0 0x1000 + 0x1653b0
    21 com.ableton.live 0x001664bc 0x1000 + 0x1654bc
    22 com.ableton.live 0x003f94b0 0x1000 + 0x3f84b0
    23 com.ableton.live 0x003f92d0 0x1000 + 0x3f82d0
    24 com.apple.AE 0x917baa10 Z20aeDispatchAppleEventPK6AEDescPSmPh + 0xd0
    25 com.apple.AE 0x917bd858 Z25dispatchEventAndSendReplyPK6AEDescPS + 0x2c
    26 com.apple.AE 0x917bac50 aeProcessAppleEvent + 0x11c
    27 com.apple.HIToolbox 0x92975224 AEProcessAppleEvent + 0x3c
    28 com.ableton.live 0x003fa3e4 0x1000 + 0x3f93e4
    29 com.ableton.live 0x003fa560 0x1000 + 0x3f9560
    30 com.ableton.live 0x003fae1c 0x1000 + 0x3f9e1c
    31 com.ableton.live 0x000043a4 0x1000 + 0x33a4
    32 com.ableton.live 0x000041d4 0x1000 + 0x31d4
    Thread 1:
    0 libSystem.B.dylib 0x900078b8 machmsgtrap + 0x8
    1 libSystem.B.dylib 0x90007438 mach_msg + 0x38
    2 com.apple.audio.midi.CoreMIDI 0x88ecdc9c ZN15XServerMachPort14ReceiveMessageERiPvS0 + 0x54
    3 com.apple.audio.midi.CoreMIDI 0x88ec0d58 _ZN16MIDIInPortThread3RunEv + 0x13c
    4 com.apple.audio.midi.CoreMIDI 0x88ec4e50 _ZN7XThread9RunHelperEPv + 0x3c
    5 libSystem.B.dylib 0x90024990 pthreadbody + 0x28
    Thread 2:
    0 libSystem.B.dylib 0x900147e8 semaphorewaittrap + 0x8
    1 com.ableton.live 0x000adfdc 0x1000 + 0xacfdc
    2 com.ableton.live 0x000acf58 0x1000 + 0xabf58
    3 com.ableton.live 0x000ad690 0x1000 + 0xac690
    4 com.ableton.live 0x000ad0ec 0x1000 + 0xac0ec
    5 com.ableton.live 0x000ae18c 0x1000 + 0xad18c
    6 libSystem.B.dylib 0x90024990 pthreadbody + 0x28
    Thread 3:
    0 libSystem.B.dylib 0x900078b8 machmsgtrap + 0x8
    1 libSystem.B.dylib 0x90007438 mach_msg + 0x38
    2 com.apple.CoreFoundation 0x901c15e8 __CFRunLoopRun + 0x350
    3 com.apple.CoreFoundation 0x901c5d74 CFRunLoopRunSpecific + 0x148
    4 com.apple.audio.CoreAudio 0x911104b8 _ZN10HALRunLoop9OwnThreadEPv + 0x104
    5 com.apple.audio.CoreAudio 0x911102ec ZN9CAPThread5EntryEPS + 0x30
    6 libSystem.B.dylib 0x90024990 pthreadbody + 0x28
    PPC Thread State:
    srr0: 0x901c38b4 srr1: 0x0200d030 vrsave: 0x00000000
    cr: 0x24024488 xer: 0x20000007 lr: 0x901c38ac ctr: 0x901c389c
    r0: 0x901c2c10 r1: 0xbfffe1a0 r2: 0x00000004 r3: 0x00000000
    r4: 0x00000000 r5: 0x00000001 r6: 0x06202004 r7: 0x00000001
    r8: 0x00000001 r9: 0x0000000c r10: 0x00000000 r11: 0xa283f340
    r12: 0x901c389c r13: 0x00000000 r14: 0x00000000 r15: 0x00000001
    r16: 0x00000001 r17: 0x00000000 r18: 0xa01c12b0 r19: 0x00000000
    r20: 0x00003707 r21: 0x00000000 r22: 0x05bfcaf0 r23: 0xa2845634
    r24: 0x00000001 r25: 0x06100850 r26: 0x00000000 r27: 0x00000000
    r28: 0x0610d680 r29: 0xa01c3140 r30: 0x00000000 r31: 0x901c38ac
    Binary Images Description:
    0x1000 - 0x887fff com.ableton.live 4.0.4 /Live Lite 4 for OS X/Live Lite 4 for M-Audio.app/Contents/MacOS/Live Lite 4 for M-Audio
    0xfa5000 - 0xfa6fff com.apple.aoa.halplugin 2.5.0 /System/Library/Extensions/IOAudioFamily.kext/Contents/PlugIns/AOAHALPlugin.bun dle/Contents/MacOS/AOAHALPlugin
    0x1f4e000 - 0x1f77fff com.apple.iSightAudio 7.0.4 /Library/Audio/Plug-Ins/HAL/iSightAudio.plugin/Contents/MacOS/iSightAudio
    0x6675000 - 0x66befff com.apple.speech.synthesis.MacinTalkSynthesizer 3.2 /System/Library/Speech/Synthesizers/MacinTalk.SpeechSynthesizer/Contents/MacOS/ MacinTalk
    0x80830000 - 0x8090efff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x80a50000 - 0x80ad4fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x80c80000 - 0x80c88fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x81f20000 - 0x81f23fff libmx.A.dylib /usr/lib/libmx.A.dylib
    0x84372000 - 0x84382fff com.apple.Accelerate.vecLib 3.0.3 (vecLib 3.0.3) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x88100000 - 0x88236fff com.apple.vImage 1.2.0 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x88999000 - 0x88c47fff com.apple.QuickTime 7.0.4 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x88ec0000 - 0x88efefff com.apple.audio.midi.CoreMIDI 1.4 (29) /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI
    0x89770000 - 0x89787fff com.apple.speech.SpeechDictionary 3.2 /System/Library/PrivateFrameworks/SpeechDictionary.framework/Versions/A/SpeechD ictionary
    0x8fd50000 - 0x8fd50fff com.apple.Accelerate 1.0.3 (Accelerate 1.0.3) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
    0x90000000 - 0x9014ffff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x901c0000 - 0x9026dfff com.apple.CoreFoundation 6.3.8 (299.36) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x902b0000 - 0x90529fff com.apple.CoreServices.CarbonCore 10.3.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90584000 - 0x905f3fff com.apple.framework.IOKit 1.3.6 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90610000 - 0x9069afff com.apple.CoreServices.OSServices 3.0.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90700000 - 0x90700fff com.apple.CoreServices 10.3 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x90702000 - 0x90775fff com.apple.NavigationServices 3.3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x907f0000 - 0x907f9fff com.apple.DiskArbitration 2.0.5 /System/Library/PrivateFrameworks/DiskArbitration.framework/Versions/A/DiskArbi tration
    0x90810000 - 0x90810fff com.apple.ApplicationServices 1.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x90830000 - 0x9089ffff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x908c5000 - 0x90915fff com.apple.HIServices 1.4.1 (0.0.1d1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x90940000 - 0x909b3fff com.apple.DesktopServices 1.2.5 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x909f0000 - 0x90a04fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x90a20000 - 0x90b7bfff com.apple.Foundation 6.3.8 (500.61) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x90d00000 - 0x90d1bfff com.apple.SystemConfiguration 1.7.1 (???) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x90d2c000 - 0x90d43fff com.apple.LangAnalysis 1.5.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x90db6000 - 0x90dc2fff com.apple.help 1.0.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x90e77000 - 0x90e8ffff com.apple.WebServices 1.1.1 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x90e9f000 - 0x90e9ffff com.apple.audio.units.AudioUnit 1.3.3 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x91093000 - 0x910e1fff com.apple.print.framework.Print 3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x9110d000 - 0x91174fff com.apple.audio.CoreAudio 2.1.3 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x911d2000 - 0x911dffff com.apple.CommonPanels 1.2.1 (1.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x91279000 - 0x91331fff com.apple.audio.toolbox.AudioToolbox 1.3.4 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x913a0000 - 0x9145ffff ColorSync /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x915e0000 - 0x91699fff com.apple.QD 3.4.70 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x916e0000 - 0x91773fff com.apple.print.framework.PrintCore 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x917b6000 - 0x917eefff com.apple.AE 1.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x91809000 - 0x91819fff com.apple.ImageCapture 2.1.5 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x9182c000 - 0x91849fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x91b10000 - 0x91b2afff libPDFRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libPDFRIP.A.dylib
    0x91b50000 - 0x91b5ffff libPSRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libPSRIP.A.dylib
    0x91b80000 - 0x91b93fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x92056000 - 0x92061fff com.apple.securityhi 1.2 (90) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x920c0000 - 0x922a7fff com.apple.security 2.4 (177) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x92430000 - 0x92468fff com.apple.LaunchServices 10.3.5 (98.4) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x9278f000 - 0x927b5fff com.apple.FindByContent 1.4 (1.2) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x927c8000 - 0x927d3fff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x927f0000 - 0x92827fff com.apple.CFNetwork 1.2.1 (7) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x9283f000 - 0x92852fff com.apple.speech.synthesis.framework 3.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x92880000 - 0x92c05fff com.apple.HIToolbox 1.3.7 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x93920000 - 0x93930fff com.apple.speech.recognition.framework 3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x939a0000 - 0x939b4fff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x93a50000 - 0x93a54fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x93b2d000 - 0x93b35fff libbsm.dylib /usr/lib/libbsm.dylib
    0x9410d000 - 0x94160fff com.apple.bom 1.2.6 (64) /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    0x94610000 - 0x9462afff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x94640000 - 0x94649fff libz.1.dylib /usr/lib/libz.1.dylib
    0x946e0000 - 0x9473ffff com.apple.SearchKit 1.0.2 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x94800000 - 0x9488cfff com.apple.ink.framework 101.1.4 (55.12) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x949ba000 - 0x949bafff com.apple.Carbon 10.3 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x94ea0000 - 0x954a6fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x95500000 - 0x957d0fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x958e0000 - 0x95900fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x95b50000 - 0x95c32fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x95e40000 - 0x95eadfff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x95f30000 - 0x9601efff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x96980000 - 0x96a48fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x96aa0000 - 0x96acefff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
    0x96ade000 - 0x96af8fff com.apple.openscripting 1.2.1 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x96b50000 - 0x96bdffff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x96e80000 - 0x96e90fff com.apple.vecLib 3.0.3 (vecLib 3.0.3) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x96eca000 - 0x971a2fff com.apple.CoreGraphics 1.203.30 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x97335000 - 0x9739efff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering

  • Interface builder, running script when app opens

    Hi!
    I am trying to expand my wake script, so I have thrown it into xcode. What my wake script does is that it opens itunes and start to slowly turn up the volume, then it updates my ipod and does a few other things.
    Now this works great in script editor, I launch this app with a script which is launched by iCal.
    The first thing I want to do in xcode is to have a "I am awake" button (also called cancel…). And the only way I have gotten this to work is to have the script like this:
    on clicked theObject
    beep
    try
    tell application "iTunes" to pause
    end try
    quit
    end clicked
    on activated theObject
    -- the script.
    end activated theObject
    The reason for using activated is that this is the only handler that I have found that lets me push the cancel button. (If I for example try to use "on launched" the whole script will run, then I can push cancel, kinda defeats the purpose…).
    Any ideas?
    ahh, ****, it seems that even the activated handler doesn't work. It looks like I can push cancel, but I can't!
    Message was edited by: Oystbjoe

    Once you've pushed "buttonOne" you enter your "repeat" loop and never get out... which also means that your code never returns from your "on clicked" handler. As long as you're stuck inside your "on clicked" handler your app will not receive any more clicked events. Hence your app never gets notified of the second click on your "Cancel" button.
    Your previous post indicates you are wanting to be able to start some process (ie your repeat loop) with "buttonOne" but then potentially cancel it before it completes. From a programming standpoint that's not always easy to do... with AppleScript or any other programming language. In some cases it can be fairly difficult. And even if it's not difficult it may not be straightforward.
    One way you might be able to do this with AppleScript, depending on what your "processing" entails, is to make use of an "on idle" handler. Your "on idle" handler will be called automatically and periodically. By default "on idle" gets called every 30 seconds but you can change that by returning a positive number from your "on idle" that represents the number of seconds between calls.
    Something like this might work, but it's going to depend on whether you can break the work you're wanting to do into chunks such that you can do a little bit at a time and potentially stop between chunks due to a click on the "cancel" button.
    property doSomeProcessing : false
    on clicked theObject
    set n to name of theObject
    if n = "butonOne" then
    set doSomeProcesing to true
    return
    end if
    if n = "cancel" then
    set doSomeProcessing to false
    return
    end if
    end clicked
    on idle
    if doSomeProcessing then
    beep
    -- or do a _small chunk_ of the actual work you want to do
    end if
    return 1
    end idle
    Basically your button clicks just turn a flag on or off indicating whether you need to be doing some processing or not. All of the actual processing is done in small chunks inside your "on idle" handler. So each time your idle handler gets called you check the value of the flag. If you're supposed to be doing some processing then you do a little bit of work and return. NOTE that the "return 1" statement in the "on idle" handler is what changes the default of every 30 seconds so that it gets called every second.
    I created an AS Studio application with the code above. And I also created a separate plain vanilla AppleScript that tells the AS Studio to have one or the other of the buttons to "perform action" (as indicated in my earlier post). By running the plain vanilla AppleScript I'm able to trigger the AS Studio app to start/stop beeping every second. So whether or not you can do this mainly depends on what you're trying to accomplish and whether or not it can be broken into chunks that can be done within an idle handler.
    Steve
    PS - also note that in an AS Studio application you need to activate the "idle" handler in Interface Builder in a manner similar to how you activated the "clicked" handler for your buttons. Select the "Application" icon in the MainMenu.nib window then click the "idle" checkbox in the AppleScript Info Panel.

  • HT1338 x11 and x quartz launches and quits immediately.

    I am AFNI for fMRI analysis.When I launch terminal and type in afni a message appears showing instalizing x11 and nothing happens.When I attempt to manually launch x11 or x quartz the program quits immediately.I have reinstalled x quartz and same is continuing.Can someone please help as I am stuck .

    I am not sure whether is this the right way to communicate to a forum. I am just doing cut and paste as appears on console(Please I am a computer illiterate hope you undersatnd) .
    1) 04/02/2013 18:40:09.150 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:40:30.677 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:40:52.032 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:41:13.302 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:41:34.669 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:41:56.306 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:42:17.702 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:42:39.043 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:43:00.442 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:43:22.056 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:43:43.468 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:44:04.878 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:44:26.257 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:44:47.894 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:45:09.582 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:45:31.056 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:45:52.646 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:46:14.259 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:46:35.691 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:46:57.086 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:47:18.525 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:47:40.147 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:48:01.484 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:48:22.944 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:48:44.297 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:49:05.956 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:49:27.337 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:49:48.766 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:50:10.223 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:50:32.251 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:50:53.902 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:51:15.359 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:51:36.783 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:51:58.409 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:52:19.814 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:52:41.237 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:53:02.525 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:53:24.001 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:53:45.459 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:54:07.023 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:54:28.511 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:54:50.030 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:55:11.478 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:55:32.853 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:55:58.190 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:56:19.102 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:56:40.717 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:57:02.559 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:57:24.329 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:57:46.475 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:58:08.282 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:58:29.565 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:58:50.827 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:59:12.539 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:59:36.265 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 18:59:58.168 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:00:19.581 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:00:40.879 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:01:02.157 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:01:23.880 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:01:45.141 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:02:06.422 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:02:27.979 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:02:49.850 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:03:11.121 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:03:32.428 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:03:54.964 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:04:16.783 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:04:38.134 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:04:59.486 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:05:21.160 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:05:42.470 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:06:03.826 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:06:25.199 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:06:46.807 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:07:08.170 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:07:29.525 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:07:50.876 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:08:12.768 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:08:34.110 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:08:55.371 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:09:16.646 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:09:38.408 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:09:59.673 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:10:20.998 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:10:42.727 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:11:04.489 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:11:26.340 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:11:47.665 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:12:08.973 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:12:30.811 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:12:52.417 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:13:13.777 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:13:35.067 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:13:56.683 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:14:18.149 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:14:39.756 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:15:01.201 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:15:22.815 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:15:44.163 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:16:05.472 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:16:26.753 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:16:48.455 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:17:09.735 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:17:31.122 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:17:52.390 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:18:10.044 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:18:31.405 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:18:52.676 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:19:14.076 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:19:35.353 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:19:56.681 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:20:17.949 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:20:39.564 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:21:00.865 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:21:22.176 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:21:43.448 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:22:05.113 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:22:26.411 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:22:47.718 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:23:09.031 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:23:30.637 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:23:51.913 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:24:13.183 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:24:34.464 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:24:56.098 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:25:17.382 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    2)
    04/02/2013 19:25:19.381 org.macosforge.xquartz.startx:
    04/02/2013 19:25:21.384 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:23.389 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:25.394 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:27.400 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:29.403 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:31.408 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:33.412 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:35.417 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:37.422 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:38.426 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:38.426 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:25:38.426 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:25:38.426 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:25:38.433 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:25:38.436 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:38.653 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:25:38.682 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.65853 does not exist
    04/02/2013 19:25:38.722 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:25:38.744 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:25:38.758 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:25:38.763 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:25:38.774 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:25:40.763 org.macosforge.xquartz.startx:
    04/02/2013 19:25:42.766 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:44.770 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:46.775 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:48.780 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:50.784 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:52.790 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:54.795 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:56.800 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:58.805 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:58.913 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:25:59.808 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:25:59.808 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:25:59.808 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:25:59.808 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: /opt/X11/bin/xinit: server error
    04/02/2013 19:25:59.844 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:25:59.844 org.macosforge.xquartz.startx: /opt/X11/bin/xinit:
    04/02/2013 19:26:00.041 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:26:00.058 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.66010 does not exist
    04/02/2013 19:26:00.086 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:26:00.094 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:26:00.113 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:26:00.120 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:26:00.198 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:26:02.112 org.macosforge.xquartz.startx:
    04/02/2013 19:26:04.116 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:06.120 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:08.125 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:10.130 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:12.136 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:14.140 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:16.145 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:18.149 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:20.154 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:20.298 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:26:21.161 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:21.161 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:26:21.161 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:26:21.161 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:26:21.505 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:26:21.507 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:21.674 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:26:21.714 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.66165 does not exist
    04/02/2013 19:26:21.739 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:26:21.746 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:26:21.761 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:26:21.766 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:26:21.811 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:26:23.764 org.macosforge.xquartz.startx:
    04/02/2013 19:26:25.767 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:27.773 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:29.778 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:31.782 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:33.786 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:35.791 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:37.795 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:39.801 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:41.804 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:41.859 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:26:42.807 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:42.807 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:26:42.807 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:26:42.807 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections /opt/X11/bin/xinit: server error
    04/02/2013 19:26:42.832 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:26:42.836 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:43.017 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:26:43.055 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.66320 does not exist
    04/02/2013 19:26:43.088 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:26:43.096 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:26:43.123 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:26:43.134 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:26:43.165 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:26:45.119 org.macosforge.xquartz.startx:
    04/02/2013 19:26:47.122 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:49.128 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:51.132 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:53.137 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:55.143 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:57.148 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:26:59.153 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:01.158 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:03.163 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:03.353 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:27:04.166 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:04.166 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:27:04.166 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:27:04.166 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:27:04.173 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:27:04.176 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:04.384 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:27:04.406 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.66476 does not exist
    04/02/2013 19:27:04.435 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:27:04.446 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:27:04.481 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:27:04.500 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:27:04.515 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:27:06.479 org.macosforge.xquartz.startx:
    04/02/2013 19:27:08.481 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:10.486 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:12.492 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:14.497 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:16.503 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:18.507 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:20.511 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:22.516 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:24.521 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:24.620 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:27:25.524 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:25.524 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:27:25.524 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:27:25.524 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections /opt/X11/bin/xinit: server error
    04/02/2013 19:27:25.531 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:27:25.534 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:25.685 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:27:25.700 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.66631 does not exist
    04/02/2013 19:27:25.724 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:27:25.735 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:27:25.748 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:27:25.755 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:27:25.766 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:27:27.753 org.macosforge.xquartz.startx:
    04/02/2013 19:27:29.756 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:31.762 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:33.767 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:35.772 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:37.777 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:39.782 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:41.788 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:43.793 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:45.799 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:45.923 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:27:46.803 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:46.803 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:27:46.803 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:27:46.803 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:27:46.810 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:27:46.836 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:47.045 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:27:47.128 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.66786 does not exist
    04/02/2013 19:27:47.163 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:27:47.169 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:27:47.184 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:27:47.192 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:27:47.205 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:27:49.188 org.macosforge.xquartz.startx:
    04/02/2013 19:27:51.191 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:53.197 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:55.202 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:57.207 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:27:59.212 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:01.216 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:03.222 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:05.227 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:07.232 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:08.235 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:08.235 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:28:08.235 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:28:08.235 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:28:08.579 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:28:08.595 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:08.744 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:28:08.757 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.66949 does not exist
    04/02/2013 19:28:08.781 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:28:08.789 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:28:08.802 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:28:08.807 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:28:08.819 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:28:10.808 org.macosforge.xquartz.startx:
    04/02/2013 19:28:12.811 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:14.816 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:16.821 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:18.825 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:20.830 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:22.836 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:24.840 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:26.846 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:28.851 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:29.855 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:29.855 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:28:29.855 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:28:29.855 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:28:29.862 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:28:29.865 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:30.076 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:28:30.113 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.67104 does not exist
    04/02/2013 19:28:30.143 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:28:30.232 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:28:30.246 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:28:30.251 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:28:30.264 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:28:32.251 org.macosforge.xquartz.startx:
    04/02/2013 19:28:34.254 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:36.259 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:38.264 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:40.269 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:42.274 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:44.279 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:46.292 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:48.296 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:50.300 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:50.349 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:28:51.303 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:51.303 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:28:51.303 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:28:51.303 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:28:51.310 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:28:51.312 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:51.530 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:28:51.552 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.67260 does not exist
    04/02/2013 19:28:51.583 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:28:51.603 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:28:51.642 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:28:51.646 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:28:51.670 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:28:53.646 org.macosforge.xquartz.startx:
    04/02/2013 19:28:55.649 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:57.654 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:28:59.659 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:01.663 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:03.669 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:05.673 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:07.679 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:09.684 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:11.689 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:11.737 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:29:12.693 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:12.694 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections /opt/X11/bin/xinit: giving up
    04/02/2013 19:29:12.694 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:29:12.694 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:29:12.702 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:29:12.705 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:12.899 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:29:12.934 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.67416 does not exist
    04/02/2013 19:29:12.966 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:29:12.979 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:29:13.064 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:29:13.069 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:29:13.094 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:29:15.069 org.macosforge.xquartz.startx:
    04/02/2013 19:29:17.072 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:19.077 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:21.082 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:23.086 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:25.092 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:27.097 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:29.103 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:31.108 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:33.113 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:33.212 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:29:34.117 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:34.117 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:29:34.117 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:29:34.117 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections /opt/X11/bin/xinit: server error
    04/02/2013 19:29:34.460 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:29:34.464 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:34.621 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:29:34.644 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.67571 does not exist
    04/02/2013 19:29:34.668 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:29:34.675 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:29:34.689 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:29:34.694 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:29:34.707 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:29:36.694 org.macosforge.xquartz.startx:
    04/02/2013 19:29:38.697 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:40.703 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:42.708 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:44.713 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:46.718 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:48.723 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:50.728 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:52.739 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:54.744 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:54.809 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:29:55.747 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:29:55.747 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:29:55.747 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:29:55.748 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:29:55.757 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:29:55.757 org.macosforge.xquartz.startx: /opt/X11/bin/xinit:
    04/02/2013 19:29:55.970 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:29:56.033 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.67726 does not exist
    04/02/2013 19:29:56.129 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:29:56.135 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:29:56.151 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:29:56.156 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:29:56.167 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:29:58.155 org.macosforge.xquartz.startx:
    04/02/2013 19:30:00.158 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:02.163 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:04.168 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:06.173 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:08.177 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:10.183 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:12.187 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:14.193 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:16.197 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:16.322 org.macosforge.xquartz.X11.stub: Xquartz: bootstrap_look_up(): Unknown service name
    04/02/2013 19:30:17.201 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:17.201 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: giving up
    04/02/2013 19:30:17.201 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
    04/02/2013 19:30:17.201 org.macosforge.xquartz.startx: /opt/X11/bin/xinit: server error
    04/02/2013 19:30:17.208 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections xauth: (argv):1:  bad display name "haris-imac:0" in "remove" command
    04/02/2013 19:30:17.211 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:17.513 defaults:
    The domain/default pair of (/Users/harigopal/Library/Preferences/org.macosforge.xquartz.X11.plist, dpi) does not exist
    04/02/2013 19:30:17.527 org.macosforge.xquartz.startx: xauth:  file /Users/harigopal/.serverauth.67883 does not exist
    04/02/2013 19:30:17.551 org.macosforge.xquartz.startx: xauth: (argv):1:  bad display name "haris-imac:0" in "list" command
    04/02/2013 19:30:17.559 org.macosforge.xquartz.startx: xauth: (stdin):1:  bad display name "haris-imac:0" in "add" command
    04/02/2013 19:30:17.573 org.macosforge.xquartz.X11.stub: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
    04/02/2013 19:30:17.578 org.macosforge.xquartz.X11.stub: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
    04/02/2013 19:30:17.589 org.macosforge.xquartz.startx: /Users/harigopal/.bash_profile: line 1: .bash_profile: No such file or directory
    04/02/2013 19:30:19.577 org.macosforge.xquartz.startx:
    04/02/2013 19:30:21.580 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:23.586 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:25.592 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:27.597 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    04/02/2013 19:30:29.602 org.macosforge.xquartz.startx: waiting for X server to begin accepting connections
    Thanks

  • Memory Leak when just launched and Idle..  fixes when being used ??  [HELP]

    So I'm in the debugging and testing phase of my app and using this tool for tracking memory leaks ( https://github.com/mrdoob/Hi-ReS-Stats )
    When I launch my app my numbers are
    FPS: 61/60
    MS: 17
    MEM: 3.157
    MAX: 3.157
    Now immediately my memory starts increasing    from  3.157, 3.167, 3.177, 3.187, 3.197 and so on.
    Now if I make any nav selection in my app
    MEM changes back down to about 3.215
    but then it starts its count again   3.215, 3.225,  3.235, 3.445, 3.455
    I don't have any loops happening.
    Has anyone run in to this ?
    I'm almost tempted to force garbage collection every 60 seconds that the app is idle or something.  Not the best way to handle this ..   I just dont know where the leak is happening.
    Any support is appreciated!
    Cheers!

    Hi there - I just had the same query a couple of days ago (http://forums.adobe.com/thread/977174?tstart=30).
    I saw the same symptoms on my app so I built a blank app with just the profiler on stage. I've been monitoring it for a few days now and notice that memory does creep up even when the app is left idle (apart from the profiler) - but ... and this is the important bit ... it does periodically get reduced back to the starting point (when the garbage collector kicks in and memory is released).
    When I was monitoring my app the time through this cycle could be well over 5 mins.
    If you actually use the monitor when putting your app through it's paces you'll see memory being gobbled up more rapidly and hopefully (if you've no leaks) the garbage collection kicking in more regularly and bringing the reported usage back down.

  • Hook to run script between Consumption mode and Contribution mode

    Hi,
    I am developing a Web Portal page with a Region Template. My page will need to have an accordion. My Region Template will push out raw HTML, and I will use jQuery to put accordion behavior on top. However, the jQuery will run at "onload", $(document).ready(function()), to initialize my raw HTML to be an accordion. It works fine in view mode, however when I switch to Contribution mode, the page shows a raw HTML.
    I am looking for a hook that I can run JavaScript when switching between Consumption mode and Contribution mode. This way, I can put my initialization script in that hook. I have looked in the iDoc documentation but couldn't find any.
    I would be grateful if you can help me out. Thank you very much for your time.
    Linh
    Edited by: 942214 on 22-Jun-2012 00:20

    Are you sure your jquery isn't getting called? Switching between contribution mode should cause a full page refresh by triggering the WCM.ReloadURL js function.
    Have you put in debug statements to ensure that the $(document).ready(function(){}); really isn't being called?
    -ryan

  • How do I enable some scripts to run in some programs/websites and what happened to the status bar of my Mozilla Firefox 4?

    Well, first of all, I was tying to create a web-based computer game in Notepad in H.T.M.L., C++, and JavaScript codes. But when I tried to open the completed product, Firefox only came up with a blank page. What do I do with this? And also, I unwittingly removed the "Status Bar" on the bottom side of my browser(the one that always says "Transferring data from/to..."), and when I tried to bring it back up, I couldn't because I don't know how, since I'm new to Mozilla Firefox 4. If you could help me with these problems, Then I would greatly appreciate it.

    You can install the Status-4-Evar extension to regain some functionality from previous Firefox versions that was lost with the removal of the Status bar.
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" after you have installed the Status-4-Evar extension and drag the items (Status Text, Progress Meter, Download Status) upon the Add-ons Bar (View > Toolbars > [X] Add-on Bar)<br />
    Also check the Options of Status-4-Evar in Firefox (or Tools) > Add-ons
    * Status-4-Evar: https://addons.mozilla.org/firefox/addon/235283/

  • Script when plugging in and out

    Hey
    I want to run two different scripts whenever I plug in or out my laptop.
    How can I know when the computer is plugged in or out?
    Is there a program that already does that?
    tnx
    fiod

    install acpid, and look at /etc/acpid. I think there's some example scripts there, or at least something you can work with.

  • Running a Java program over and over.........

    I'm new to java development, so forgive me if this is the wrong forum, or just a stupid question. What I have is a java program that reads messages from an IBM MQseries queue using the MQseries AMI interface, makes a connection to an oracle database, and inserts those messages into a table in the database. What I need, however, is for the program to run over and over, checking the queue for messages, and sending them to the database. How do I get this java program to constantly run. Also, when it runs the first time, I need to make a connection to the oracle database, grab some information from a table, and stick it into a java array. I only need this done once. Is there an init() method or something I can put this code in so it will only be done once?

    Information that needs to only be run once can be done two ways.
    1) Inside a constructor. This code will run each time you instantiate an object.
    2) Inside a static block. Runs once, and only once, regardless of how many instances are created
    Here's the example of both.
    public class Foo
        static
            System.out.println("I'm in the static block");
        public Foo()
            System.out.println("I'm in the constructor");
    }Also, check out java.util.Timer for scheduling tasks to reoccur at regular intervals.

  • When firefox launched and kept open, automatically opens multiple sessions for ads and pornography which I have never visited. sessions hide in legitimate ones

    I use firefox exclusively. I open many sessions simultaneously mostly one site per session in a single tab. At times during the day when I keep firefox open, I will return to a previous site/session and before I am able to see it, I am getting browser 'pop-ups' of ads for TJ MAxx (a site I never visit) and hard-core porno (a site i never visit and not part of my browsing demographic). These are completely random and hide behind legitimate browsing sessions and are not listed in history etc. They are not being removed by adware or Norton and they are driving me nuts not to mention the embarassment of trying to launch a legitimate site and getting disgusting porno in your face while working with colleagues. Please help!

    '''Scan for Malware'''
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    '''Reset Firefox'''
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • "firefox is already running" dialog when logged in and also vncserving

    I've been using vncserver / vncviewer / tightvnc for a while now without any problems. I've never noticed this problem before but maybe that's because I've never knowingly done what I just did.
    OK to show a colleage on the other end of the internet something on my desktop I opened up the firewall and told them to run tightvnc at their end while I, logged in as the user I wanted them to "be", fired up the vncserver on this arch linux box running xfce4 as the desktop environment. Seconds later they're logged in as me, looking aththe system, just as I wanted.
    OK i said crank up firefox ..... they did. Then I went to do the same, and I got an error message "firefox is already running".
    OK I am pretty sure I know why ... I'm logged in as "user x" and they are piggybacking off the vncserver process I fired off as that user so they are, to the system, just an extension odf me, and so when two of us run firefox it thinks there's debris from a previous crash lying around.
    Is there a workround to allow two of us to run firefox at the same time ?

    Well, if the profile folder is empty, either its contents are somewhere else and hopefully you can put them back where they belong, or you lost your profile info. I don't know how could happen, though...
    In any case, see this support article to know about managing profiles:
    http://support.mozilla.com/en-US/kb/Managing+profiles

  • How do I fix this problem? A link to firefox-sync immediately caused desktop screen picture to begin a slow sea-sick roll. I am running my AV program now and screen is still on the high seas.

    From this page, [http://websearch.about.com/od/internetresearch/a/customhomepage.htm How to Set Your Home Page to Your Favorite Web Site]
    I clinked on "web browser" [http://websearch.about.com/od/whatistheinternet/a/browser.htm Web Browser] and that immediately gave me the 'sea sick' roll to the screen. My AV has not found anything wrong, but it is still running. The speed of the rolling sea-sick screen seems to vary with typing speed. It slows down when I keep my hands off the keyboard. The mouse has the same motion problem.

    kapots3v4,
    if your MacBook Pro doesn’t stay active long enough to perform an OS X Internet Recovery, then you should make an appointment at your nearest Apple store or Apple-authorized service provider to have them diagnose what’s ailing it.

  • Running Slow When Viewing Events and Transcoding (and gets hot!)

    Hello community,
    Before you read, please read my specs down below to rule that out.
    So I'm running FCPX version 10.1.1. I just imported a lot of video (almost 1TB). All of it is in 1080p. I did not copy anything in and left it in its original folders. So I am having two problems:
    1. I wanted to transcode all of the video to work better with FCPX. Part of the original media is ProRes 422, but part of it was AVCHD. So after converting the AVCHD to Quicktime (.MOV) files, I went to transcode all of the footage to optimized media during import, but it was painfully slow. It would take 15 minutes to transcode a 10 second clip. My computer would also get very hot during this process (90*C). After multiple attempts, I decided to forgo that and just transcode when I export. If anyone has an answer as to why that is, that would be great.
    Now problem #2.
    2. I am just viewing the media in the events browser to put keywords on the videos. All I am doing is viewing the videos. I have not even created a project or anything. When I'm viewing it, a lot of the clips won't load or play back, and my computer gets really hot (90*C). I can't even scrub over the videos in the event browser because they will be blacked out or blank and won't load. And this fluctuates. Sometimes I will be able to view the media, sometimes I won't and it'll get really hot. It is really slowing down my workflow and it would be great if anyone had an answer. I have reset the PRAM and the SMC and neither of those have worked.
    Thank you!
    System Specifications:
    Mavericks OSX 10.9.3
    Macbook Pro Retina, 15-inch, Late 2013
    16 GB of Ram
    Intel i7 Quad Core - 2.6 GHz
    Intel Iris Pro with Nvidia GeForce GT 750M
    500 GB SSD - 202.44 Free
    Secondary Drive (with all of my video files):
    WD My Passport Ultra HD 2TB - 1.1TB Free

    Your setup should be more than capable of handling that workload.
    There are a few things you did not mention.
    How is the drive connected?
    The most likely explanation for the slowness would be a slow drive. If the drive is only USB2, that would be a bottleneck.
    You can easily test that by running Blackmagic Disk Speed Test. I do this with every drive to see what performance I can expect.
    You mentioned converting AVCHD to mov. You should know you really don't need this. FCP X can import these files directly. It is best to keep the whole AVCHD structure by copying the whole folder or, better yet, use FCP X to create a camera archive. These will be used just as a camera card would, except much faster to import from, being in a hard drive instead of an actual SD card.
    My suspicion is on whichever software you are using to do this conversion. There are a number of low quality converters out there, and if these files have problems they can easily cause FCP X to sweat (pun intended).

Maybe you are looking for

  • I really need help on this/I can't find anything specific to my problem!

    I would like to know if there is a specific website ran by apple that I can log onto and knock out a few SO CALLED authorized computers for playing? I have had repeated problems with one of my windows systems and had to reinstall the entire system, i

  • CWGraph Flashing/Flickering when updating

    We are utilizing CWGraph (3.0) in VB6-SP4 as a single trace chart. Quite often the chart flickers/flashes when updating, but there is no particular pattern to it. If a chart is currently flickering & a command button on the same form is selected to c

  • How to press backspace using bootcamp

    hi I have recently loaded bootcamp onto my macbook. I know that when using macbook to press backspace all i have to do is hold down the fn key and press delete. How do i do this when using windows on my macbook. I have tried several different things.

  • How To Generate XSL for integration from WSDL

    Hi, Can anybody help me to how to generate XSL from WSDL file for Integration..... Thanks

  • List of Values Displays a Dialogue Box

    Hi All, We are using 2007A PL30, whenever pressing Tab on a list of value field, system displays a dialogue box first like "The result of the 'List of' query contains more records than you defined in the general settings. Continue?" Yes or No. If Yes