Java script won't run

I had a very small script <a
href="javascript:window.close()" title="click here to close the
window">Close window</a>
running that would close a window when the user clicked on
the "Close window" button. It worked fine until I downloaded a
Dreamweaver extension program called "Well Rounded" which makes
rounded off boxes and windows. All of a sudden my script will not
longer work. I tried it on a new html fie, I tried rebooting.
Nothing works. I don't understand. Any help would be appreciated.
My site is www.equityinspection.com/newfirstpage2.html
Thanks
Mike

>I basically have a AP Div that uses the timeline feature
to float up from the
>bottom after about two or three seconds after the user
gets to my home page.
>I need a control to allow them to close the page. Sounds
simple but I can't figure it out.
Doesn't make sense to me. Why would a visitor want to close
your home page? Assuming they do, why can't they just use the
browsers own close controls? Are you trying to hide the div? If
that's the case, the window.close() won't do that.

Similar Messages

  • Java applets won't run on Safari???

    I have reinstalled Java twice, and it still won't run any Java applets. It just sits there with the cup logo and the arrow on either side. It works fine on Firefox but not Safari. Help?

    Hello
    I'm piggy backing on this thread because I too have had problems with Java and Safari
    Java runs fine for me in Firefox, however.
    I went to a federal website
    https://blrscr3.egs-seg.gc.ca/gol-ged/gov/browserdetection/BrowserCheck.html
    that uses java and received this message
    " Java applet unable to load
    To use this service, you must either install a recent version of the Sun JVM or enable "Scripting of Java applets" if it has been disabled."
    so i looked for an update and have downloaded and installed release 6, (at least, it said that it was installed, but have never been able to figure out where)
    when I check Java preferences, the choices are J2SE 1.4.2 or J2SE 5, and when I've switched to 1.4.2 I still have no luck.
    When i run firefox, i get the java console opening, but it doesn't open with safari, and I can't find the option for this to turn on in safari
    i have restarted both safari and my computer and no luck. I have repaired permissions and no changes have taken place.
    Any more suggestions?
    (thank you, by the way)

  • PHP script won't run in the background

    Hi all
    Hope someone can help me with a weird issue I have...
    I am trying to run a php CLI script in the background and it just won't run - it has a status of Stopped SIGTOU (Trying to write output) - Here are the details
    OS
    Mac OS X Lion 10.7.2
    PHP
    PHP 5.3.6 with Suhosin-Patch (cli) (built: Sep  8 2011 19:34:00)
    Copyright (c) 1997-2011 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    I created a basic script  test.php
    <?php echo 'Hello world'.PHP_EOL; ?>
    Here are the results of various tests:-
    Test 1) php -f test.php  (Hello world gets displayed)
    Test 2) php -f test.php >test.log 2>&1 (Hello world gets put into test.log)
    Test 3) php -f test.php >test.log 2>&1 & --- I get [1]+  Stopped(SIGTTOU)        php -f test.php > test.log 2>&1 -- and the job just sits there doing nothing nothing gets logged however lsof shows the log file is open
    It has to be something to do with Apple's php build because a similar bash shell script gets executed no problems in the background...
    This has me stumped ... any ideas? What can I do to find out what is going on ...?
    TIA
    Rich

    Just realized your trying to load the php files by using the File->Open menu item in the Browser.  That won;t work.
    You have to load the php file by placing it in the Sites folder and entering http://localhost/file.php
    (or if you have user Sites enabled http://localhost/~user/file.php)
    The reason it is grayed out is that the browser doesn't run (or know of) php files. The web server runs those (via php) and the output of the file goes to the web browser.
    This page How to enable Web Sharing in OS X Mountain Lion does a pretty good job of explaining it. (as does the user tip I lonked to before)

  • Script won't run unattended

    I know very little about applescript, so please be gentle with me...
    I have a script (written by someone else) which copies some folders to a flash drive (for offsite backups). It launches, mounts disks, clears the old files off of the flash drive, then does the copy. It is set to run at 2am. Every morning I come in, and the machine has an "Apple Event timeout" panel up, and the script has terminated without running the backup. I then double-click on the script and it runs flawlessly.
    A couple of details...
    After the script mounts disks, it puts up an alert panel that says "All drives are now mounted". That panel is set to time-out and for the script to continue if nobody clicks on the "ok" button.
    If I am running interactively, and I sit there and watch the panel, then it times out after the allotted 15 seconds, and the script then copies just like it's supposed to. HOWEVER -- if I shift to another application (for example I select the Finder to go check on some other files), then I don't see the panel (of course) because my script doesn't have focus. But the little applescript icon jumps in the dock. If I sit there, not acting on the jumping icon, not bringing the script to front, then I get the "Applescript timed out" message and the script fails.
    Does anybody recognize this problem and could you give me some ideas on how to fix it?

    Well, it seems to me that the dialog serves no useful purpose, so I'd delete the line in the script that displays the dialog. It's a horrible user interface that interrupts the workflow to tell you everything's normal (or, at least, working as expected). Applications should warn/inform you of errors or unusual conditions.
    If, for some reason, you want to keep the dialog then your best bet is to activate the application that's displaying the dialog. For example:
    tell me
      activate
      display dialog "here's a really annoying dialog telling you everything's OK"
    end tell
    This will have the effect of bringing the script application frontmost before displaying the dialog, therefore overcoming the 'app in background' error you're running into. There's no trivial way, though, to set the focus back to the previous app, which just adds to the annoyingness of this pointless dialog.

  • Java Script won't work

    Hello all, I'm new to the forums and need help with something. This all started because of my new video card (GeForce 4 Ti 42000) everything worked fine until the mointor started to go bonkers and the links in webpages stop working and GO buttons on sites no longer worked along with those pop-up mini-sites that they use for video games. I always get the smae thing at the bottom Javascript0.void or something along those lines.
    Now I did remove the new card and put in our old one and thought that would clear it out but alls it did was slove everything EXCEPT the Java Script errors.
    Can somebody please help me?

    Did you install the latest drivers for your new card?Better yet did you unistall your drivers from your old card. It can cause all sorts of weird crap when you have remains of an old video card in your registry(assuming you use Windows) and you install a new card and drivers over it. I would suggest going into regedit and looking for anything related to your old card and removing it. But back up the registry first of course. Then unistall all your drivers for the the new card and start from scratch. Get the newest version of your chipset drivers i.e. Via or Intel whatever chipset your board uses and install them first then install your new drivers for your new card. Of course the easiest solution would be to reformat and reinstall windows then put on the new Via/Intel drivers and video drivers then you can be sure you don't have any ghost drivers floating around.

  • Just loaded lion software.  Now java scripts will not run.  What can I do to fix this

    Just loaded my MacBook Pro with Lion 10.7.1 software.  Trying to add printer and the script does not work for loading the drivers and software for that printer.  It goes through the script then says it successfully loaded but asked me no questions about the load during the process.  It appears that the Java script passes right through.  Is there anything I can load to fix this problem.  I also tried to use my internet stick which loads software to select and use this stick.  It does not work either.  What can I do to fix this???

    Hi there,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    -Griff W. 

  • Script won't run on machine w/MAC OSX Server 10.4.9

    Why won't the following script work on a machine that is running MAC OSX Server 10.4.9. On Machines running Mac OS X 10.4.9 it works fine, but on my server machine it won't name the file as per the script--the menu dialog box pops ("save as") up asking for a file name.??
    The only difference between the machines as far as I can tell is the OS.
    Thanks.
    Pedro
    global fileSpec
    tell application "TextEdit"
    activate
    tell application "Finder" to set visible of process "TextEdit" to false
    tell application "Finder"
    set theFileName to "Date.rtf"
    set fileSpec to "Photo [Data]:Archive error LOG:" & theFileName
    end tell
    save document 1 in fileSpec
    tell text of document 1
    set the size to 20
    set the font to "Lucida Grande"
    end tell
    close document 1 saving yes
    end tell
    G5   Mac OS X (10.4.9)  

    Edit: sorry, you should be choosing a folder, not a file. Try this script instead.
    tell application "Finder"
        activate
        set tempy to choose folder
        display dialog ("" & tempy)
    end tell

  • Forte for Java CE won't run files created with J2SDK

    I'm very new to Java. When I try to run packages, classes written with Java 2 SDK, I get the following error:
    java.lang.NoClassDefFoundError: TextComponentPrintWriter (wrong name: utilities/TextComponentPrintWriter)
    I have mounted the root directory and the JAR files- or I think I have- but I'm still getting an error when I run the programs form the IDE of Forte v. 3. By the way, they all compile okay. Please help!

    Try downloading a newer SDK and getting
    c:\j2sdk1~1.1_0\jre\bin
    out of the path

  • Script won't run automatically

    I use Image Capture to download photos from my camera. I have set it to run an Applescript after download to rename all the downloaded files. The Applescript icon appears briefly in the dock but nothing happens. I have inserted a display dialog at the beginning of the script but it doesn't display. I have wrapped the script in Try/on error, with a display on error, but nothing appears. The script runs perfectly when run manually.
    Any suggestions?
    AK

    The script is begins with "on run" and ends with "end run". It is saved as an application.
    When Image Browser starts with a camera connected (in fact it auto-starts because the camera is connected) in the top pane of its dialog box there are two pop-ups, one to select the target directory and the other to select post-processing. The latter has options such as preview, crop, fit ... and "Other". Selecting Other allows you to browse to an application, in my case the saved script. Underneath this pop-up is written "occurs after downloading".
    The pictures transfer, the AS icon appears in the dock and bounces a couple of times then goes away again without having done anything. I have just tried it with a couple of pictures, and get the impression that its appearance in the dock was shorter than last time I ran it, when there were 120 pictures in the download folder. This suggests (if true) that it is iterating through the files in the directory.
    In case anyone can spot something stupid I'll paste the script below - but it works stand-alone.
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run
    try
    set ThePath to "AKMacHD80p_1:Pictures:*IST:Incoming"
    set TheFiles to list folder ThePath without invisibles
    repeat with ThisFile in TheFiles
    set CharList to characters of ThisFile
    if item 4 of CharList is "P" then
    set item 4 of CharList to "R"
    renameFile ThePath & ":" & ThisFile to CharList as string
    end if
    end repeat
    on error BadThing
    display dialog BadThing as text
    end try
    end run</pre>

  • Java applet won't run: ClassFormatError: Unknown constant tag 115

    Hi,
    About two years ago I uploaded an applet to a server and it ran fine. Since then I've done minor tweaks to the applet and it works on my computer, but I recently uploaded it to a new server and now it gives me the following:
    java.lang.ClassFormatError: Unknown constant tag 115 in class file chemlet
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassFormatError: Unknown constant tag 115 in class file chemlet
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I've already checked that I uploaded everything in binary and that my .class files are intact on the server. In fact I uploaded my files and downloaded them back onto my computer and they run fine. Also I have another applet running smoothly on the same server (which also used to reside on the old server) and it's not having any problems. I have 9 .class files in total and all of them are uploaded. chemlet is the file where execution should start. Any ideas for what to do?
    Thanks in advance.

    Either there is some version problem in applet. or the classfile might have some constant which is not getting referenced properly.
    might be in your chemlet file . use decompiler to open your class file and then check the line number 115 in your chemlet file to see what is the problem there.

  • Java Plugin Won't Run!!! HELP!!!!

    I installed 1.4 and it wouldn't run any of swing applets, so I uninstalled it, now I get
    Java Plug-in 1.4 Fatal Error
    Java Plug-in 1.3.1_01 cannot be located because values in the registry key
    HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Plug-in/1.3.1_01 is not found or is no longer valid.
    I have uninstalled ALL versions of the runtime and sdk and installed the 1.3.1_03. I STILL get the same error. I have searched through the registry and can not find any references to the 1.4. WHERE IS IT GETTING THAT, and how in the @*%& do I fix my machine!!!
    HELP!!!!!
    please email me at [email protected]

    This problem afflicted Firefox for me. I have JDK 1.3.1, J2SDK 1.4.2 and JDK 1.5.0 installed on my machine.
    I had recently installed the Oracle Enterprise Manager Console, and the issue started up after that install (thank you Oracle for adding your JRE references to the beginning of my Path Environment Variable).
    As recommended by the previous two responses, I removed the Oracle JRE entry (C:\Program Files\Oracle\jre\1.3.1\bin) from my Path Environment Variable and the problem has gone away (I also removed the C:\Program Files\Oracle\jre\1.1.8\bin entry for sanity's sake).
    I add this reply at this late date so that Googling the issue will also reference Firefox, since all previous articles that I've found only reference IE.

  • Installer scripts won't run

    Hi, I've just tried running Software Update on my iMac to install Safari 5.0.1. It downloaded it but stalled when running the installer scripts. I powered off the machine and restarted it, and there don't appear to be any issues with the system and I'm now using Safari 5.0.0 without problems. I run Software Update once a week and haven't had any such problems previously. Last night, Virus Barrier X6 also couldn't run its installer scripts on a weekly scheduled update, and I had to force quit the installer. My MacBook has run both of these successfully, just not my iMac.
    Can anyone help?
    Thanks

    Thanks, I know that is an option but I was more concerned that my iMac doesn't seem to want to run any installer scripts

  • VB Script won't run

    I'm having an issue with an application that uses a VBscript to install
    and hope someone can help me.
    It will work fine regardless where I put if you double click it, it will
    also work fine from a batch file if you double click the batch. It will
    not run correctly from either the Application Launcher or the command
    line. I have tried putting it in as a post launch script using the
    wscript engine, from the run line, I have also tried to use the
    cscript.exe all to no avail.
    When it is run any way other than double clicking directly on the vbscript
    or batch file you can see wscript.exe launch in the task manager but the
    CPU stay hung at 50%. No errors it just hangs.
    I put all the install files in the expected
    directory "c:\windows\Temp\3rdParty" along with the script and batch
    files. Below is the vb script, is there something in it causing this?
    I also included the command line that I tried using, this is the same line
    from the batch file. Also I have run other VBscripts from the command
    line this way. Any thoughts?
    Command line: c:\windows\system32\wscript.exe
    c:\windows\Temp\3rdParty\SetupLaunch.vbs
    VbScript:
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Dim strPackagePath : strPackagePath = WshShell.ExpandEnvironmentStrings("%
    SystemRoot%\Temp\")
    Dim strPackageSubdir : strPackageSubdir = "3rdParty"
    Dim installdir : installdir = WshShell.ExpandEnvironmentStrings("%
    SystemDrive%\Program Files\eEye Digital Security\Blink")
    Dim backuppath : backuppath = installdir
    Dim tmppath : tmppath = ""
    Dim newpath : newpath = ""
    Dim TristateFalse : TristateFalse= 0
    Dim strValue : strValue = ""
    Dim filesys, file, ts
    Const ForAppending = 8
    Const ForReading = 1
    Err.Clear
    ON ERROR RESUME Next
    Set filesys = CreateObject("Scripting.FileSystemObject")
    Set file = filesys.GetFile("settings.txt")
    Set ts = file.OpenAsTextStream( ForReading )
    Const HKEY_LOCAL_MACHINE = &H80000002
    Set oReg=GetObject("winmgmts:{impersonationLevel=imper sonate}!
    \\.\root\default:StdRegProv")
    oReg.GetStringValue
    HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","InstallP ath",strValue
    if strValue <> "" Then
    'Wscript.echo "Blink is already installed on this machine.
    Aborting installation..."
    Wscript.Quit
    End if
    'delete the remnant Blink folder
    If filesys.FolderExists( installdir ) Then
    filesys.DeleteFolder( installdir )
    End if
    'parse the MSI options file and see if the expanded paths are present
    Do While Not ts.AtEndOfStream
    if InStr(ts.ReadLine, "INSTALLDIR=") > 0 Then
    AlreadyModified = 1
    End if
    Loop
    if AlreadyModified = 0 Then
    'Append the expanded paths to the MSI configuration file
    (settings.txt)
    Set ts = file.OpenAsTextStream( ForAppending )
    ts.WriteLine("INSTALLDIR=" & installdir)
    ts.WriteLine("THIRDPARTY=" & strPackagePath & strPackageSubdir
    & "\eeyeremoteinstall.exe")
    ts.Close
    End If
    Dim nIndex
    nIndex = InStr(backuppath, "\")
    while nIndex > 0
    tmppath = Left(backuppath, nIndex)
    backuppath = Right(backuppath, Len(backuppath) - nIndex)
    newpath = newpath + tmppath
    If Not filesys.FolderExists(newpath) Then
    Set newfolder = filesys.CreateFolder(newpath)
    End If
    nIndex = InStr(backuppath, "\")
    Wend
    If Len(backuppath) > 0 Then
    newpath = newpath + backuppath
    If Not filesys.FolderExists(newpath) Then
    Set newfolder = filesys.CreateFolder(newpath)
    End If
    End If
    'create c:\windows\Temp1\3rdparty
    if filesys.FolderExists(strPackagePath) = 0 Then
    filesys.CreateFolder(strPackagePath)
    End If
    if filesys.FolderExists(strPackagePath & strPackageSubdir) = 0 Then
    filesys.CreateFolder(strPackagePath & strPackageSubdir)
    End If
    strPackagePath = strPackagePath + strPackageSubdir
    'get the current folder
    set file = filesys.GetFile("settings.txt")
    filesys.CopyFolder file.ParentFolder , strPackagePath
    'Stop and delete the eEye Remote Install Service if is running on the
    machine
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonat e}!
    \\.\root\cimv2")
    Set colServiceList = objWMIService.ExecQuery ("Select * from Win32_Service
    where Name='eEyeRmtInst'")
    For Each objService in colServiceList
    objService.StopService()
    objService.Delete()
    Next
    'Wscript.echo "Installing Blink. Please wait..."
    WshShell.Run "cmd /C start /wait " & chr(34) & "Installing Blink..." & chr
    (34) & " " & strPackagePath & "\Setup.exe /qn /Liom " & chr(34) &
    installdir & "\BlinkSetup.log" & chr(34) & " OPTIONFILE=" & chr(34) &
    strPackagePath & "\settings.txt" & chr(34), 0, true
    'Enable debugging for Blink components (do so only if instructed by the
    Support Department)
    'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blinksvc ",2
    'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blink",2
    'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blinkrm" ,2
    'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","cpupdate ",2
    ' Start the eEye Remote Install Service to finalize the deployment
    Set colServiceList = objWMIService.ExecQuery ("Select * from Win32_Service
    where Name='eEyeRmtInst'")
    For Each objService in colServiceList
    errReturn = objService.StartService()
    WScript.Sleep(30000)
    Next

    > I'm having an issue with an application that uses a VBscript to install
    > and hope someone can help me.
    >
    > It will work fine regardless where I put if you double click it, it will
    > also work fine from a batch file if you double click the batch. It will
    > not run correctly from either the Application Launcher or the command
    > line. I have tried putting it in as a post launch script using the
    > wscript engine, from the run line, I have also tried to use the
    > cscript.exe all to no avail.
    > When it is run any way other than double clicking directly on the
    vbscript
    > or batch file you can see wscript.exe launch in the task manager but the
    > CPU stay hung at 50%. No errors it just hangs.
    > I put all the install files in the expected
    > directory "c:\windows\Temp\3rdParty" along with the script and batch
    > files. Below is the vb script, is there something in it causing this?
    > I also included the command line that I tried using, this is the same
    line
    > from the batch file. Also I have run other VBscripts from the command
    > line this way. Any thoughts?
    > ______________________________________
    > Command line: c:\windows\system32\wscript.exe
    > c:\windows\Temp\3rdParty\SetupLaunch.vbs
    > ___________________________________
    >
    > VbScript:
    > ------------
    > Set WshShell = WScript.CreateObject("WScript.Shell")
    > Dim strPackagePath : strPackagePath = WshShell.ExpandEnvironmentStrings
    > SystemRoot%\Temp\")
    > Dim strPackageSubdir : strPackageSubdir = "3rdParty"
    > Dim installdir : installdir = WshShell.ExpandEnvironmentStrings("%
    > SystemDrive%\Program Files\eEye Digital Security\Blink")
    >
    > Dim backuppath : backuppath = installdir
    > Dim tmppath : tmppath = ""
    > Dim newpath : newpath = ""
    > Dim TristateFalse : TristateFalse= 0
    > Dim strValue : strValue = ""
    > Dim filesys, file, ts
    > Const ForAppending = 8
    > Const ForReading = 1
    >
    > Err.Clear
    > ON ERROR RESUME Next
    >
    > Set filesys = CreateObject("Scripting.FileSystemObject")
    > Set file = filesys.GetFile("settings.txt")
    > Set ts = file.OpenAsTextStream( ForReading )
    >
    > Const HKEY_LOCAL_MACHINE = &H80000002
    > Set oReg=GetObject("winmgmts:{impersonationLevel=imper sonate}!
    > \\.\root\default:StdRegProv")
    > oReg.GetStringValue
    > HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","InstallP ath",strValue
    >
    > if strValue <> "" Then
    > 'Wscript.echo "Blink is already installed on this machine.
    > Aborting installation..."
    > Wscript.Quit
    > End if
    >
    > 'delete the remnant Blink folder
    > If filesys.FolderExists( installdir ) Then
    > filesys.DeleteFolder( installdir )
    > End if
    >
    > 'parse the MSI options file and see if the expanded paths are present
    > Do While Not ts.AtEndOfStream
    > if InStr(ts.ReadLine, "INSTALLDIR=") > 0 Then
    > AlreadyModified = 1
    > End if
    > Loop
    >
    > if AlreadyModified = 0 Then
    >
    > 'Append the expanded paths to the MSI configuration file
    > (settings.txt)
    > Set ts = file.OpenAsTextStream( ForAppending )
    > ts.WriteLine("INSTALLDIR=" & installdir)
    > ts.WriteLine("THIRDPARTY=" & strPackagePath & strPackageSubdir
    > & "\eeyeremoteinstall.exe")
    > ts.Close
    >
    > End If
    >
    >
    > Dim nIndex
    >
    > nIndex = InStr(backuppath, "\")
    >
    > while nIndex > 0
    >
    > tmppath = Left(backuppath, nIndex)
    > backuppath = Right(backuppath, Len(backuppath) - nIndex)
    >
    > newpath = newpath + tmppath
    >
    > If Not filesys.FolderExists(newpath) Then
    > Set newfolder = filesys.CreateFolder(newpath)
    > End If
    >
    > nIndex = InStr(backuppath, "\")
    >
    > Wend
    >
    >
    > If Len(backuppath) > 0 Then
    >
    > newpath = newpath + backuppath
    >
    > If Not filesys.FolderExists(newpath) Then
    > Set newfolder = filesys.CreateFolder(newpath)
    > End If
    >
    > End If
    >
    > 'create c:\windows\Temp1\3rdparty
    > if filesys.FolderExists(strPackagePath) = 0 Then
    > filesys.CreateFolder(strPackagePath)
    > End If
    >
    > if filesys.FolderExists(strPackagePath & strPackageSubdir) = 0 Then
    > filesys.CreateFolder(strPackagePath & strPackageSubdir)
    > End If
    >
    > strPackagePath = strPackagePath + strPackageSubdir
    >
    > 'get the current folder
    > set file = filesys.GetFile("settings.txt")
    > filesys.CopyFolder file.ParentFolder , strPackagePath
    >
    >
    > 'Stop and delete the eEye Remote Install Service if is running on the
    > machine
    > Set WshShell = WScript.CreateObject("WScript.Shell")
    >
    > Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonat e}!
    > \\.\root\cimv2")
    >
    > Set colServiceList = objWMIService.ExecQuery ("Select * from
    Win32_Service
    > where Name='eEyeRmtInst'")
    >
    > For Each objService in colServiceList
    > objService.StopService()
    > objService.Delete()
    > Next
    >
    > 'Wscript.echo "Installing Blink. Please wait..."
    >
    > WshShell.Run "cmd /C start /wait " & chr(34) & "Installing Blink..." &
    chr
    > (34) & " " & strPackagePath & "\Setup.exe /qn /Liom " & chr(34) &
    > installdir & "\BlinkSetup.log" & chr(34) & " OPTIONFILE=" & chr(34) &
    > strPackagePath & "\settings.txt" & chr(34), 0, true
    >
    > 'Enable debugging for Blink components (do so only if instructed by the
    > Support Department)
    >
    > '
    > 'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blinksvc ",2
    > 'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blink",2
    > 'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blinkrm" ,2
    > 'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","cpupdate ",2
    >
    > ' Start the eEye Remote Install Service to finalize the deployment
    > Set colServiceList = objWMIService.ExecQuery ("Select * from
    Win32_Service
    > where Name='eEyeRmtInst'")
    >
    > For Each objService in colServiceList
    > errReturn = objService.StartService()
    > WScript.Sleep(30000)
    > Next
    > _________________________________________________
    >
    Never mind found the problem. For some reason it was not searching the
    path, had to put the path to the setting.txt file in the script explicitly.

  • Java app won't run after updating JavaApplicationStub

    Before updating to Lion, I had JDiskReport installed.
    After updating to Lion, it says it can't run Power PC app.
    I installed Java, and replaced the JavaApplicationStub in the JDiskReport.app/Contents/MacOS with the Lion version.
    Still when I try to run JDiskReport, Lion tells me it can run a PowerPC app.
    Is there an attribute or something I need to clear so that it will run JDiskReport?

    I also can confirm that replacing JavaApplicationStub from where it's located in Lion: (/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApp licationStub) and copying the file to the package contents of Jdisk report works.
    MPMeyer wrote:
    1.  I redownload the app, and dropped into Applications
    2.  make sure that you have Java installed on Lion, go to  apple site to install it.
    3.  Open the Applications folder in Finder, find the app and choose show package contents.
    4.  Find JavaApplicationStub,
    /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaAppli cationStub
    5.  Copy it into the Contents/MacOS folder of the Application from step 4.
    I had to re-download the app, since there must be some kind of attribute set on the app that does not let it run, even after I updated the JavaApplicationStub.

  • Automator shell script won't run

    Hi,
    I'm putting together a little Automator app that opens whenever I double-click on an .exe file and opens that file with wine. So far, however, I've had little luck. I've created a shell script automator app with the following script:
    for f in "$@"
    do
              /usr/local/bin/wine "$f" &
    done
    Outside of Automator the script works just fine. However, as an Automator app it doesn't work at all; nothing happens, even though Automator tells me that that the workflow was successfully completely. What am I doing wrong?
    Thanks,
    Alex

    Automator uses /bin/bash as the shell.
    Running your script interactive has a different environment from running under Automator.  For one thing, stdin/stdout/stderr are pointing to a tty (actually a pseudo device /dev/pty).  Perhaps this is affecting how Wine us behaving.
    Other issues might be where your current working directory is located, or some environment variable (such as PATH) that is not the same under Automator that exists when running interactively.
    You might try capturing things like
    ( printenv
      pwd
      id -a
      echo "\$# $#"
    ) >/tmp/automator.environment

Maybe you are looking for

  • My serial number is not valid?what do i do?

    my serial number is not valid?what do i do?

  • Zorder of all controls

    How do you rearrange the zorder of all controls on a form? I once knew but forgot.  This is not the same as changing the Tab Order. Solitaire

  • Can't see my mac in Find My Mac, even with it enabled.

    I have a C2D Macbook Pro, Late 2006 Model. I have successfully upgraded to the newest version of leopard, and have enabled all the settings of iCloud with no error messages. Problem is, when i go to look at my iCloud account in a browser and look for

  • Deleting frames with UPK developer client 12.1.0.1

    when deleting frame(s) with UPK client 12.1.0.1 (or 12.1), it does not give you a warning message to confirm if you want to delete the frame. Is there a setting for this I am missing or it is by design? thanks and regards, SD

  • Item bounded cropping @ scan to network folder

    Hi, When scanning from HP scan utility there's an option to crop the scanned items by boundaries (like in case where you scan multiple photos in 1 scan and want them being crooped to multiple files). When scanning from the printer directly to network