Having permission to rename a file

each time i wish to rename a picture file a pop up says i have not got the acess/privelage to do so. i have to get info, unlock the sharing and permission lock and change 'everyone' to 'no access' then it allows me to name my file. I am the sole user to my mac and don't wish anyone else to use my folders/acess my accounts so how can i get rid of the'everyone' or make myself the sole access to naming files/folders without having to go through the above avery time ??? THANK YOU TO ANY HELP x also is there a way to rename all files in a folder at once with consecutive numbers ? can you just highlight all, type name of folder eg:cornwal 2010 and 1 after the first pic in folder so it renames all consecutively cornwall 2010 1 then 2 then 3 etc ?

Select the icon of your home folder in the sidebar of a Finder window, and open the Info dialog. After unlocking the dialog, eliminate all permissions except "Me: Read & Write" and "Everyone: No Access." From the action menu (with the gear icon at the bottom left corner of the dialog) select "Apply to enclosed items." Close the dialog and try again.

Similar Messages

  • Renaming a file on a server

    I'm having some problems renaming a file from a form I created... here is my code below
    String file = request.getParameter("file");
    String newfile = request.getParameter("newfile");
    File f = new File("/my path/" + file + "");
    File newf = new File("/my path/" + newfile + "");
    f.renameTo(newf);
    Any idea why this is not working?
    Thanks in advance!

    Hi,
    It may due to space in your folder name.
    Try using quote with escape sequence for your folder + file name.
    File f = new File("\"/my path/" + file + "\"");
    File newf = new File("\"/my path/" + newfile + "\"");
    f.renameTo(newf);
    Hope this helps.
    KD

  • Renaming a file by only changing case results in Permission prompt

    We have a user who is unable to rename a file on their desktop if just changing a letter to upper or lower case.  For example, if a user has a file "file123.txt" and they attempt to rename it to "File123.txt", the user gets a pop
    up saying they need permission from their own account. However if we try to rename that same file to "file456.txt" it works no problem.
    Some environment information:
    -Domain Workstation and User
    -The problem affects ALL files in the same respect
    -The Desktop is redirected to the server
    -The user does have Full ownership and Full NTFS permissions to their files
    -The issue only happens when making the subtle case change, not fully renaming the file or adding to it
    Lance

    Hi,
    I would say this is not what you think----this is an issue with your system. In fact,  about Windows File
    System, File and directory names can be up to 255 characters long, including any extensions. Names preserve case, but are not case sensitive. NTFS makes no distinction of filenames based on case.
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • Unable to open document. Please check to see if you have read permission for the above file.

    System:
    Adobe Acrobat X Pro, 10.1.2
    Windows 7 Enterprise, 32-bit
    Quad Core badass CPU
    4GB RAM
    MS Word 2010 (Office 2010)
    I installed the latest version as Administrator and am running as Administrator. I have all rights to all files on the PC.
    When I attempt to create a PDF from any Word document, whether .DOC or .DOCX, I get an error window every time:
    "Unable to open document:"
    "[document location]"
    "Please check to see if you have read permission for the above file."
    This happens after the little notice pops up "Starting the application which created the document...."
    If I open Word and create PDF from the ribbon, it works. It still won't allow me to create from Acrobat.
    It creates PDFs from Excel files but not DOC files. I've searched for solutions but found none. I did find this from July of 2011:
    "I have found out from Adobe technical support that this is a known issue with Office 2010 SP1 installed. This is an FYI for anyone else experiencing this issue, remove SP1 and it will work ok. They said an update to correct this issue will be coming within the next quarter."
    I have updated to the latest version 10.1.2 and still have this problem.
    This is a major issue, because it also fails on batch conversions, which is what I really need for the 100 or so documents that need to be PDFed. I'm not going to open each individual file and save each one from within Word.
    This is a KNOWN ISSUE at Adobe, and if you look through the forums you'll find many people having this problem, and so far, I have not seen any solution.
    If anyone has found the solution, please post it here.
    Thanks!
    B

    I think I found a solution. It seems to be relatet to normal.dotm.
    In our environment we have upgraded from XP & Office 2003 to Win7 and Office 2010. Normal.dot is stored on the users home share. When Office 2010 is started for the first time (for a user) it takes some of the old stuff from normal.dot and puts it in the new normal.dotm. When this happens, we get this error in Acrobat X.
    The solution is to rename both normal.dot and notmal.dot to e.g. normal.dot.old and normal.dotm.old. Office/Word 2010 will then create a new, "clean" normal.dotm.
    (By the way, if you are in a corporate environment, you might have changed the default path to normal.dot in Office group policies. You can see it here: HKEY_CURRENT_USER\Software\Policies\Microsoft\office\14.0\common\general\usertemplates)
    I would be interested in knowing exactly why/what in normal.dotm caused this error. I can provide you (Adobe) with a faulty normal.dot(m), if you're interested.

  • Error while collecting files in AE CS3 - You do not have permission to open this file (-54)

    I've got a rather large project that I'm attempting to collect.  35,000+ files to collect (lots of image sequences as footage), totaling near 80GB.  The collect process starts and copies files for a while, but inevitably errors out during the copy procedure with the error "You do not have permission to open this file" -- a different file each attempt.
    I'd read some complaints of a similar error last year due to QT 7.4, but I'm on the current Quicktime (7.6.4).
    Anyone seen this before?  What can I do!?  Thanks in advance for any ideas.
    --Rob LaRose
      Imaginary Forces

    Well, we're just a small shop, but since it usually falls upon me to administrate, here's a few general tips:
    Hide all resources that are not meant to be accessed by certain people. This can be done easily by using different sub-nets on your network and defining access privileges. Write down the network MAC addresses and use a whitelist/ blacklist. A bit of work initially, but a lot safer than working with user names.
    Forget about individual user privileges. At one point or another everyone will bump into situations where they cannot access stuff, but need it for their work. Simply ramp up all users to Power User status, but assign individual groups to them which only you can manage. That leaves it up to you to define who can access what, but without having to dig so deep that you always end up with individual adjustments. You merely add or remove users from groups (which is more practical for interns and freelancers, even)
    Quota can do miracles for you. If a user only has x GB of storage available, he'll quickly learn to not create redundant data by copying files.
    Prevent all local storage. Artists have a tendency to offline files at whim for experimentation and then forget about it. Give them a "garbage dump" directory on the server instead where they can store their private data and any non-persistent work files, but with quota. Use server-side desktops and user home directories, if possible, but unfortunately many programs cause problems with that (including Adobe's), so it's not always an option.
    For each new project, create a pre-defined folder structure. We e.g. use number_clientname_worktype_year for the root, and inside have directories for compositing, 3D stuff, print, client data etc.. Define it so from the getgo, that specific structures like project directories for 3D programs with their sub-folders for textures etc. are in place, but users cannot create additional folders. When they are forced to use existing folders, they will be much more careful in naming their files.
    Define versioning rules and naming conventions. Now "siginificant milestone" is a matter of view, but I at least try to create new version files for that. So if e.g in the morning I open up a comp project and change a few things in it that take more than 10 minutes to reproduce, this is significant and a new version is safed. I don't care much for simple things like adding effects - I can reproduce them in a wee in case of crashes or data loss - but complex masking, elaborate 3D modeling, dynamics simulations etc. qualify.
    Of course back up every day, at least incrementally. If following the above rules, this can be as easy as copying the project folder to an external disk.
    As for the rest - simply be hard-nosed. Your artists will whine and complain for a while, but they will get used to it and eventually see the wisdom in a regulated system. It's also up to you to brief them accordingly and remind them from time to time.
    Mylenium

  • Can I force my computer to ignore the fact that it doesn't have 'permission' to change certain files and compress them anyway?

    I'm trying to compress everything on my external USB hard disk using the File> Compress Items option in the Finder. However, every time I try this, it thinks for a little while and then tells me it can't do it because it doesn't have 'permission' to edit such-and-such a file. I have gone into the 'Get Info' panel for the hard disk and tried changing the permissions to read & write for my own account, 'staff', and 'everyone', checked the checkbox for 'Ignore ownership on this volume', and chosen 'Apply to enclosed items...' from the little gear/cog menu under 'Sharing & Permissions' section of the 'Get Info' panel. I have also tried sending the problematic files to the trash, but every time I do so, when I select 'Compress items' again, it just finds more files that it doesn't have 'permission' to edit. I cannot 'repair disk permissions' from disk utility, and when I select 'repair disk', it says that there is nothing wrong.
    There is no reason that I shouldn't have 'permission' to edit these files. They are all my own documents and photos etc, or ones that have been downloaded from the internet. The computer is not connected to any kind of network, and there is only one user account on the computer, which is an 'administrator' type account.
    My question is -- how do I bypass this 'permissions' problem? Is there a way to 'force' compress, like when there is a problem emptying the trash and you can choose to 'Force Empty Trash'?
    Thanks in advance for any aid or advice,
    lsrw.

    You caant get the'a from he'a. 
    You could have it wake at 2:55 and then shutdown at 3:00 but then it won't wake in the morning.
    Not shure why you want to shut down instead of sleep.  It uses only a small amount energy sleeping with the display off.  It would probably use more energy to have it wake up in the morning before you get there than to have it sleep all night.
    If you are having battery issues you should replace the battery.  I have seen it stated elsewhere in this community as batteries go bad they can damage the system.  Your's might not be near that state but you should consider replacing it.
    With it plugged in there should be no difference in the charge on the battery whether it is sleeping or shutdown.  It charges in both states and maintains a full charge while plugged in.

  • Can you somehow use Lightroom to rename RAW files?

    Okay let's say in one folder on my hard drive I have three RAW files: _DSC0001.NEF and _DSC0002.NEF and _DSC0003.NEF. Now let's say I have reformatted my memory card so my camera will once again start labeling new images with _DSC0001.NEF.
    So let's say now I go out and shoot three more RAW files: _DSC0001.NEF and _DSC0002.NEF and _DSC0003.NEF.
    If I try to transfer these brand new images into my original folder there will be some duplicate naming which you can't do.
    What I have been doing is going into the new folder that holds the new three images and renaming them: so I change _DSC0001.NEF to _DSC0004.NEF and I change _DSC0002.NEF to _DSC0005.NEF and I change _DSC0003.NEF to _DSC_0006.NEF.
    Instead of me having to manually rename each photo I was wondering if I could import these new photos into Lightroom and then tell Lightroom to export these RAW images but starting at the sequence _DSC0004.NEF...and so forth.
    I mean I can't have a folder that has this: _DSC0001.NEF and then _DSC0001.NEF.
    I hope I have made myself clear.
    Or am I doing this all wrong?
    And I would want Lightroom to export the original, unedited RAW file. It's just that I would be using Lightroom to rename them to keep proper sequencing.

    This is the Help page you should read: http://help.adobe.com/en_US/Lightroom/3.0/Using/WSCF140965-2440-4b65-9F88-AA0283034B11.htm l
    It can take a little getting used to but once you have you will find it quite easy.
    By the way I rename my files with the date first (GW20110514-12345.xxx) which may be useful to you.

  • Can't rename a file using File.renameTo(...)

    Hi,
    I have a servlet, RenameFile, that receives audio file via HTTP Post and writes it to /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav. Then it creates directories under /alert_messages directory based on the timing parameters that it get. Finally, it renames /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav to /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV. RenameFile runs fine when it runs by itself (ONLY one Tomcat, jakarta-tomcat-4.1.30, is running). However, RenameFile fails to rename the /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav to /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV when it runs in a Linux box that jboss-3.2.1_tomcat-4.1.24 is also running. In this box, TWO versions of Tomcat are running at the same time. I set the /alert_messages directory with �chmod �R 777� and run jakarta-tomcat-4.1.30 as tomcat user. RenameFile fails the rename operation. But, it creates the /alert_messages/2005/06/22/22/00/ directories.
    It seem like RenameFile can create directory but can�t create file in the /alert_messages directory when both version of tomcats are running at the same time.
    Can it be due to both the jakarta-tomcat-4.1.30 and the jboss-3.2.1_tomcat-4.1.24 versions are running at the same time in one Linux box?
    Can this be Jboss prevented the operation?
    I did not receive any io exception!!!
    Any help in this issue is greatly appreciated.
    Debug listing from the RenameFile;
    - originalFilename: recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.toString(): /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.getName(): recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.length(): 122986
    - file /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV
    - file NOT renamed /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV
    File Listing in the /tmp directory create by RenameFile;
    -rw-r--r-- 1 tomcat tomcat 122986 Jun 22 07:33 recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    Directoy Listing in the / directory with �ls �la�;
    drwxrwxrwx 3 tomcat tomcat 4096 Jun 22 07:28 alert_messages
    Directory created by the RenameFile with �ls -la /alert_messages/2005/06/22/22/00�;
    drwxr-xr-x 2 tomcat tomcat 4096 Jun 22 07:33 .
    drwxr-xr-x 3 tomcat tomcat 4096 Jun 22 07:33 ..
    Out put from catalina.out;
    !!!!! Can Read the old File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Write the old File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Not Read the new File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Not Write the new File !!!!!!!!!!!!!!!!!!!!
    !!!!! renameTo return false !!!!!!!!!!!!!!!!!!!!
    Code That rename a file:
      public synchronized String renameAlertMessageFile(String oldFileName,
                                String newFileName)
                throws SecurityException, NullPointerException
        File oldFile = null;
        File newFile = null;
        String result = null;
        StringBuffer myNewFileName = null;
        boolean renamed = false;
        try {
          int indexStringValue;
          int newFileLength;
          int indexOfPeriod;
          int indexOfLastUnderScore;
          int lengthOfExtension;
          boolean  Contin = true;
          String sNumber = null;
          String indexString = null;
          myNewFileName = new StringBuffer(newFileName);
          oldFile = new File(oldFileName);
          newFile = new File(myNewFileName.toString());
          if (oldFile.canRead() == false) {
            System.out.println(" !!!!!  Can Not Read the old File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Read the old File !!!!!!!!!!!!!!!!!!!!");
          if (oldFile.canWrite() == false) {
            System.out.println(" !!!!!  Can Not Write the old File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Write the old File !!!!!!!!!!!!!!!!!!!!");
          if (newFile.canRead() == false) {
            System.out.println(" !!!!!  Can Not Read the new File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Read the new File !!!!!!!!!!!!!!!!!!!!");
          if (newFile.canWrite() == false) {
            System.out.println(" !!!!!  Can Not Write the new File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Write the new File !!!!!!!!!!!!!!!!!!!!");
          renamed = oldFile.renameTo(newFile);
          if (renamed == false) {
            System.out.println(" !!!!!  renameTo return false !!!!!!!!!!!!!!!!!!!!");
        } catch (NullPointerException ex) {
          // Throw the same exception so that the caller may catch the
          //   exception and log the error
          System.out.println("NullPointerException For The New Dest File Name");
          ex.printStackTrace();
          throw ex;
        } catch (SecurityException seEx) {
          System.out.println("SecurityException For The New Dest File Name");
          seEx.printStackTrace();
          // Throw the same exception so that the caller may catch the
          //   exception and log the error
          throw seEx;
        } finally {
          if (renamed == true)
            return myNewFileName.toString();
          else
            return null;
      } // End renameAlertMessageFile

    Hi,
    Thank you for replying to my message. The servlet has been running for me for the last 12 months. However, it was running by itself without the Jboss-tomcat running on the same box. Can this be the catalina.policy file in the jboss-tomcat version restricted the rename operation. We are not allowed to write file under the umbrella of J2EE. But the servlet did not run within Jboss-tomcat. This really gets me thinking that something is not working correctly. Perhaps tomcat did not has the permission to write on the /alert_messages directory, again it did created the subdirectories under the /alert_messages.
    Any idea of what is going on?

  • Is there a way to rename multiple files in finder at the same time?

    for example, I have a group of pictures that I want to all start with the word "start" and be listed as "start1, start2, etc" Is this possible to do as a group versus having to individaully renaming every picture?

    There are some third-party renamers, or you can use an Automator Workflow.
    Start Automator and create a new Workflow.
    Drag in a Get Selected Finder Items Action.
    Drag in a Rename Finder Items Action. It will ask if you want to copy the items so that you don't alter the originals. Since you want to actually rename the originals, don't add that action.
    Set the parameters for the Rename. If you want to be able to reuse that workflow for different things, click the Options button and set it to show the action when the workflow runs. From your example, choose Make Sequential. Start with a new name and number it after the name.
    Save it so you can recall it when needed.
    Select your files and Run the workflow.
    You could also create it as a Service so that you can select files, then ctrl-click to select the workflow from the contextual menu. If you want that, set the Service to receive Files and Fodlers in the Finder.
    Skip step 1 (or delete it if you are converting it to a Service), but do the rest above. Save it with a short name so you can easily find it. It will appear in the Services submenu of the contextual menu.

  • How do I get the history and bookmarks to be functional when my Mac responds with "You don't have permission to rename the item "places.sqlite" as recommended in Solution 2, Part 2 - Create the database"?

    Since installing Firefox 4 on my MacBook OS X version 10.6.7 I've been unable to activate my Bookmarks or history. When logging on Firefox I get an error message "The bookmarks and history system will not be functional because one of Firefox's files is in use by another application." When I follow the direction as stated in "The bookmarks and history system will not be functional, Solution 1: Restart your computer," it doesn't help. When I attempt Solution 2: My computer generates, ""You don’t have permission to rename the item “places.sqlite”

    Start at http://www.mozilla.com and download the latest
    version. '''At the completion of the download don't let the setup start Firefox for you, when the setup ends, start Firefox in your normal manner this way you will be less likely to create a new profile.'''
    The extra startup pages are temporary -- read them. The next time
    Firefox comes up you should be back to starting with your normal home page.
    '''Note: Firefox must be down once the install starts. '''
    Close Firefox with File>Exit. Then make sure Firefox is not running --
    On Windows: check the "Processes" tab in the Windows Task Manager.
    '''On Mac: Firefox > Quit then Command+option+Esc, if Firefox running use Force quit'''
    Permission errors on Mac:
    '''If you were getting permission errors on a Mac, download the latest
    Firefox version, then uninstall and reinstall Firefox. Do not remove
    your profile directories and files as they contain your settings,
    bookmarks, history, extensions, passwords, and cookies.'''
    in any case once you are on 4.0 you might want to take a look at "(fx4)"
    * Fx4: Firefox 4.0 Problems and Orientation (#fx4) <br>http://dmcritchie.mvps.org/firefox/firefox-problems#fx4

  • After renaming a file extention from .jpeg to .jpg I can no longer type ...

    After renaming a file extention from .jpeg to .jpg I can no longer type in any of the finder related editable fields/boxes. I can still type in my open applications fields.
    This problem also happens when I happen to find a file that has been named, for instance, 2008jpg. When I add the period to have the file read correctly as 2008.jpg, a warning box appears asking - {*Are you sure you want to change the extention from ".jpeg" to ".jpg"?* If you make this change, your document may open in a different application.} Two radio buttons are available within this warning box that read - 1 - {Use .jpg}(it is not color coded, which means it must be selected manually. - 2 - {Keep .jpeg}(it is colored w/my Blue highlight color, which means it will be selected if the Enter Key is used.
    The warning box does Not appear if I remove the period from a file and not again when i re-add the period to that same file.
    After trying to make these types of edits to the name of any file, with any of the various extentions available for files in our digital world, I usually get an anomaly where myability to type in the Finder ceases to be a possibility.
    I have found that I can Force Quit the Finder for a quick fix, but, I'm not sure that this Typing problem should have to be dealt with at all by this quick fix. Is this an issue with the Indexing in Spotlight, which seems to be giving many users problems?

    I downloaded and tried EasyFind. It works but it took 30+ seconds to complete finding 3 files that are on One of my Five 25+ Gb partitions of my 130 Gb Seagate Cuda(Really 160 Gb, but my Sawtooth will only recognize 130) I figured that if I ever got a better box, I could reformat it to see the whole 160 Gb. So, as far as I can see, Spotlight's indexing scheme which finds the files instantly is probably preferable. Spot light allows you to rename your files from within it's app window. I've always thought that was pretty powerful. Could my doing so be causing me any issues? As i said it is the inability to Type in the Finder that seemed to be caused from changing file Extentions that were mis-written. Maybe it was a delayed reaction to my renaming files in the Spotlight app? I've done both on occasion.
    As for these .DS_Store files. Apparently you can NOT stop them from being written to any folder that you touch/open/view during a days session. But, as a function of the OS, are the essential to have in their respective folders Forever? I've looked at the .DS_Store terminator app briefly and assume that getting rid of these files won't hurt the regular operation of my OS. They will just be re-written if I ever have to go back to any particular folder again. But, apparently, some have said that if the plan on burning a CD or DVD of their data, they delete the .DS_Store files first and then do the burn.
    I'm thinking from your having suggested this tremination app that you suspect that my having all of these ,DS_Store files could be a situation where any of them could have become corrupted and terminating them regularly should be part of my regular maintenance.
    Does that sound like I'm understanding what I can do?
    TIA

  • Having an AppleScript Move All Files of a Certain Type From Sub-Folders to Trash

    Greetings, everyone. With my introductory post, I would like to ask for help with an AppleScript I've been slaving over for the past five hours or so. I have tried Terminal and Finder commands both, along with lots and lots of Googling, and I cannot seem to get this to work.
    Specfically, I want a script to look into a folder and all of its sub-directories, locate all files with a certain extension (in this case, APP), and then send every one of those files to the trash. Originally, I planned to delete them directly with Terminal commands that required verification, but I couldn't get that to work, and I thought that this would be a more average user-friendly version, anyway.
    I also wondered if there was any universal means of referring to a system drive without referring to it by its name, since (as you'll see in the script) the directory that these *.app files will be moved from is in the Users/Shared hierarchy. However, it's meant to be used on multiple computers, so naming the OS drive on one won't work for others. If no such wild card exists, is what I'm doing now (having the script placed in the root folder of the OS drive) acceptable?
    As it is, when I run this script, it displays all the dialogs, but the APP files aren't moved. It doesn't error at all in the AppleScript editor, it just runs and then closes down. I don't know what I'm doing wrong.
    Thank you in advance for any help you can provide.
    =====
    if button returned of (display dialog "Trash all of the APP files in your SuchAndSuch folder? (This script must be in the root directory of your system drive.)" buttons {"Yes, I'm ready", "No"} default button 2 cancel button 2 with title "SuchAndSuch Folder Prep" with icon caution) is "Yes, I'm ready" then
        set theFolder to ":Users:Shared:SuchAndSuch:" as alias
        tell application "Finder"
            set theFiles to every file of theFolder whose name extension is "app"
            move theFiles to trash
        end tell
    end if
    if button returned of (display dialog "The APP files have been trashed." buttons {"OK"} default button 1 with title "SuchAndSuch Folder Prep" with icon 1) is "OK" then
    end if

    Well, you've done more fiddling than that; you've moved everything inside the Finder tell block.  Why did you do that?  If you recall my point 2 above, it is difficult to use POSIX paths or the POSIX file command inside Finder tell blocks without generating errors, but you've done both in your revision.  I'm surprised that you're surprised that it doesn't work. 
    Applescript tries to be user-friendly, but it's still a programming language, and like any programming language the devil is in the details.  Changes that seem small and innocuous to you can make big differences in the result you get.
    Now:
    /Users/Shared should be machine independent in POSIX: you don't need to specify the hard drive name and it should be universal on all OS X installations.  You can specify it directly.
    The Finder's delete command moves fils to the trash, it doesn't erase them.  Trying to use the move command to get files to the trash is a little bass-ackwards.
    Don't put anything inside a Finder tell block unless it has to be processed by the Finder.  If you do you're just begging for errors.
    There's no need to put the script at the root level of the drive.  If the Finder needs permission to delete a file it will ask.
    untangled and revised:
    set subfolderOfSharedFolder to quoted form of "/Users/Shared/<subfolder name>"
    set response to display dialog "Trash all of the APP files in your <subfolder name> folder?" buttons {"Yes, I'm ready", "No"} default button 2 cancel button 2 with title "<subfolder name> Folder Prep" with icon caution
    if button returned of response is "Yes, I'm ready" then
      -- run spotlight search
              set filesToDelete to paragraphs of (do shell script "mdfind 'kMDItemFSName == *.app c' -onlyin " & subfolderOfSharedFolder)
      -- convert posix paths to file specifiers
              repeat with thisFile in filesToDelete
                        set (contents of thisFile) to POSIX file thisFile
              end repeat
              tell application "Finder"
      delete filesToDelete
              end tell
              if button returned of (display dialog "The APP files have been trashed." buttons {"OK"} default button 1 with title "SuchAndSuch Folder Prep" with icon 1) is "OK" then
              end if
    end if

  • Renaming a file / folder

    hi all,
    how to rename a file/folder automatically when executing java program application.. and also that renamed file should not be editable like delete,open,copy,rename manually in the specified location where the folder is.
    i have used renameTo method but the folder is still editable.
    plz suggest this,

    You need to set the permissions on the file.
    In pure java you can set the read and write permissions using File but for OS specific permission you need to run the approriate command line program to set your permissions.

  • Renaming a File to File without Mapping

    Hi All,
    I am having a scenario where there is a text file transfer without any conversion i.e. basically a file to file scenario with no mapping. The only requirement is to rename source file which has .csv extn to .dat. For instance if the sender file is XYZ.csv, the file at the receiver side should be XYZ.dat.
    As there is no mapping, I cannot use Dynamic Configuration UDF in mapping. One other option is to write an adapter module which seems too bulky for this small requirement. So as of now I am looking at any option which I can use without having to create IR objects or do text ->XML -> text conversion.
    I hope experts here can help in resolving the current problem and/or give some pointers
    Best Regards,
    Pratik

    > OS Command in File Receiver Channel: mv %f `basename %f .csv`.dat
    I think you should use the full path address, the same as you used for the folder.
    You can also use an adapter module, it is just a couple of lines:
    public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
                          throws ModuleException{
         try {
            Message msg = (Message) inputModuleData.getPrincipalData();
            Payload payload = msg.getDocument();
            String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");
            // do something with the filename
            msg.setMessageProperty("http://sap.com/xi/XI/System/File","FileName", fileName);
            inputModuleData.setPrincipalData(msg);
        } catch (Exception e) {
            throw new ModuleException(e);
        return inputModuleData;

  • How to delete & rename Quicktime files in Windows?

    Hi all,
    I am having a problem to remove(delete) and rename quicktime files in Windows XP pro because it says "*Cannot delete .... It is being used by another person or program. Close any programs that might be using the file and try again.*". I saw the same post with this issue in Page 3 in this forum, but we don't get the answer yet. Please give us the answer for it with this quicktime issue in Windows.
    Followings are some answers that I found in other websites, but none of them solves this problem.
    You can't delete those Quicktime movies because they are being used/opened by Quicktime. Run your Quicktime and clear any playlists that you saved and then open a video (that is not in one of the videos you wanted to delete). Then exist the program. Now go delete the videos you wanted to delete earlier and see if you can delete them this time.
    If you have quicktime running in the background, it will own it so you can't delete it.Rebooting may not help because quicktime usually starts with Windows. Go to C: Windows/system32 and scroll down to msconfig.exe. You can open it or right click, hold, drag it to you desktop, release right click, and create a shortcut to it. Open the shortcut (double click), go to the startup tab, and uncheck all instances of quicktime. Reboot and try to do what you want with the .mov file.
    Thank you very much in advance.

    I've been having the same issue here. I've searched high and low for a real solution and haven't found a thing. Any help would be much appreciated!

Maybe you are looking for

  • Communication between two portlets - Java Portlet JSR168

    Communication between two portlets Hi All, i want to be question how do communication between two portlets. Exam: I have 2 portlets in a portal together: a Menu portlet & a Content portlet, now i want when i click to an link of portlet Menu then my C

  • One Image at a Time on CS4

    Help, I am doing something wrong. I updated to PS CS4 - and now if I have an image open - and then open a second image - the first image disappears. I can only have one image open at a time. What did I do wrong? And - how do I fix it? Dick

  • Can Bridge sort my images into folders based on an Exif date?

    All my Adobe products are pre-CS/CS2 and I don't yet have access to Adobe Bridge. My trial copy has also timed out. However, I would like to know if Bridge has the capability to take a folder of images (Canon Raw) and move them to new folders based o

  • Imovie 09 not allowing me to drag pictures or transitions into project

    I am having strang problems with my project in Imovie 09. About 8 min. into my project, i went to drag another photo out of one of my iphoto albums in the preview menu and when I drag it to insert...nothing happens. When I go back using time machine

  • How to insert my own key

    Hi, i using the following code to encypt a string, but i now i need to encrypt using my own key, what i have to change in this code to make that possible... String message="test"; KeyGenerator kgen = KeyGenerator.getInstance("Rijndael");        kgen.