TRY statement locks up when trying to mount

When I run this this script with the the wrong password or something.
It gets hung up. How do I fx or work around this?
[code]
try
mount volume "afp://name:[email protected]/volume"
end try

This kinda works but still gets locked up when the server address is incorrect.
[code]
set username to "handell_name"
property pass : "handell_password"
property network_share1 : ""
property network_share2 : ""
property domain : ""
property server : "172.34.22.777"
property sharedirectory : "volume_name"
tell application "Finder"
if pass is "" then
set dialog_1 to display dialog "Please enter your password:" default answer "" with hidden answer
set the pass to the text returned of dialog_1
end if
set network_share1 to "afp://" & domain & username & ":" & pass & "@" & server & "/" & sharedirectory
if not (exists network_share1) then
mount volume network_share1
else
eject network_share1
mount volume network_share1
end if
end tell

Similar Messages

  • Photoshop CS3 locks up when trying to open an EPS file

    Hello everyone. I have a problem with CS3 locking up when trying to open an EPS file. The files were created in Quark 4.0. Not sure if it has anything to do with my new computer, which has Microsoft XP 64 bit. There's another computer in my office which has CS4 that can open these files. Please help..!! Thank you.

    Try installing a PostScript printer on your XP64 system. For some reason this often seems to fix issues with EPS handling...
    Mylenium

  • ITunes (10.5.2.11) locks up when trying to download from iTunes U site Madingley Lectures.

    iTunes (10.5.2.11) locks up when trying to download from iTunes U site Madingley Lectures. The problem is repeatable on two different PCs running the same version of iTunes. I never previously had problems downloading presentations from this site. Any ideas?
    Both PCs are running Windows 7 fully up to date with patches.
    Paul

    Duncan,
    I successfully downloaded the latest edition by going to the Store area. It took around 10 minutes. iTunes behaved fine and indicated the progress of the download.
    However when I try to download another lecture via the iTunes U option within iTunes, the software freezes.
    There is no progress bar and I can't change focus within iTunes. The only option I have is to kill the process from the Task Manager.
    The lockup occurs almost immediately after I click on the Get button.
    In previous months the downloads worked fine.
    Thanks for your assistance

  • After the latest OS update, Safari locks up when trying to flip back to the previous page

    After the latest OS update, Safari locks up when trying to flip back to the previous page using the two finger sweep.

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

  • My ipad locked up when trying to send a large video file. I tried to turn it off and it's stuck. What so I do?, My ipad locked up when trying to send a large video file. I tried to turn it off and it's stuck. What so I do?

    My ipad 2 has locked up when trying to send a large video file. What do I do? Is there a reset button.
    Thank you

    Assuming that it's not still trying to send the video, then you could do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Itunes locks up when trying to import CD

    My itunes software locks up when trying to import a CD. Specifically, it will import 1 full CD then lock up when trying to access the artwork. I went into "properties" and stopped the software from looking for artwork, rebooted the machine and was able to import 1 CD, then it would not recognize the next one. I tried 3 different CD's and none of them worked. I am running the most recent version of itunes. Any thoughts?

    Help! I have the same problem! I am running Windows XP SP3 and Itunes 8.0.2.20. I imported about a dozen cd's and then the imports started locking up the whole system. I had to power the pc off to get things running again. I have two cd drives installed and both fail. I tried disconnecting the network cable, and it still locked up. Any ideas??

  • After Effects CS6 locks up when trying to use Preferences sub-menu

    I have an issue with AE "freezing" or locking-up when trying to use any of the sub-menu items under preferences. I have to shut down with task manager to regain control. I have a wintel PC with 8 gig of RAM and 2 TB of disk and a quad-core, don't think any of those are an issue. AE is the only problem child in this entire suite. Any help/guidance is deeply appreciated. Thank you in advance for your time and effort.
    Sincerely,
    Vidmist

    1360 x 768.
    That doesn't meet the system requirements and I think it's safe to say thatr this is the reason for the crash - the program is trying to draw the preferences panel in an invalid area since it cannot deal with the too small screen resolution properly. Increase the screen res and everything will probably work.
    Mylenium

  • CS3 extended locks up when trying save as png

    This just started happening and only locks up when I try to save as a png. works on all else. Can anyone help me!!!

    Try to reset preferences, as per the FAQ folder at the top of the forum list.

  • TS1424 I am getting a "your account is temporarily unavailable, please try again later" message when trying to download an app?

    When trying to download a new app, I get a "account temporarily unavailable, please try again later" message. Any ideas?

    Welcome to the Apple community.
    There seems to be rather more of this type of issue being reported currently, than there normally is, there may well be a problem with the servers. I would be inclined to wait a while, then try again later.

  • HT4061 My Iphone 4s locked up when trying to update to the latest software. It is asking me to restore the phone before continuing. I don't want to do this as I will loose all my info. Can u help?

    My phone has locked up when downloading the latest software. it is asking me to restore my phone, which if I do I will loose all contacts. Can u hekp?

    If it's asking you to restore it then it's already too late and you've lost it.

  • GUI locks up when trying to read output from server

    I have a client built in MVC fashion and have two GUI views. One view is for output from the server and input from the keyboard. The other view is for changing connection settings and starting the conection. The problem is when I make the call to connect from the connection GUI it is able to connect and set up the streams but both GUIs lock up once I start trying to output the text received from the server. The strange thing is that when I call these methods just from the Model and not via the GUI and its actionListener the whole thing works. I think it may have something to do with the loop locking up the GUI but don't how to resolve this.
    public void monitorServer()
    try
    char inputChar = (char)fromServer.read();
    while (socket.isConnected()==true && inputChar >-1 )
    inputChar = (char)fromServer.read();
    if ( ( (inputChar >= '0') && (inputChar <= 'z') )
    ||(inputChar == '\n')||(inputChar == '\r')
    ||(inputChar == ' ') )
    String tempString = (""+inputChar);
    mv.addText(tempString);
    catch(IOException ioException)
    JOptionPane.showMessageDialog(null,
    "Error: Failed to read message. Corrupt data sent by server",
    "Connection Error", JOptionPane.ERROR_MESSAGE);
    mv.addText("\nMessage not read.\n");
    The code above is the bot that screws it all up. mv is the other view that it is outputting the text to.
    Please help! I'm gonna fail my degree. :)

    you need to run your server connection part in another thread.

  • Macbook in target disk mode locks up when trying to transfer files to another computer. Suggestions?

    A week ago I installed snow leopard on my girlfriend's macbook without backing anything up. Dumb idea I know. The installation failed multiple times. I ran her computer in target disc mode to try to save what files I could. Now when I try to transfer files it will freeze up at different times. Sometimes I can transfer a huge amount of data like 4GB's and the other times it locks up trying to transfer 4kB's. I'm at my wits end trying to figure this out. I can see the files but can not transfer them.
    Any suggestions or past similar past experiences?

    Hi Anand,
    Have you noticed when you plug the drive in whether its making any sounds? You can put your ear up to the drive on the Macbook. Its located on the right hand front sided of the top case.
    Also, check to see if the target disk mode icon is moving after a few minutes. If the firewire icon has stopped moving it usually indicates that theres something seriously wrong (probably mechanical) with the drive.
    Id definitely give Disk Warrior a try. Especially if you have a situation where you can hear the drive running or spin up but it doesn't make any sound after that. Hope this helps.

  • Excel 2013 - Locked file when trying to save

    After a user opens an excel file from a personal network share (EMC/ISILON storage) and make changes to the file, the user get a FILE LOCKED BY <USER> (Same user that is currently editing the file).
    We have also had issues where a user goes to open a file and it says it is currently in use by <USER> same user trying to open the file.
    Couple of notes of interest:
    These files are on personal network shares, only the 1 user has access to the files
    We have had the user completely reboot their machine when they try to open a file and get the file is locked message - Same message
    Does not happen with any other Office 2013 application
    Are there any special "quick View" features in Excel 2013 or Windows 7 that may be locking the file?  I have seen reference to this in older versions of Windows, but nothing for Windows 7.
    Thanks for the help.

    Hi TE2011,
    In regarding of the issue, please provide us more information to assist you better.
    Did this issue only occur with the special user? Or some others had the same issue.
    Did the issue only the special file?
    This issue may be caused by some factors, please try the following methods and check they are helpful:
    Method one:
    Turn off the Preview Pane, Details Pane and pop ups that show information about file and desktop items
    1. Right click on the Start Button.
    2. Click 'Open Windows Explorer'.
    3. At the top left click Organize > Layout 
    4. Uncheck Details Pane and Preview Pane.
    5. On a Windows menu, click on Tools > Folder Options.  In the box that opens up, click on the View tab.  Scroll down the list to
    “Show pop-up description for folder and desktop items” and clear the checkbox and then click OK. 
    In Excel:
    1. Click File > Open
    2. Click Organize > Layout
    3. Uncheck 'Details Pane' and 'Preview Pane'
    Reference:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2012/05/14/the-definitive-locked-file-post.aspx
    We also try the other methods provided with the blog.
    Method Two:
    The issue also may be caused by the file itself, please try to recreated it and add it to trusted location.
    If this issue still exists, please try to upload the screenshot about the error message. I'll appreciate for it.
    Hope it's helpful.
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • "Device Removal" warning when trying to mount 2 Ext HDs

    I'm trying to copy some files from one external HD to another. When I connect these to my G5 and power up, one of them will mount and then the second one knocks the other other one off the desktop and I get the "Device Removal" warning. It happens regardless of which order I do this. HD 1 is about 3 years old, HD 2 is about 1 month old. I've tried disconnecting them both and reconnecting them, I've switched firewire cables and ports. They are both Western Digital firewire 7200 rpm. This has happened before with other ext HDs that I use. Some of them can all be connected to the G5 without any problems at times. There have been a couple of power failures due to some stormy weather lately but I disconnected everything from the power strip prior to bad weather. Don't know if this has any bearing on the problem, just thought I'd mention it.
    Any advice would be greatly appreciated. Steve L.

    Hello! Try them separately on one of the motherboard ports. Were they daisy chained together? This sometimes causes problems. Also when you connect them one at a time to different ports listed the them as they spin up as weak (or failing) power supplies on some externals have caused porblems. Tom

  • Volume showing a lock symbol when trying to adjust volume

    Hi, I have a Z10 running 10.3.1.1565 and have the following issue that appeared out of nowhere. When I try to adjust volume it will not adjust the volume and there is a lock symbol next to the volume. Have tried restarting with and without battery pull... but nothing :-(. What is going on and how do I fix?

    Have you tried adjusting in Settings >Main Volume?
    Do you have Parental Controls enabled?
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

Maybe you are looking for

  • Possible Video Card problem while running 3d applications on wine

    Hello guys, I got an issue with wine running 3d games/applications on the netbook and I thought this was the right place to post, since I'm pretty new to Arch, sorry if I messed something up with the sections. Long story short: The applications/games

  • Problem Running my servlet

    Hi, I use Tomcat 5.5.17 to run servlets. I can run the example servlets that come with Tomcat successfully. I have configured the java_home and class path variables. When I create a new servlet in the webapps/servlets-examples folder, I can run it. H

  • Trying to Install the New Itunes

    I'm trying to Install the new Itunes cause the old one won't work with my ipod, but eveytime, it finishes, then gives me an error message that says it wasn't able to finish because an apps file or something was not located. Help! I am so frustrated!

  • Changeing the Transport request Attributes?

    Hi Guys,              Can anybody tell me how to Change the Transport request Text , means while creating a Request u will enter the Description for Each request.Can anybody tell me how to change that description?                Very Urgent. Thanks,

  • I just bought a macbook air, I want to cut en paste, but it doesn't work, how can I fix this?

    I just bought a macbook air, I want to cut and paste but it doesn't work.  How can I fix this?