How to delete a specific file type from a folder

Hi,
I have folders with lots of zip or rar files, once I decompress those I want to delete the compressed files specifically. Is there any way I could manage that through Automator?
Thanks in advance.

Thanks Niel for the script, unfortunately I am too ignorant about running these on my own, I did save it in my user script library, but I would need instructions to run it. I would be really grateful.
I did try making up my own workflow using the given actions in Automator, the first action was to 'find specific files in finder' ending with .zip and .rar and then choosing another action which 'moves selected files to trash'. Unfortunately it ended up running only if I specify the path to the specific .zip file, which defeats the purpose. Any suggestions on the proposed workflow? Thanks in advance.

Similar Messages

  • How can I get specific files back from my Time Machine backup?

    I wanted to make a fresh install on my MacBook Pro, in order to only have Java 8 instead of any older Java versions. So far so good. But now I want to get specific files/libraries from my external backup (USB):
    One Parallels Virtual Machine
    My old mail
    My iPhoto Library
    I don't need any settings for these, since I can easily configure them again.
    I already used the Migration Assistent to restore all apps.
    How can I get specific data back from the backup without restoring all stuff that I don't want anymore?
    I'm now working on a new account on the fresh system, called 'Admin'. My old account was called 'Hans' (or 'hans') and I'd like to create such an account again for all my tasks.
    Hans

    How can I get specific data back from the backup without restoring all stuff that I don't want anymore?
    I'm now working on a new account on the fresh system, called 'Admin'. My old account was called 'Hans' (or 'hans') and I'd like to create such an account again for all my tasks.
    You will want to add the same User account(s) which hold the data you want to restore. So you will want to add a User account of 'Hans or hans'. Check your Time Machine back up drive to see how the User account is labeled (Hans or hans). Navigate to the Users folder and see how it's labeled.
    You can then use your Time Machine back up drive and navigate to the User Home folder to copy its data over (e.g. contents from Documents, Downloads, Music, Pictures, etc.). Repeat for other Users.

  • How do I retrieve specific files/folders from separate machine's backup

    Had a hard drive failure this morning. Now I'm on a temporary laptop without my files. I share a Time Capsule between 4 users. My backup is on there, and looks ok (although, I can't really figure out how to browse what's backed up - separate issue).
    On my temporary machine, I'd like to be able to grab specific files from my backup while I wait to get my machine back from support.
    I referenced FAQ tip 17 ( http://web.me.com/pondini/Time_Machine/17.html ) - and when I open up the Browse other Time Machine Disks - it's blank.
    Any Ideas would be tremendously helpful, and I will love you for ever and ever and ever.

    majmanMac wrote:
    I referenced FAQ tip 17 ( http://web.me.com/pondini/Time_Machine/17.html ) - and when I open up the Browse other Time Machine Disks - it's blank.
    You'll probably have to manually mount the sparse bundle for the desired Mac, by double-clicking it via the Finder. Then it should show up in the list.
    But you may not be able to view or restore much that way; the user account on the temporary laptop probably isn't recognized as the same user in the backups of the other Mac. Your best bet in that case is to use +Migration Assistant+ to transfer the user account in question to the temporary laptop. Then you can sign on there, just as you did on your Mac. See: [Using Migration Assistant|http://web.me.com/pondini/AppleTips/Migrate.html].
    Note that if space is a problem, you can omit the contents of some of the top-level folders. And, once the account has been transferred, you should be able to restore selectively from those backups, via the "Star Wars" display.

  • Spotlight: How to search for specific file types?

    Hi. I'm looking for bookmarks that may contain a particular word. Is there a way to filter my spotlight (or finder) searches just for a particular file type? I know you can sort results by file type, but it's rather just filter in the first place...

    Command F should do it. Once the search window appears, you should see a drop down box headed kind and next to it one headed any. Select PDF from the any one. Click the plus button, and another field will appear and you can see again more drop down boxes. You just want to set these up so you end up with name and contains, you can then add your text to the remaining field.
    Also see [this|http://apps.tempel.org/FindAnyFile/index.html]
    Message was edited by: gumsie

  • Automator action to move a specific file type to a folder..

    've started shooting pictures in raw and jpg format. After I grab the pics from my camera, I'd like to put the raw files in a separate folder.
    I've played around a little but can't figure it out-- so I dunno if it's possible. Is there a way I can make an automator action where I enter or select the folder and run the action. It then makes a folder named RAW and moves all of a certain file type to the RAW folder. Is this possible with automator?
    I'd like it to make a folder named RAW inside the current folder I'm in or have selected.
    I think I figured this out using filter finder items, and move to specific folder, but I think I need to learn how to use variables for this to work how I want it. Do I need variables or is there another way?

    the following script should do it provided your Raw image files have extensions "raw" (do they?). If they have another extension, modify next to the last line accordingly.
    tell application "Finder"
    set theFolderName to "Raw"
    set curFolder to (folder of the front window as alias)
    -- Determine whether the specified folder exists
    if folder theFolderName of curFolder exists then
    set theFolder to folder theFolderName of curFolder
    -- Create a new folder, if it doesn't exist
    else
    set theFolder to make new folder at curFolder with properties {name:theFolderName}
    end if
    move (every file of curFolder whose name extension is "raw") to theFolder
    end tell
    Save the above script as an application using Script editor. To use it, select the folder you want to work on and run the script.

  • Comparing count and combined file sizes of specific file types in target folder and subfolders

    Hi all,
    I have a script that I use to delete files with a certain file extension in a folder and its subfolders. I would like to enhance to the script by counting the total number of files and their combined size in MB that the script is deleting and use this information
    in a popup where a message will say something like "X No. Files deleted totalling YMB
    The existing script so far is:
    get-childitem  -include *.****.rfa -recurse | foreach ($_) {remove-item $_.fullname}
    Can any advise what I need to add as I'm quite new to powershell.
    Thanks

    So you do not know how to write a simple output statement.  I think you need to start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    Not specifically within Powershell no, like I said I only started looking at it this week as an alternative to VBS.
    Nothing is being declared.  You need to learn the basics of PowerShell.  We cannot teach you one line at a time.
    Really? So the author of
    this website is talking rubbish is he? ("Once data is assigned to a PowerShell variable, it’s automatically declared.")
    I never asked for line-by-line hand holding nor am I someone who wants others to write the entire code for me. Examples of previous scripts that perform similar or partial operations would have been a good way to guide a new user unfamiliar to this topic.
    Additionally posting modified(incorrect) and unfinished script examples without clearly stating what your code is doing nor that additional lines of code need to be added before the script will operate as outlined in the original post is confusing to someone
    with 0 experience in this area.
    On forums I frequent that are relevant to subjects which I have good experience with, whenever I respond to a genuine query of that has an example of what they are trying to create/modify, I will happily provide a full example and/or explain what I
    have done so the OP understands exactly what I did to achieve their request in my example. For someone with your points tally (and likely a respected poster amongst your peers on this site) responding with what is essentially "RFTM Noob" I trust you can understand
    is somewhat disappointing.

  • How to upload all excel files data from one folder into internal table.

    Dear All,
    I have one requirement, It is like I want to upload the frontend file data into my internal table, But here my scenario is;
    If I have one folder ( Called : Temp) in my frontend system, in this folder ( Called : Temp)  I have 100 excel files. In each excel file I have some 1000u2019s of entries. All these data of every file I want to take into my internal table.
    If I have one file I can go for, CALL METHOD cl_gui_frontend_services=>file_open_dialog and then upload method to upload. But I want to take all these excel files from that folder at a time, is there any class or any thing is there..? plz help..
    Thanks...
    Edited by: satishsuri on Jan 11, 2011 9:33 AM

    Hi satishsuri ,
    You will have to use 3 methods together :
    CALL METHOD cl_gui_frontend_services=>directory_browse "Browse the Directory
    CALL METHOD cl_gui_frontend_services=>directory_list_files "Get all the files from the directory
    CALL METHOD cl_gui_frontend_services=>gui_upload "Upload each file in a loop
    Example:
    TYPES: BEGIN OF ty_data,
             line TYPE string,
          END OF ty_data.
    DATA: str_file TYPE string,
          str_dir TYPE string,
          it_file_table TYPE STANDARD TABLE OF file_info,
          wa_file_table TYPE file_info,
          v_count TYPE i,
          it_data TYPE STANDARD TABLE OF ty_data,
          wa_data TYPE ty_data.
    CALL METHOD cl_gui_frontend_services=>directory_browse
      CHANGING
        selected_folder = str_dir.
    CALL METHOD cl_gui_frontend_services=>directory_list_files
      EXPORTING
        directory  = str_dir
      CHANGING
        file_table = it_file_table
        count      = v_count.
    LOOP AT it_file_table INTO wa_file_table.
      CONCATENATE str_dir wa_file_table-filename INTO str_file SEPARATED BY '\'.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename = str_file
          filetype = 'ASC'
        CHANGING
          data_tab = it_data.
      LOOP AT it_data INTO wa_data.
        WRITE : / wa_data-line.
      ENDLOOP.
      ULINE.
    ENDLOOP.
    Regards,
    Jovito

  • How do I force a file download from a folder above the root?

    I am new to ColdFusion and need some help. I set up a virtual folder on my website and then mapped in the CF9 admin panel to a "Docs" folder above my root, where I would like to store sensitive documents. CF tags are enabled.
    I know that my mapping is set up correctly, because when I set up a cfm page with the following code, I can successfully download the file:
    <cfheader name="Content-Disposition" value="attachment; filename=Calendar.pdf">
    <cfcontent type="application/pdf file=/Docs/Calendar.pdf">
    But what I need is to create one cfm age that will be able to handle downloads of multiple files types and names from the folder above my root.
    I then found Duke Snyder's solution on an older forum for the "click link and download file" question where he suggests making a "download.cfm" page with the following code:  I did this, and named the file "download.cfm"
    <cfsetting enablecfoutputonly="yes">
    <cfheader name="Content-disposition" value="attachment; filename=""#Url.FileName#""">
    <cfcontent type = "foo/bar" file = "/Docs/#Url.FileName#">
    Then Duke suggests: "Now I pass the FileName through the Url and it WILL ask if you want to open or download the file. We accomplish this by making up an eronious file type."
    I then set up a password-protected page on the site that lists the titles of a number of documents, with links to the virtual folder, where they can be downloaded.  One of the links, which goes to "Calendar.pdf" I constructed as: "download.cfm?FileName=Calendar.pdf"  When I click on the link, I get the popup box that says "Do you want to open or save this file?  With the name listed as: "download.cfm?Filename=Calendar_pdf"
    When I click "Save", I get the message: "Internet Explorer cannot download download.cfm from www.... Internet Explorer was not able to open this Internet site.  The requested site is either unavailable or cannot be found. Please try again later.
    I must have constructed the link incorrectly. Any ideas?  Thanks in advance for your help.

    I am trying to force the download of pdf files from a folder above the root.  The file below is named "download.cfm"  I pass the name of the file (Calendar.pdf) in the URL link, as follows: download.cfm?filename=Calender.pdf
    In the ColdFusion admin panel, I mapped a folder in the root "Docs"  to point to a folder with a different name above the root.   I have tried the code below, which was generously supplied by another member of this forum, but it does not seem to recognize the CF mapping. Do I need to use another CF Tag for the mapping to working correctly?
    <cfsetting enablecfoutputonly="yes">
    <cfheader name="Content-disposition" value="attachment; filename=""#Url.FileName#""">
    <cfcontent type = "application/pdf" file = "/Docs/#Url.FileName#">
    Thanks for your help

  • How to SEARCH for specific file TYPES, e.g. PDF?

    If I know the title has in it "resume" and I know it's a PDF, how do you search for all PDF files that have the word "resume" in the title?
    AND..
    How would you search all PDF files that had the word "supervisor" inside the document?
    Thanks

    Command F should do it. Once the search window appears, you should see a drop down box headed kind and next to it one headed any. Select PDF from the any one. Click the plus button, and another field will appear and you can see again more drop down boxes. You just want to set these up so you end up with name and contains, you can then add your text to the remaining field.
    Also see [this|http://apps.tempel.org/FindAnyFile/index.html]
    Message was edited by: gumsie

  • Since the installation of Firefox 8, I cannot download a specific file type from email. I use this for work and MUST be able to open these files with a specific software. When FF opens the file, it changes the extension and it will not open. Help!!!

    I use the Microsoft Outlook Web App for work email. I receive files with a .RXML extension. This has always worked just fine until the latest version of Firefox came out (I was using FF 7 until this weekend). Now FF changes the extension to .ashx when I open the file and I cannot download it into my software. If I go to the company internet site and download directly from there, it does the same thing. But I can open these files just fine from IE. I REALLY don't want to have to go back to IE.

    I opened one of the PDF files in notepad and these are the first couple lines:
    瀖ᕁމጿ␠씴豈䧉筩롈ꓳ劏ꎯ僪뚢頟뻏즏谀㿃夑퀉꟠鲲쮂⫉笿褡밤籞冁탁ӓ轸뿐笼ⵆ횰䄌ඁ淥ة寨闤⬅鳦팥링빨嬄敎უ婏㣴ً鮓ࣿꢚ㑀녲莒඼ိȆ䕇纍쉉籶뺝갞伐쮠᥏﯒넉釖ȓ겴☧ ἣ秵駻�䣞띰㖔流羀籔朼敨ꢉ糶당⬤俉膇䄐惡�ಹꛖ鍡恡ⱶᶜ�堷﹑ﱌ僿걄뎔æ䋷귪⛢⫐䅪䉙὿烶ꖆ႟ᗔ瘞狻틫儩六잶覱낵듘盋崾�ᦜ㺆௹뻹燴ឋ騙쬄ꏿ뽒煹�钼뇲腎稦ꃲ㈃沒ꔈ뺐뛽첑䘶畱䍣紻 ⁜哠鳾

  • Can Photoshop Convert Selected File-types From a Folder Full of Files?

    I have a folder with approximately 20,000 files in it. The files are a mix of eps, tif, jpg, and PSD files. I want to convert all the eps files to tifs. For now I've created a folder into which I move approximately 500 eps files at a time (that I manually select) and then run a batch action I created to convert them. This works fine but you can imagine how long this process will take (moving, converting, emptying the folder, moving 500 more files, and so on). I'd like to know if there's a way, either within an action or the batch command (or possibly a script or even some other way) that Photoshop would select only the eps files to convert. I could let it run overnight if it were possible.
    I'm using Photoshop CC on a Mac running 10.6.8 with 7GB RAM.
    Thanks,
    Lloyd

    I'm not sure about EPS files but the rest can be taken care of via File > Scripts > Image Processor. I'm pretty sure that EPS files can't be handled by Image Processor though.

  • MDT 2013 USMT customization to exclude specific file types

    Hi,
    I have a need to exclude a specific file type from migration with USMT within MDT 2013.
    So far, I think I know the following:
    I have to create a custom XML file.
    I have to place the custom XML file in the deployment share's Tools\x86|x64\USMT5 folder.
    I have to reference the custom XML file customsettings.ini using USMTMigFiles003 (1 and 2 are used by the default files).
    I think I'll need to use unconditionalExclude.
    However, I am having trouble finding a proper example of a custom XML file. I can find the reference documentation, but actually having a single example isn't as easy to find.
    Specifically, I want to exclude all VMDK (VMware virtual hard disks) from being migrated, regardless of where on the machine they are.
    Thanks for any assistance,
    SA.

    You need something like the below. You can find it in the provided link:
    <unconditionalExclude>
    If you want to exclude a file type from the migration, regardless of the other <include> or <exclude> rules, you can use the <unconditionalExclude> element. This element excludes objects globally across all components. For example, you
    should use this element if you want to exclude all .mp3 files from the computer.
    <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/excludefiles">
    <component context="System" type="Documents">
    <displayName>Test</displayName>
    <role role="Data">
    <rules>
    <unconditionalExclude>
    <objectSet>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
    </objectSet>
    </unconditionalExclude>
    </rules>
    </role>
    </component>
    </migration>
    http://technet.microsoft.com/en-us/library/cc722303%28v=ws.10%29.aspx#Ex1
    Dustin Estes - MCP | www.dustinestes.com

  • How do I find out what program / file is using 100 GB of space on my Hard drive?  Once I find the problem  how do I delete the specific files to increase GB of space?

    How do I find out what program / file is using 100 GB of space on my Hard drive?  Once I find the problem  how do I delete the specific files to increase GB of space?

    Use OmniDiskSweeper
    Once you find file, it can be deleted from within OmniDiskSweeper
    Allan

  • I deleted a specific file folder from my Seagate backup drive, via Time Machine. Instead of only deleting that file, it deleted ALL my files for that date.

    1. Why? I was quite obviously selecting one file folder ONLY.
    2. Is there any way to retrieve the lost items?
    3. How do I avoid this happening in the future?

    Never had any issues while deleting specific files/folders from a time machine backup.
    However, regarding the original post, what do you mean by "file folder"? Did you select a FILE for deletion, or a FOLDER? These two terms tend to be quite different, you know.
    If you selected a FOLDER, then ALL FILES inside the folder have been deleted. If you selected a single FILE, then only that file should have been deleted. "Delete all backups of..." is a completely different story.

  • How to change file type from .zip to .dock

    I would like to know how to change the saved file type (.zip) to other file types such as (.txt), (.doc), (.dock) or (.pdf).

    It's more complicated than just changing the name of the file to have a different extension.  What you have to do is to convert a file from one format to another.  To do that you have to use an application that knows how to open the original type and how to write the format of the new type.  The application to use for a given combination depends on the combination.  For example, the Preview applications knows how to read a JPG file and write the contents to a PDF file.
    A ".zip" file is a somewhat different case.  A ".zip" file is an "archive" that (generally) contains other files compressed within it.  If you double-click on a ZIP file, it should expand into the enclosed files.
    If you give specific examples of what you want to convert, people should be able to explain what to do.
    By the way, I'm not familiar with a file of type ".dock".  What is that?

Maybe you are looking for

  • Calling a jsp page from an if statement??

    Hi I am going toexplain what I can do already first then explain what I want to do: 1) I have an html page that has a form. This form requests a userId and password to be entered. Upon submission of this form a java servlet is called 2) the java serv

  • How old is my Mac mini

    How old is my Mac mini? Here is the info from the 'about this mac' button: Model Name:          Mac mini   Model Identifier:          Macmini2,1   Processor Name:          Intel Core 2 Duo   Processor Speed:          1.83 GHz   Number Of Processors: 

  • Syncing from aperture fail.

    I have got a problem during syncing my photos from Aperture to my iPhone. And later iTunes wrote aperture library is not available. What can I do now? Thanks. Aron

  • Output type configuration in nace

    Hi Experts, I have a requirement in invoice smartform, so i want to create my own output type .Actually that is normally done by functional. But i need to know how to configure zoutput type in nace. some steps i followed.in NACE>V3(billing)>new outpu

  • Bypass dropbox decryption on ASA CX

    Hi,  I have a client with ASA 5515-X and CX module for URL filtering and AVC. All the users have dropbox or google drive and in this moment present synchronism issues; we can identify that the problem is on the decrypt policies; the user guide for AS