Can't get around "mount failed" - "on error" won't do it - help appreciated

Hi
I'm using this syntax to mount a volume, and it works well if the volume can in fact be mounted:
try
mount volume "afp://username:[email protected]/MyDir"
on error
display dialog "blah blah"
end try
BUT, if the volume can't be mounted because the directory specified is incorrect, I a dialog saying "Mount Failed" opens with the only option being 'OK'. Under some other mount failure circumstances this dialog doesn't appear, and the script does eventually time out and disappear all by itself. But if this dialog appears, I have no option other than to manually press OK. It stays open forever. This dialog appears before the script passes the error to the display dialog part, so it prevents the "on error" part of the script from running. This is the only example I know of where 'on error' fails to let the scripter move on and manage the error.
What I would really like to do is to get the 'on error' functionality to actually work properly, because I can determine the PID of the process using Terminal and could then kill it using a shell script if , BUT none of this is possible because the script never gets to the 'on error' state because a real human must press the dialog's OK. I can't seem to use system events to send anything to it because the whole applescript just hangs at this point until the OK is checked.
Does anyone know a workaround? I've tried using a with timeout step around the whole thing but also won't work.
Thanks for any advice you could give me.
Chris.

I'm having the same trouble, but for different reasons. I was trying to determine a method for examining all the mounted volumes on my desktop and then detecting which mounted volume came from which network server. There doesn't seem to be any way to determine this via any filesystem metadata or anything. The only solution that I could think of was to build an afp url for each server/volume combination for any given mounted volume I wanted to test and then try mount volume on each url (thinking that the on error handler would trap the errors and then I could branch accordingly). Doesn't work. It's interesting that if you try mount volume afp://validerserver/badvolume, you get the mount failed error before your on error handler kicks in. If you try mount volume afp://badserver/validvolume, the on error handler fields the resulting -35 error. If you try mount volume afp://emptystring, you get a connection failed dialog before the on error handler again. Really annoying.
I filed a bug on this.

