Script hanging

Hi,
Im trying to make a java applet that downloads a file to a specific folder. I have managed to get the download working apart from the program hangs when downloading the file. From a little bit of searching i guess you have to use threads? But i have tried to use them but the program still hangs.
This is my first attempt at java program and any help or ideas where im going wrong would be appreciated.
This is my code
public class eccedownload extends JApplet implements ActionListener {
    private JPanel pane = null;
    private JScrollPane scrolling = null;
    private JTextPane fileBox = null;
    private JTextField tfFilename = null;
    private JButton butLoad = null;
    private final String LOAD = "load";
    private String userid;
    private String userfolder;
    private String downloadfile;
    private JProgressBar progressBar;
    public void init() {
        //Get User ID
        userid  = getParameter("id");
        //Find Documents Path
        JFileChooser chooser = new JFileChooser();
        FileSystemView view = chooser.getFileSystemView();
        userfolder = view.getDefaultDirectory()+" ";
        if(userfolder.startsWith("/")){
            userfolder=userfolder.trim()+"/eccedownloader/";
        }else{
            userfolder=userfolder.trim()+"\\eccedownloader\\";
        //Find if Folder Exists and Create if not found
        File f=new File(userfolder);
        if(f.isDirectory()==false) {
            f.mkdirs();
        //Grab File Name From Server
        try {
            URL fle = new URL("http://sandbox/eccedownload/java/filedownload.asp?id="+userid);
            BufferedReader in = new BufferedReader(
            new InputStreamReader(fle.openStream()));
            String inputLine;
            downloadfile="";
            while ((inputLine = in.readLine()) != null)
                downloadfile=downloadfile+inputLine;
            in.close();
            downloadfile.trim();
        }catch (Exception e) {
           e.printStackTrace();
        try {
            jbInit();
        } catch(Exception e) {
            e.printStackTrace();
    private void jbInit() throws Exception {
        pane = new JPanel();
        pane.setBounds(new Rectangle(0, 0, 500, 325));
        pane.setLayout(null);
        pane.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
        pane.setBackground(new Color(221, 194, 219));
        fileBox = new JTextPane();
        fileBox.setText(downloadfile);
        fileBox.setEditable(false);
        scrolling = new JScrollPane(fileBox);
        scrolling.setBounds(new Rectangle(16, 65, 295, 225));
        tfFilename = new JTextField();
        tfFilename.setText(userid);
        tfFilename.setBounds(new Rectangle(16, 23, 206, 29));
        butLoad = new JButton();
        butLoad.setBounds(new Rectangle(231, 23, 80, 30));
        butLoad.setText("Load");
        butLoad.setActionCommand(LOAD);
        butLoad.addActionListener(this);
        progressBar = new JProgressBar(0,100);
        progressBar.setBounds(new Rectangle(16, 65, 295, 225));
        progressBar.setValue(0);
        progressBar.setStringPainted(true);
        pane.add(progressBar);
        pane.add(scrolling);
        pane.add(tfFilename);
        pane.add(butLoad);
        setContentPane(pane);
        pane.show();
        download(downloadfile, userfolder+"test.iso");
    public void download(String address, String localFileName) {
        RandomAccessFile file = null;
        InputStream stream = null;
        OutputStream out = null;
     URLConnection conn = null;
     InputStream  in = null;
     try {
            URL url = new URL(address);
            out = new BufferedOutputStream(
            new FileOutputStream(localFileName));
            conn = url.openConnection();
            in = conn.getInputStream();
            byte[] buffer = new byte[1024];
            int numRead;
            long numWritten = 0;
            int contentLength = conn.getContentLength();
            while ((numRead = in.read(buffer)) != -1) {
                out.write(buffer, 0, numRead);
                numWritten += numRead;
                progressBar.setValue((int) (numRead/contentLength)*100);
        } catch (Exception exception) {
            exception.printStackTrace();
     } finally {
            try {
          if (in != null) {
                    in.close();
          if (out != null) {
                    out.close();
            } catch (IOException ioe) {}
    public void actionPerformed(ActionEvent e) {
        if (e.getActionCommand().equals(LOAD)) {
            //download(downloadfile, userfolder+"test.iso");
}

coxeh wrote:
Hi,
Im trying to make a java applet that downloads a file to a specific folder. I have managed to get the download working apart from the program hangs when downloading the file. From a little bit of searching i guess you have to use threads? But i have tried to use them but the program still hangs.I can't see that you have used threads at all. You are still executing within the AWT thread.
Kaj

Similar Messages

  • Powershell WUA script hangs on calling Update() and Install()

    I am trying to write a script that will use the WUA API to install certain updates. I have written many Powershell scripts, but this is my first time using COM objects, or interacting with the WUA API. I have used the code from this article:
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa387102(v=vs.85).aspx I added in my own code to filter the available updates to a list of updates that I want to install. Everything is working fine, except the script hangs after the calls to both
    Download() and Install().
    When I call Download(), the updates are successfully downloaded, but the script will not continue on. The cursor just sits there blinking. If I monitor WindowsUpdate.log, waiting until the updates are finished downloading, return to the Powershell window,
    and press the <Enter> key, the script continues on. The same happens with my call to Install().
    Here are the sections of code at issue:
    'Downloading updates...'
    $downloader = $UpdateSession.CreateUpdateDownloader()
    $downloader.Updates = $updatesToDownload
    $downloader.Download()
    "Done"
    ----------snip------------
    "Installing Updates..."
    $Installer = $UpdateSession.CreateUpdateInstaller()
    $Installer.Updates = $updatesToInstall
    $results = $Installer.Install()
    "Done"
    In neither case is the word "Done" displayed until after I hit <Enter>. The rest of the code is just as it is on the MSDN page linked above (the Powershell version). Why is this happening?

    I think I have found the solution to my problem.
    I changed this line:
    $downloader.Download()
    to this:
    $dresult = $downloader.Download()
    Now the script runs. Apparently, if I try to ignore the return value of that function it clobbers something. I am used to just ignoring return values when I don't want them. (I know that ignoring return values is not a good practice, but this script is not
    intended to be robust. It will only be used occasionally, and only by me.)
    Thank you for the link, jrv. It got me going in the right direction.

  • Script hangs when reading output of command inside vbscript

    Following code hangs  after the line "4 Go" but only on windows 2003.
    Set objShell = CreateObject("WScript.Shell")
    wscript.echo "2 Go"
    backupstate = "wmic PATH WIN32_SERVICE where (name='vss') GET state"
    wscript.echo "3 Go"
    Set objExecObject = objShell.Exec(backupstate)
    wscript.echo "4 Go"
    With objExecObject
    Do While .Status=0
    Wscript.Sleep 10
    Do While Not .StdOut.AtEndOfStream
    strText = .StdOut.ReadLine()
    If Not .StdErr.AtEndOfStream Then
    .StdErr.ReadLine
    End If
    Loop
    Loop
    End With
    Same code works perfectly fine on Windows 2008 and above.
    Any suggestion?
    -KAKA-

    Your script hangs (or more precisely: it keeps looping) because the Exec method of of the Shell object is notoriously unreliable when it comes to detecting the status of the executable it invokes. You can easily find out by placing the line
    wscript.echo "Status=" & objExecObject.status
    inside your loop. This only works properly if you run the script with cscript.exe.
    As Frederik says. :)
    To explicitly answer why that MSKB article suggests continually emptying the error buffer, it's because doing so is better than
    not doing so.
    Another workaround I use in preference to embedding the console tool within a WSH script is to factor out the tool so I don't have to manipulate it internally; instead I pipe the output in to the script.
    For example, suppose your script is named ProcessWmicOutput.vbs. within the script you would do something like this:
    data = WScript.Stdin.ReadAll
    to get all the data from wmic into a variable named data . Alternatively, you would do something like this, line by line (I'm making the script just relay StdOut from wmic):
    Do While Not WScript.StdIn.AtEndOfStream
    WScript.StdOut.WriteLine WScript.StdIn.ReadLine()
    Loop
    To run the script, getting wmic data, you would do this at a command prompt:
    wmic PATH WIN32_SERVICE where (name='vss') GET state | cscript ProcessWmicOutput.vbs

  • Root.sh script hangs while starting ohasd on OEL

    Hi
    I have installed 11g Oracle grid infrastructure on OEL R5 U6
    I am having an issue when it comes to running the root.sh script
    The script runs fine until it gets to the part where it tries to start ohasd
    Adding daemon to inittab
    CRS-4123: Oracle High Availability Services has been started
    ohasd is startingOnce it reaches this point it hangs. It's been at this part of the root.sh script now for over an hour. I cannot move the mouse or create new ssh sessions. It has completely hung the machine.
    I have ensured that that hosts file has no entries for the host name
    And there does not seem to be any errors in the logs
    Any Ideas on where I can start looking to fix this issue?
    Thanks
    G.
    Edited by: Grahambo on Aug 18, 2011 9:35 AM
    Edited by: Grahambo on Aug 18, 2011 9:35 AM

    Here is the last entries in the Log:
    /oracle/app/11.2.0/grid/log/server004n0/ohasd/ohasd.log
    2011-08-18 17:02:28.116: [  CRSOCR][1916807488] Multi Write Batch processing...
    2011-08-18 17:02:28.404: [UiServer][1929414976] Container [ Name: ORDER
            MESSAGE:
            TextMessage[CRS-2676: Start of 'ora.diskmon' on 'server004n0' succeeded]
            MSGTYPE:
            TextMessage[3]
            OBJID:
            TextMessage[ora.cssd]
            WAIT:
            TextMessage[0]
    2011-08-18 17:02:35.986: [  CRSOCR][1916807488] Multi Write Batch done.
    2011-08-18 17:02:44.397: [  CRSCCL][1870641472]Obtained GPnP Profile.
    2011-08-18 17:02:44.699: [  CRSCCL][1870641472]USING CLSC ============
    2011-08-18 17:02:52.779: [ default][1870641472]clsu_get_private_ip_addr: Calling clsu_get_private_ip_addresses to get first private ip
    2011-08-18 17:02:52.779: [ default][1870641472]Check namebufs
    2011-08-18 17:02:52.780: [ default][1870641472]Finished checking namebufs
    2011-08-18 17:02:52.782: [    GPnP][1870641472]clsgpnp_Init: [at clsgpnp0.c:404] gpnp tracelevel 3, component tracelevel 0
    2011-08-18 17:02:52.782: [    GPnP][1870641472]clsgpnp_Init: [at clsgpnp0.c:534] '/oracle/app/11.2.0/grid' in effect as GPnP home base.
    2011-08-18 17:02:54.744: [    GPnP][1870641472]clsgpnp_InitCKProviders: [at clsgpnp0.c:3866] Init gpnp local security key providers (2) fatal if both fail
    2011-08-18 17:02:54.744: [    GPnP][1870641472]clsgpnp_InitCKProviders: [at clsgpnp0.c:3869] Init gpnp local security key proveders 1 of 2: file wallet (LSKP-FSW)
    2011-08-18 17:02:54.744: [    GPnP][1870641472]clsgpnpkwf_initwfloc: [at clsgpnpkwf.c:398] Using FS Wallet Location : /oracle/app/11.2.0/grid/gpnp/server004n0/wallets/peer/
    2011-08-18 17:02:54.744: [    GPnP][1870641472]clsgpnp_InitCKProviders: [at clsgpnp0.c:3891] Init gpnp local security key provider 1 of 2: file wallet (LSKP-FSW) OK
    2011-08-18 17:02:54.744: [    GPnP][1870641472]clsgpnp_InitCKProviders: [at clsgpnp0.c:3897] Init gpnp local security key proveders 2 of 2: OLR wallet (LSKP-CLSW-OLR)
    [   CLWAL][1870641472]clsw_Initialize: OLR initlevel [70000]
    2011-08-18 17:02:54.745: [    GPnP][1870641472]clsgpnp_InitCKProviders: [at clsgpnp0.c:3919] Init gpnp local security key provider 2 of 2: OLR wallet (LSKP-CLSW-OLR) OK
    2011-08-18 17:02:54.745: [    GPnP][1870641472]clsgpnp_getCK: [at clsgpnp0.c:1950] <Get gpnp security keys (wallet) for id:1,typ;7. (2 providers - fatal if all fail)
    2011-08-18 17:02:54.745: [    GPnP][1870641472]clsgpnpkwf_getWalletPath: [at clsgpnpkwf.c:498] req_id=1 ck_prov_id=1 wallet path: /oracle/app/11.2.0/grid/gpnp/server004n0/wallets/peer/
    2011-08-18 17:02:54.758: [    GPnP][1870641472]clsgpnpwu_walletfopen: [at clsgpnpwu.c:494] Opened SSO wallet: '/oracle/app/11.2.0/grid/gpnp/server004n0/wallets/peer/cwallet.sso'
    2011-08-18 17:02:54.758: [    GPnP][1870641472]clsgpnp_getCK: [at clsgpnp0.c:1965] Result: (0) CLSGPNP_OK. Get gpnp wallet - provider 1 of 2 (LSKP-FSW(1))
    2011-08-18 17:02:54.758: [    GPnP][1870641472]clsgpnp_getCK: [at clsgpnp0.c:1982] Got gpnp security keys (wallet).>
    2011-08-18 17:02:54.763: [    GPnP][1870641472]clsgpnp_getCK: [at clsgpnp0.c:1950] <Get gpnp security keys (wallet) for id:1,typ;4. (2 providers - fatal if all fail)
    2011-08-18 17:02:54.763: [    GPnP][1870641472]clsgpnpkwf_getWalletPath: [at clsgpnpkwf.c:498] req_id=1 ck_prov_id=1 wallet path: /oracle/app/11.2.0/grid/gpnp/server004n0/wallets/peer/
    2011-08-18 17:02:54.771: [    GPnP][1870641472]clsgpnpwu_walletfopen: [at clsgpnpwu.c:494] Opened SSO wallet: '/oracle/app/11.2.0/grid/gpnp/server004n0/wallets/peer/cwallet.sso'
    2011-08-18 17:02:54.771: [    GPnP][1870641472]clsgpnp_getCK: [at clsgpnp0.c:1965] Result: (0) CLSGPNP_OK. Get gpnp wallet - provider 1 of 2 (LSKP-FSW(1))
    2011-08-18 17:02:54.771: [    GPnP][1870641472]clsgpnp_getCK: [at clsgpnp0.c:1982] Got gpnp security keys (wallet).>
    2011-08-18 17:02:54.771: [    GPnP][1870641472]clsgpnp_Init: [at clsgpnp0.c:837] GPnP client pid=18394, tl=3, f=3Edited by: Grahambo on 18-Aug-2011 12:08

  • Report script hanging

    Hi Gurus,
    The issue is I created two report scripts one using Query designer and the other manually.
    I'm creating a report script to export current period data against ASO.
    I know the optimization basics against BSO.
    Placing last dim fisrt and all!!
    coming to the ASO......
    my Report script is hanging at the time of validation itself!!!
    it is showing when there are some errors in the report script.
    I don't see any thing but EAS hanging when i thought that they were no errors.
    the idea is to export the level0 data and relaod with #mi values to load new set of data for the current period.
    What are the steps to follow to optimize it in ASO.
    I know we need to increase agg chache, retrieval buffer, sort retrieval..!!
    what next!!
    I know we can also use slices to get rid of previous data (deleting old slice) and creating new one.
    but currently we are implementing this way!!
    suggestions please....
    Thanks,
    Jeeth
    Edited by: Jithendra on Mar 15, 2011 10:59 AM

    Hi Robb,
    I'm in ASO!! so calculations are not possible.
    here is one more question!!! may be I need to post it seperately. (but I don't want my questions unanswered :) )!!
    I tried to do level 0 export from ASO and it failed telling that the member combinations exceeded 2^64 (this is part of our cube!! want it in column format).
    As per my knowledge, the option I have are.
    1. chop the report script in to smaller report scripts and run it (may be I need to chop like 100 to 1000 times not sure!!)
    2. will MDX query effectively handles the situation (worth trying it)??
    3. is the CDF export meant for ASO?
    4. StarAnalytics (is this the better option) ??
    Pls suggest!!
    I will now start writing MDX!!....will all let you know!!
    BTW the hanging is because ...I forgot to use logical operator after LINK function... after fixing that the report got validated.
    Thanks,
    Jeeth
    Edited by: Jithendra on Mar 17, 2011 11:20 PM
    Edited by: Jithendra on Mar 18, 2011 11:16 AM

  • Mail command in script hangs and does not release control to calling script

    Hello folks,
    I am running in a situation which I haven't seen before.
    Main script calls function which executes another script.
    No matter which statement is the last in called script, it hangs on the last line and does not return control to main script.
    I tried to call another script not within the function - it is the same result.
    Can you help please.
    Below example of code:
    --- Main script:
    function checksum
    set -x
    /sybdump/ukgoald/scripts/egrep_expr1
    ##MAIN --- call to script script execution which runs mail command
    checksum
    ---- trace execution of called script:
    + read A B RF_FULL_NAME
    + print
    + /usr/bin/mailx -s Checksum Report [email protected]
    + 0< /sybdump/ukgoald/dump1/egrep_expr1.log3
    + print
    + return 0
    Edited by: ge**** on Dec 14, 2010 11:29 PM

    Hello folks,
    I am running in a situation which I haven't seen before.
    Main script calls function which executes another script.
    No matter which statement is the last in called script, it hangs on the last line and does not return control to main script.
    I tried to call another script not within the function - it is the same result.
    Can you help please.
    Below example of code:
    --- Main script:
    function checksum
    set -x
    /sybdump/ukgoald/scripts/egrep_expr1
    ##MAIN --- call to script script execution which runs mail command
    checksum
    ---- trace execution of called script:
    + read A B RF_FULL_NAME
    + print
    + /usr/bin/mailx -s Checksum Report [email protected]
    + 0< /sybdump/ukgoald/dump1/egrep_expr1.log3
    + print
    + return 0
    Edited by: ge**** on Dec 14, 2010 11:29 PM

  • Simple script hangs photoshop

    One computer that I'm working on Dell Optiplex 960 with 4gb RAM is haning when I try and run a script.  I created just a simple on to resize and image and it won't do that.  Any ideas on what to look for to get this computer in line?

    One issue I just noticed was that I didn't define the units.  However, even without a resize, the orignial script was hanging when trying to save.  It would not run the PS supplied Image Processor script either.  Will check it out again today.  We've changed a lot of the permissions on the computer, so maybe it will work now.  I've got another computer running the same script for a time-lapse camera setup, so I might just use that computer to do all the processing and this computer that is giving me issues just to capture the image and save it to a server.

  • Startsap script hangs

    Hi,
    We have deployed EP6.0 (NW04) SP12 on AIX running on oracle database.
    The Portal server is in implementation phase and is running fine without any issues from past 2 months.
    Now when we try stoping the portals or starting the portals with stopsap or startsap scripts.
    It hangs on the step "Checking <dbsid> database" and doesnt do anything.
    we tried debugging the startsap and stopsap script to find out where actually it is hanging.
    There is a function in the scripts called "set_jdb_running" it hanging there. If i am commenting the function in the script its starting SCS and J2EE instance.
    Please clues on this.
    Thanks
    Junaid.

    Just to check - are you logged on as sidadm, as all the relevant variables such as where the database is are set up for this user.
    Paul

  • Apple script hang up

    When i run an applescript it does it's job (runs a shell script) but then hangs up and i have to force quit it. Is there a shell script or apple script i could run to tell it to force quit without knowing the number of the running process? This is as i would like to not have to find out the process id number each time i run the script as it changes each time...
    thanks - 7;^')

    There are two elements here.
    First, AppleScript is, indeed, waiting for the process to finish before ending itself, so the first step would be to have AppleScript not wait for the process to end and return control immediately.
    In order to do that you need to add some addition elements to the shell command, specifically " > /dev/null 2>&1' before the trailing &, like:
    <pre class=command>do shell script "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.a pp/Contents/MacOS/ScreenSaverEngine -background >/dev/null 2>&1 &"</pre>
    These additional elements suppress the output of the command (which you don't care about anyway) and allows AppleScript to continue while the shell command continues to execute in the background.
    For the kill element there is an additional part, echo $!, you can use that returns the PID of the command just executed. You can store this and use it later to kill the process.
    This example launches the screensaver for one minute, then kills it.
    set myPID to do shell script "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.a pp/Contents/MacOS/ScreenSaverEngine -background &> /dev/null & echo $!"
    delay 60
    do shell script "kill " & myPID
    You could also use killall, but since this kills processes by name, not PID, you run the risk of killing other processes at the same time.

  • Shell script abort execution if script hangs

    I have a shell script that runs every minute and runs a script against the db. Like this …
    sqlplus user/pass << EOF
    @@myscript.sql
    exit;
    EOF
    There is a possibility that my script may hang and I dnt want a hanging process on linux server as this may build up every minute and kill the server. How can I set my script to terminal if it can’t execute myscript.sql after 5 minutes?
    Thank you!

    sybrand_b wrote:
    Just delete the script and replace it by a stored procedure which runs through dbms_job or dbms_scheduler.
    We are in the 21st century. Not in 1973.
    Sybrand Bakker
    Senior Oracle DBAsorry not very good with plsql ,is it possible to do it in shell script? :)

  • Script hangs on menu step

    I've got a rather large script, but having trouble with one new section.  We calculate the expected wait time, create a variable for a prompt to play a specific announcement, and offer voicemail (press 1).  If they don't press 1, back on hold, wait X seconds, repeat, etc.
    It loops through just fine about 30 times, but then it hangs on the Menu step.  No prompts, no hold music.  Doing a debug, you see it just stop on the Menu object.  No errors show up in the debug output.
    We shouldn't be hitting the global max steps (it would terminate in that case right?).  Is there some other counter that could be hanging?
    UCCX 8.0(2) SU2.
    Thanks for looking...
    Tom

    We found the problem.  We tried changing the max steps to 2000, and it exhibited the same behavior at the same point.  It would loop through a few times, but always stop at this Menu step (even through it had previously looped through fine).
    So in testing I re-created another UCCX Application, same script.  I couldn't reproduce the problem on this application, but I could on my original.  So I started to focus on the trigger.  Turns out my production trigger had
    Override Media Termination = YES.  That worked fine for all our other applications.  But for this particular one it was causing a problem.  Setting Override Media Termination = NO fixes the problem. 
    I opened a TAC case and they confirmed the expected behavior should be the same either way.  So this may be a defect.  But because we're running an old version they didn't want to investigate a defect without upgrading first -- which is on our radar but not right now.  So the workaround is fine. 

  • Script hangs in rlogin session but works works find from console

    Hi Every one,
    I got a strange situation here. I got a script which disable, enable some database activities and lot more in Solaris 7. Every step it done on this script has some out put such as "enabled successfully" or disable succussfull and etc.
    recently i tried to run this script from rlogin and it hanged. Once I logged in via console then it finished successfully with out any issues. I never had a chance to check this again.
    Any idea for this behaviour?

    I just had a thought about this. I tried replicating data from my Test 5.2 server that is failing, to my sandbox 11g server that is successfully receiving replication from my sandbox 5.2 server.
    This fails with the same error message, so I believe my config error is on 5.2, but I still have no idea where.

  • When I select anything the mac "beachball' appears, sugesting a script hanging?

    After updating my Mac OS on my Mac mini I've started to get the Mac 'beachball', suggesting a problem is occuring, browsing is slowed and sometimes hangs. I've just updated to Lion OS in the hope that the problem disappeared, but it didn't. My final resort was to uninstall Firefox and reinstall it, unfortunatly the problem is still there.
    The problem occurs with Macs Safari browser, but not Googles Chrome browser. I suspected java or some other add on. Looking on the web this is a common problem on Safari, I was hoping it wasn't on Firefox. Any suggestions would be appreciated.
    B Bott

    What you see in iTunes is a database list which also contains unseen information as to which file iTunes should play on your computer when you click on a track.  Usually those files are in folders inside your iTunes > Media folder.  When iTunes asks you to find a file say yes and then guide it to the actual file you want it to play in your media folder.  It should then asks if you want it to find others and will re-scan the series of folders to rebuild the links.  If you cannot find the file on your computer then you will have to restore from a backup.

  • WDA: ZCI form with Web script hang up

    Dear gurus,
    we use interactive form in a WDA application, and we set the layout to ZCI, then insert the Web script in sfp.
    then we run the WDA application,the form will not displayed, and we noticed that in the windows performance mornitor there is a  adobe reader thread keep growing and growing ,occupy more and more memory.
    i think there must be some endless loop in the webscript, but i dont know how to solve that.
    could you please give me some hints on that?
    br.
    zj

    Hi,
    Does your form based on DDIC interface or XML interface ?

  • Script hangs if Photoshop CC minimized

    Encoutered a strange issue that my script fails to terminate if I minimize Photoshop while script running. The script itself seems to do everything, but the dialog window frame stays on screen. I.e. even the dialog window content is cleared, but the title bar and window frame stays. My finalization for the dialog is just to call window.close(), anything else I should do? Also CS6 seems unaffected but both versions of CC are.
    Anyone hit something like this, any ideas?

    Matias Kiviniemi
    do you can show us your script?
    How do you start your script if Photoshop is minimized? With double click in your explorer?
    Perhaps the script works if Photoshop isn't minimized. And perhaps you could try something like this?
    app.bringToFront();
    Regards

Maybe you are looking for

  • Can I move my CS5.5 software to a new computer?

    I own a copy of Creative Suite 5.5 Production Premium, and am going to be getting a new computer soon.  Will I be able to install my copy of CS 5.5 on my new machine?  Also:  can I have a single copy of CS 5.5 installed simultaneously on both my desk

  • Error message when syncing ipod classic 80 GB

    After I connect my ipod to itunes and I try to sync it, an error message pops up saying "The ipod cannot be synced. An unknown error occurred (-48)." What does that mean? Is there any way to fix this without having to restore the ipod?

  • Macbook pro 13" c2d (2010) vs current i7 macbook air13"

    hey everyone, i currently own a 2.4ghz core 2 duo 13" macbook pro (2010) and im thinking of replacing it with the newest mac book air. i use photoshop and adobe lightroom for photo editing. i also am learning final cut pro. my intent is to not have t

  • I can't get the tv shows to play... just getting a black screen.

    I can't get the tv shows to play... just getting a black screen. HELP!!!!!

  • Bluetooth Help

    I'm sure this issue has been posted in here already, but I'm sick of looking for it and am getting irritated with this issue.  I have had the 8310 for a couple of months now, and love the phone.  My wife decided to get the same phone yesterday and we