Afp path folder want to delete, path writing gives problem

tell application "Finder"
          mount volume "afp://advo:[email protected]/Anup/Temp"
          if (exists "Temp") then
                    --                    do shell script "rm -rf  afp://advo:[email protected]/Anup/Temp"
                    --do shell script "rm -rf Volume/Anup/Temp"
  end if
end tell
I want change here do shell script "rm -rf PATH" path of my remote machine is ("afp://advo:[email protected]/Anup/Temp")
no error is there when above script run, but folder Temp is not deleted

further I modified this script to get path till Temp folder
but this folder is not getting deleted
set folderVolumes to "/Volumes/" as POSIX file as alias
set volumeNames to list folder folderVolumes without invisibles
tell application "Finder"
          mount volume "afp://advo:[email protected]/Anup/Temp"
  repeat with theItem in volumeNames
  if theItem contains "Anup" then
                              do shell script "rm -Rf /Volumes/MAC-PRO/Anup/Temp/"
  end if
  end repeat
end tell

Similar Messages

  • Descriptio​n column writing gives problems

    Hello,
    I last posted a message that I wanted to display a string in the description column.
    Step.StepType.DescriptionExpr ="Step.Result.String"
    This worked!
    Now I made a 'Do While' loop.
    Here I measure a voltage and the conditions are that the loop maybe left when it measures.
    Locals.TestVoltage >0.1
    When measuring I always want to update the measured value so I declared 'Locals.TestVoltage'.
    And in the Post-Expression: I entered:
    Step.StepType.DescriptionExpr ="Locals.TestVoltage"
    After this action whenever I do a 'NumericLimitTest" I get the value "Locals.TestVoltage" printed in the description column.
    So somehow I set some ini parameter of teststand and how do I set this back? Maybe I did not do it right like I just described.
    Also I get the screenshot below when I load the sequence file:

    darkxceed wrote:
    I have made an extra colum with the Cation "_TESTVALUE", I kept the looks the same as the other names in the list.
    But when writing a string or number to it, I get an error.
    Step.StepType._TESTVALUE = "Locals.test"
    gr,
    I didn't mean adding another property to the step type. I meant adding another column to the step list in the UI or sequence editor. What exactly are you trying to do? Is this your own custom step type or are you modifying one of the built-in ones?
    -Doug

  • Want to delete Exchange account but keep contacts

    I had an Exchange account setup on my iphone but I want to delete it now. Problem is, I have all my contacts in that Exchange account. When I try removing the account, it warns me that all contacts will be deleted. How do I save my contacts so they arent deleted?

    If you have your contact information available with a supported application on computer for syncing contact information with your iPhone via the iTunes sync process such as with Outlook 2003 or 2007, you can transfer the contact information to your iPhone that way.
    When you enable over the air syncing for contact information with an Exchange account or with a MobileMe account, existing contact information on your iPhone is erases and replaced with the contact information available on the server. When deleting such an account on your iPhone, all contact information that was transferred to your iPhone via the over the air sync process is also deleted.

  • Data loaded double want to delete one

    Hi,
    Any one can please tell me the solution for this,
    i loaded data double so i want to delete one please give me the steps
    thanks
    sidhartha

    Hi,
    If i understd u properly
    U have 1 multiprov on top of  2 basic cubes
    and 1 cube has loaded data doubled ... right ??
    if its the case ... if u know the reqst(double data reqst) u can delete that reqst @ Cube manage
    it will not affect another cube or multi prov...
    multiprov will not have physical data..
    Thanks

  • I have an IMac.  I put a folder on the desk top and now want to delete it.  The folder seems to be locked.  I went to get info and tried to unlock it but still can't delete it.  The folder has nothing in it.  Any help would be great.  Thanks

    I have an IMac.   I put a folder on the desk top and now want to delete it.  The folder seems to be locked.  I went into Get Info and attemted to unlock the folder and delete it.  Won't go away.   There is nothing in the folder.   How do I unlock this folder and delete it?   When I try to delete it, I'm asked for my password which I put in and is accepted, but will not delete the folder.  Any help would be great.

    If you are sure there is nothing in it, download trashit, a useful free app.   That will dispose of it.
    Download Trash It! for Mac - Force-empty your trash can. MacUpdate.com

  • I have an external hard drive connected to my iMac 2006; the OS on this iMac has been upgraded.  I wanted to have back up copies of all our photos on iPhoto; I moved the iPhoto Library folder to the EHD.  Now I want to delete a lot of the photos on the iM

    I want to delete the photos on the iMac's hard drive but I want all the copies on the EHD; to free up space on the iMac.  I experimented by deleting one photo in the iPhoto library on iMac but when I checked the EHD, it was deleted there, too.  How can I delete photos from iMac w/out deleting from EHD?

    Photo Library icon that sits on my desktop
    Do a Get Info in the Finder on that, is it an Alias pointing to the external drive?
    Open the iPhoto Library folder on your actual internal drive in the Finder, is that deleed pic stil there?

  • Hello. I have two version of Office for Mac. 2008 and 2001. I want to delete the 2008 version. If I use the removal tool within the Offie 2008 folder, is there any danger of the 2001 version being removed too.  Thanks Dave UK

    Hello. I have two version of Office for Mac. 2008 and 2001. I want to delete the 2008 version. If I use the removal tool within the Offie 2008 folder, is there any danger of the 2001 version being removed too.  Thanks Dave UK

    Do you mean Office 2008 and 2011 or do you really want Office 2001? I think you mean 2011 since Office 2001 wouldn't make much sense.
    The Office uninstaller should be able to identify there are two versions and allow you to delete either one or both.

  • I want to delete a folder but every time i do, it reappears on my desktop, even after I empty/secure empty the trash.

    I want to delete a folder but every time i do, it reappears on my desktop, even after I empty/secure empty the trash.

    I contracted Security Tool the same way about ten minutes ago on my Win7 Home Premium laptop. Firefox prompted me to do an immediate update the way it normally does, with a convincing update screen that looks like the typical Mozilla update prompt. However, the installer I downloaded was in fact "Security Tool." The program firewalls Firefox to prevent searches and also prevents access to Task Manager via Ctrl-Alt-Del. On the surface this appears to be a particularly nasty strain of malware / scamware, and FF users need to be warned and/or innoculated immediately.

  • I want to delete from my DCIM/Photo Library folder

    I want to delete either individual photos or the entire DCIM & Photo Library folders, is this possible? When I purchased my iPhone the attendant transferred photos from my old phone over (1,877 to each of those folders), which I already had saved elsewhere, and it is using valuable memory space and they need to be deleted. I can't even update my software because I don't have enough storage! I do have a lot of apps for my kids on my phone but I don't think I should have to delete those because they are used all the time. The DCIM/Photo Library folders need to go pronto....Any help would be greatly appreciated!

    Evanish1 wrote:
    This only imorts photos from the camera roll, which i've already done. I need the DCIM & Photo Library folders emptied. I can get to the DCIM folder with it plugged into my Windows 7 computer but the 3 sub-folders that show up (823WGTMA, 860OKMZO, 965YOKDJ) under it show nothing when I double click on them.
    Select them in Windows Explorer & delete the three folders 823WGTMA, 860OKMZO, 965YOKDJ.

  • Locked folder with virus - delete

    I have a folder on a USB stick that picked up a virus when connected to a PC.
    It appears as a zip folder and is locked. I cannot unlock it and cannot trash it.
    Is there a way to force delete such a folder? I wish to continue using the stick and do not want to transfer the virus to other PC users.
    Thanks

    use searchlight to find terminal (or click on /Application/Utilities/Terminal.app )
    WARNING: NEVER EVER TYPE sudo rm -rf / and press enter unless you know what you are doing
    (instructions and comments are written after // the rest are commands).
    //hit enter after each command typed.
    //commands are case sensitive.
    //go to the path were your pendrive is mounted by doing this
    cd /Volumes
    ls
    //a list of folders will appear, verify the name of your pendrive is listed there (usually the partition name, if you pendrive is mounted as Frenchchrispen, type the following)
    cd Frenchchrispen
    ls
    //a list of files and folders from that pendrive's mounted partition will be displayed, noticed the name //of the folder your want to delete then do
    //ABSOLUTE CAUTION HERE KNOW WHAT YOU ARE TYPING, MAKE SURE IT IS THE FOLDER NAME YOU WISH TO DELETE THAT IS TYPED THERE
    //NOTE: if you folder name contains special characters or space, type the name between double quotes " "
    sudo rm -rf foldername_i_wish_todelete
    //that should do the trick, if ever it is complaining about sudo not found, try just rm -rf or
    su
    cd /Volumes/Frenchchrispen
    rm -rf foldername_i_wish_todelete
    +selven

  • I want to delete/uninstall an older version to bring up the newest version. How do I do this?

    What more details do you need? I want to uninstall an older version of Firefox and install 4.0X. But cannot seem to be able to get rid of 3.04

    OK, here I am replying to myself but perhaps others may gain from this solution. Remember, this original post was "how to stop Adobe preventing me from installing an older version and forcing me to take the latest version...". I just wanted to re-install an older version to prevent big CPU usage and stuttering video. Well, this is what fixed it for me an allowed me to install Adobe Flash V9...
    Assuming you have properly uninstalled Adobe Flash Player v10.n, you need to remove a folder and files from your registry. If you are unhappy to do this, then ask an expert - the registry is not somewhere you want to get lost in. I am also assuming you have the correct system permissions, Anway this is what I did:
    1. Go to start button and find (and run) REGEDIT.EXE
    2. Rather than give you a specific path to follow, it is best to simply use REGEDIT to find the folder by clicking "Edit" then "Find".
    3. You are looking for a folder called "SafeVersions".
    4. When you find it, it may show a number of safe versions (previous loads of the player).
    5. From the left window pane, right click on the aforementioned folder then click "Delete"
    6. Respond to any prompts you might get, like, "do you want to do this..." etc.
    7. Close down all applications in the normal manner and reboot.
    8. When restarted, go back on line and download the V9 (or whatever version you want). You'll know its a good 'un as it loads in a fraction of the time.
    9. Go back to your web page or whatever and, hey presto, everything is back to what it was before that hungry V10.n was uploaded.
    Hope that helps, it might be nice if the Adobe uninstaller deleted this registry entry, but it doesn't - or at least in Win7 on my PC, it didn't.
    Let me know it the above works for you.
    Thanks and good luck

  • I am trying to delete duplicate songs in my library, when I click on the duplicate and go to edit to delete it, it asks me if i want to delete the playlist!

    I am trying to delete duplicate songs in my library, when I go to edit to delete it, it asks me if I want to delete the playlist!

    Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background, this post for detailed instructions, and please take note of the warning
    to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    tt2

  • I want to delete all my files so I can give this computer to a friend

    I want to delete all files on my G-5 so I can give it to a friend.

    Well, they would be the best way as they would allow you to return the computer to an "as-shipped" condition.
    If you were diligent in keeping all your personal files in your User account, you can create a new admin account in the name of your friend, make sure it it working, then delete your original acct.
    That would leave the program software intact as long as it is in the path Macintosh Hard Drive > Applications and not Macintosh Hard Drive > Users > [your username] > Applications. Anything inside your current User acct will be unavailable to a new user even if you don't delete that acct (unless you give him the password)

  • TS2942 I want to delete a file off a thumb drive but get error 1407 which won't let me delete or trash the file.  What do I do?

    I want to delete a file off a thumb drive but get error 1407 which won't let me delete or trash the file.  What do I do?

    Hmmm, what Format is the Thumb drive?
    In the Mac/AFP world...
      errFSNotAFolder               = -1407, /* Expected a folder, got a file */
    Is there perhaps a colon or Backslash, or slash in the filename?

  • Want to delete mails from Thunderbird but not from the server?

    Hi,
    Please tell me how to configure the settings of Thunderbird so that if i delete any mail from Thunderbird that mail would be delete only from Thunderbird not from server. I'm using IMAP configuration for all my mail accounts and I'm using Thunderbird in my laptop and tablet both.
    Currently i'm using Thunderbird 24.4.0 and i just want to delete my useless mails from Thunderbird but not from the server without using pop-3 settings.
    Actually the reason for this Question arises because whenever i use to uninstall and reinstatement Thunderbird, i use to take "profiles" as a back up and its size is increasing day by day that is making a big issue to me as i cant take a back up of such a big size file.

    Imap mail accounts keep the emails on the server and you see a remote view of those emails and folders.
    When you subscribe to see a folder, the headers are downloaded, when you select an email to read, the entire folder is downloaded to a temp cache facilitating quicker access. If you synchronize folders, then a copy of that folder is downloaded to an mbox file in your profile, so that you have a copy of the server folder. When you make any changes to a synchronized folder, read an email, delete or move etc, then Thunderbird will resynchronize with the server to update the server. A synchronized folder allows you to work in 'offline' mode and this is the best time to perform a backup as you know there is a temporary stop on synchronizing as you are offline. They will resynchronize when you go back into 'online' mode.
    So, with IMAP mail accounts, the folders you see in Thunderbird are the same folders on the webmail server. If you make any changes via Thunderbird or webmail then you are changing the same folder. You cannot delete an email without deleting it from the server, they are one and the same.
    What you can do is move/copy an email into Local Folders and delete the one on the server. The Local Folders emails are kept in your Profile on your computer, these folders/emails are not on the server, unless you chose to keep a copy of them on the server.
    Pop mail accounts cannot see the folders on the server. They only access the server Inbox folder and download emails not previously downloaded to the mail account Inbox in Thunderbird. These emails are kept on your computer in your profile folder. You can select to keep a copy on the server or not. You can choose to delete emails off your computer and off the server or not.
    If the mail account is gmail , have you subscribed or even synchronized to see the 'All Mail' folder ? Gmail's all Mail folder is their Archive folder, it keeps a copy of all of your non-deleted emails. So, you do not need to subscribe to see this folder as it only shows you what you can already see in other folders. It doubles the disc space.
    Please read section on 'All Mail' at this link.
    * http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite
    You do not have to download/synchronize the entire folder. You could select to only synchronize the most recent xx days of emails.
    see info here:
    * https://support.mozilla.org/en-US/kb/imap-synchronization#w_configuring-synchronization-and-disk-space-usage

Maybe you are looking for