Similar Messages

  • How can I get around the -40 import error?

    I'm using iMovie 3.03 and just found out that the -40 error I get when importing videos is due to a 9 minute (and 32 seconds) limit. My imports (1 mov and 1 avi) are just over 14 minutes each. Does anyone know of a work around for this problem? Or of any 3rd party software that will allow me to cut the import in half so I can bring each file into iMovie in 2 parts?
    Thanks for any advice you can give.
    YH!

    OK... I went to the site and downloaded the app. I ran it and it exported 9 mins of the file and then would not export the other half and gave me an error: NSReceiverEvaluationScriptError:4
    Then I put the app on my desktop and changed the length of the file exported to 8 mins (using the instructions given with the download. When I ran it again, it said I needed Quicktime Pro to run it.
    So... now what I don't want to do is buy Quicktime Pro and find out that it still won't work. Would Quicktime Pro be able to do split the videos? Or at least be able to cut half of the video off and save as another file name?

  • How can I get around this issue? Error Code: U43M1D207

    Adobe InDesign CC Update
    There was an error downloading this update. Please quit and try again later. Error Code: U43M1D207
    I quit all running adobe programs except the Adobe Application Manager and I still get this error. It seems that I am not able to do any application upgrades.
    I sure wish Adobe would provided a direct link to an update file.
    Why is it that the updates within the CS 6 applications will work but not in the CC versions?

    drmacmike wrote:
    I quit all running adobe programs except the Adobe Application Manager and I still get this error. It seems that I am not able to do any application upgrades.
    I sure wish Adobe would provided a direct link to an update file.
    Why is it that the updates within the CS 6 applications will work but not in the CC versions?
    The CC updates for InDesign aren't listed on Adobe's page, but you can download them here:
    All CC Updates – Direct Links for Windows
    All CC Updates – Direct Links for Mac OS

  • Mail responds with this error when I have attachments which are not that large.  How can I get around this. very aggravating. error reads Your message has size 32.1 MB, which exceeds 28.3 MB, the maximum allowed by the server.

    error message is-Your message has size 32.1 MB, which exceeds 28.3 MB, the maximum allowed by the server.  What can I do to get it to accept larger files. This was only 4 pages scanned.

    You can use the Preview app to reduce the fille size or send multiple emails.

  • TS4268 I am trying to facetime on my mac but keep getting the message "The server encountered an error processing registration. Please try again later." I have gotten this multiple times. how can I get around this?

    priority:
    I am trying to facetime on my mac but keep getting the message "The server encountered an error processing registration. Please try again later." I have gotten this multiple times. how can I get around this?
    i also have tried downloading "FaceTap" application to get facetime on my ipad and failed too. i thought i failed because i couldnt download latest 6.0 iOS or later. i downloaded latest software update for iOS but was 5.8 I think

    Wait until Apple fix it. See: http://www.apple.com/support/icloud/systemstatus/

  • I am having trouble setting up my Yahoo! e-mail account on my phone...it asks for my Password and I type it in correctly and, carefully, but I get an error window, "MF Message Error Domain error 1032" -what does thi smean and how can I get around it?

    I am having trouble setting up my Yahoo! e-mail account on my phone...it asks for my Password and I type it in carefully and correctly, but I get an error window, "MF Message Error Domain error 1032" -what does this mean and how can I get around it? My password is long and convoluted, but it works when I type it in on my main Mac workstation, just fine.....what gives?

    try restarting the phone and try again

  • TS3694 i get a error code of 3194 and can't restore my ipad because of this.what is code 3194 and how can i get around this problem. thanks.

    i am trying to restore my ipad, on itunes i get a error code 3194, consequently the ipad won't restore. How can I get around this ?.
    Thanks.

    glasstiger wrote:
    i am trying to restore my ipad, on itunes i get a error code 3194,
    3194  = http://support.apple.com/kb/ts4451
    If that Article does not resolve it... then you have a problem.
    Perhaps a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is required..
    Be sure to make an appointment first...
    Note:
    That error message may be indicative of the Device being Hacked / jailbroken.... If this is the case then you are on your own.
    Unauthorized modification of iOS... http://support.apple.com/kb/HT3743

  • I cannot sync my phone because my device is locked and the screen is broken. how can i get around this?

    My screen on my iPhone 5s 16g has broken and i just received a new one in the mail. i want to sync my old phone to iTunes so i can restore my new one, but cannot sync do to the fact that my screen is broken and i am unable to unlock the phone… how can i get around this?

    You don't. If you use a 3rd party to "fix it" or attempt to do it yourself, Apple will reject the return and charge you the full price of the phone as if you had not returned it at all.
    It's too late. You should have been backing up before it failed.

  • Variable might not have been initialized, but I can't get around it...

    I'm getting a variable might not have been initialized error, and I know why, but I can't get around it. Basically, this snippet of my code is reading in a map file for a game. The first two lines of the map file are configuration information, and the rest is coordinates for the tiling graphics.
    while ((str = in.readLine()) != null) {
                    if(!read_info){
                        //process first line: tileset image, size, playerpos
                        temp = str.split(",");
                        loadTileset(temp[0],32);
                        size_x = Integer.parseInt(temp[1]);
                        size_y = Integer.parseInt(temp[2]);
                        map = new Tile[size_x][size_y];
                        player.resetLoc(Integer.parseInt(temp[3]),Integer.parseInt(temp[4]));
                        //process second line: impassible
                        str = in.readLine();
                        temp = str.split("!");
                        impassable = new Point[temp.length];
                        for(int m=0;m<temp.length;m++){
                            tmp_coords = temp[m].split(",");
                            impassable[m] = new Point(Integer.parseInt(tmp_coords[0]),Integer.parseInt(tmp_coords[1]));
                        read_info = true;
                    } else{
                        temp = str.split("!");
                        for(int i=0;i<size_x;i++){
                            tmp_coords = temp.split(",");
    boolean ti = true;
    for(int p=0;p<impassable.length;p++){
    map[i][j] = new Tile(Integer.parseInt(tmp_coords[0]),Integer.parseInt(tmp_coords[1]),true);
    j++;
    I'm not including everything.. this should make sense. Impassable is a Point[].
    I can't say how big the Impassable list will be until it reads the second line of the map file. However, that happens in the first run-through of the file-reading processes.
    Is there a try/catch statement I can use to get past this?

    If you set that variable to null you will fix this
    error.
    Object obj;to
    Object obj = null;Beware this may cuase NullPointerExceptions, so you
    should check this variable for being null before you
    try to access it.That's usually the wrong way to approach this. Getting this compiler error is often a sign of a logic error. Only initialize the variable if it makes sense for the variable to have that value. Don't do it just to satisfy the compiler.

  • Flash CS6 cant open play SWF files without importing and destroying them, how can I get around this?

    Flash CS6 can't open play SWF files without importing and destroying them, how can I get around this?
    I'm just trying to preview an swf file in flash like I have with all previous versions.

    What if my SWF loads external content from an online server?
    Not only does the current flash player prohibit such activity, it doesn't even pop open an error anymore saying there was an error connecting to an online source.
    Normally, I would simply drag the SWF into Flash and all connections would go through.  I could see traces, errors, and experience no issues.
    Now I can't even do that.  So what then?  You have crippled a fundamental use of the program, but THANK GOD we have that deco brush that nobody asked for.
    And for the record, the nature of my work benefits from not necessarily allowing the Flash Player to connect to online content.  The error it pops up?  That's simply another method of error checking that I require.  Updating the Flash Player options is not an option.
    Why would you even remove this key feature from Flash anyways?  It's been there for years ... has the ratio of people importing SWFs (a rather useless gesture in an increasing OOP world) really outweighed the people using Flash as a testing environment that much?

  • I was recently blocked from using app Jack'D. Message I receive says "Your device has been blocked". How can I get around this?

    I was recently blocked from using app Jack'D. Message I receive says "Your device has been blocked". How can I get around this?

    Quoted from their FAQ's:
    I got an error message saying my device is blocked. Why did this happen?
    There are two reasons this could happen: You have deleted your account or you have been banned due to violation of terms of service.
    - You have deleted your account.
    When you delete your account, you agree that your device would be blocked for at least one month. This policy is enforced in order to protect users from stalkers. (If the system allowed users to create and delete their accounts any time they wanted, the Block feature would be compromised and wouldn't be able to protect users effectively.) Please understand this is not a punishment but a security measure intended to keep all of our users safe.
    - You have been banned due to violation of terms of service.
    Users of this mobile application are required to comply with our terms of service and instructions provided by our service team. The most common violations include, but are not limited to: Creating multiple accounts, uploading pictures not complying with our terms, and abusing the Report feature. In most situations, you will get a warning before you are banned from the app. If you receive a warning from our service team, please read it carefully and take it seriously. If anything is not clear, please contact user support for clarification.

  • Why do I keep getting a mount failed on my mac mini?

    On Start up I am getting a Mount failed window pop up with options to try again, ignore, and details. I have copied the details to a note. I am new to Mac, and this is a late 2012 mac mini 2.3, with 4 gb mem, 1 tb HD. ( I have nothing pluged in to any ports except hdmi for monitor.)Please help.
    Thanks in advance,
    John

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • Preprocessor command, assigned the variable and then compare the variable to int. How can I get around this?

    #define ON 1
    #define OFF 0
    in seperate code
    int variable = ON;
    variable is globally define for that module.
    in seperate code
    if (variable == ON)
    the complier errors off on the if (variable==ON)
    My guess variable is variable in of type int and ON is a preprocessor command. Therefore it is a mismatch and complier doesn't like it. How can I get around this.
    thank
    Mahen

    Mahen
    What is the exact message of the compiler?
    I think the error is, that the compiler does not find the definition of ON
    and OFF. Is it in the same source file?
    If not, try to put it into an .h file and include it where you need it.
    Stephan
    "Mahen" schrieb im Newsbeitrag
    news:[email protected]..
    > Preprocessor command, assigned the variable and then compare the
    > variable to int.
    >
    > How can I get around this?
    >
    > #define ON 1
    > #define OFF 0
    > in seperate code
    >
    > int variable = ON;
    > variable is globally define for that module.
    > in seperate code
    > if (variable == ON)
    > {
    >
    >
    > }
    >
    > the complier errors off on the if (variable==ON)
    > My guess variable is variable in of type int and ON is a preprocessor
    > c
    ommand. Therefore it is a mismatch and complier doesn't like it. How
    > can I get around this.
    > thank
    > Mahen

  • I'm trying to download itunes 10 but I get to a point in the download and it tells me, "The feature you are trying to use is on a network resource that is unavailable" but I haven't had itunes on my computer for a year now so how can I get around this?

    I'm trying to download itunes 10 but I get to a point in the download and it tells me, "The feature you are trying to use is on a network resource that is unavailable" but I haven't had itunes on my computer for a year now so how can I get around this?

    iTunes.msi
    Perfect, thanks.
    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I have an older version of iTunes on my office computer and it will not let me update to the current version without an administrative password. How can I get around this??

    I have an older version of iTunes on my office computer and it will not allow me to upgrade to the newer version without an administrative password. How can I get around this???

    If you have an iBook G4, (PPC) you can't do much.
    But if that is a MacBook (intel) you may be able to
    upgrade the OS X, if the hardware is up to it...
    Since there were about nine different build models
    of MacBook (not powerpc iBook) to identify what
    one you have would be the first step to knowing
    what OS X and RAM upgrades it could use.
    If the computer is not already at OS X 10.6.8,
    it can't go online to get or use OS X 10.7.5. So,
    when you more accurately describe the 'Book,
    detailed information is available.
    When you find the serial number, there is a web
    page that can be used to identify by serial no.
    http://www.powerbookmedic.com/identify-mac-serial.php
    That'd be a first step. Or even the Model number
    which should be visible on the outer case by hinge.
    Good luck & happy computing!

Maybe you are looking for