Expand/rename archive

Hello. I've been trying to create an Automator workflow to copy the name of an archive to the expanded folder, replacing a generic folder name from what I suppose is an improperly zipped archive --i.e., archive is named "ADescriptiveName.zip" but the expanded archive is a folder simply named "Folder--I want to copy the archive name to the folder".
I don't see a usable action except for the "Expand Archive" action from StuffIt Deluxe 12 (which I own), and, the Stuffit action only seems to give the option to designate specific locations for expansion--i.e., the Desktop or some other directory. Is there any way to get it to expand to the same location as the archive (as is allowed in the Expander preferences), or is there a way to use the OS X's Archive Utility to do this (I see OS X actions to create archives, but not expand them).
Or is there another way to do this?

Yes, you can expand it with Automator. The trick to figuring this out was realizing Finder is the default app for opening (uncompressing) them, as well as creates ZIP archives.
Simply add the action "Open Finder Items" after the action supplying your archive (such as "Get Selected Finder Items"). You can leave the setting to "Default Application" and the Finder will automatically uncompress it, and within the the same folder (just as you want, right?).
The tricky part is renaming the folder that has been uncompressed. Unfortunately and correctly (in order to be consistent), the file that is passed into "Open Finder Items" is the same one that comes out of it. I think it's expected that once you've opened a document with an application, the application isn't going to give anything back. Yet, this is one of those rare circumstances when you want the results of the application opening the document, instead of the original file.
However, since you said that the archive contains one folder named "Folder", you could try obtaining it with the action "Find Finder Items". Specify the folder containing the archive, then set the "Name" to "is equal to" and "Folder". Use the "Results" button at the bottom of the action to view what files the action finds. There are problems with this, such as accidently matching a folder insider the newly uncompressed "Folder".
Instead, I think after getting Automator to uncompress the file with "Open Finder Items", you would add the action "Run AppleScript". The AppleScript you'd need would process the alias that comes out of the previous action (Open Finder Items) by getting the folder the archive is in (easy), getting the name of just the archive (easy) and reformatting it the way you like (tricky), and then renaming the newly uncompressed folder named "Folder" to the new name (easy). Lastly, you'd pass the alias of the renamed "Folder" on to the next action "Create Archive". Sorry, I don't have such a script.
In "Create Archive", leave the name blank to keep the same name (the new name you've given it with the AppleScript), and then select the path by choosing "Same Folder as Input".
Hmm, now if only I had time to fiddle with a script for that renaming part...

Similar Messages

  • HT1199 Maverick and expanding compressed (archived) folders

    I recently downloaded and installed Maverick 10.9.1 and using the finder's Compress function, I archived some folders. Now some of them will not decompress, or expand when I double click. ANy suggestions?

    http://www.stuffit.com/mac-expander.html

  • Mail Archiving Issues - The Basics

    These are probably simple questions but I can't find any support in the Helps section.
    1) If I archive a main mailbox, will all of the sub mailboxes be included in the archive ?
    2) Once they are archived is it a good practice to remove the emails from mailboxes once they archived?
    3) Is there any connection with the quantity of emails in the mailboxes and the normal speed of the computer? Would massive quantities of emails slow the normal function of the mail program?
    4) I use gmail. Is it frequently checking that system for emails and is that slowing my system?
    5) What is the relationship (if any) between archived on my laptop and archived at Gmail.
    6) When I experimented with archiving it set up various apple archive mboxes. How do I know what has what in them or is it good practice just to make one giant archive mailbox? Is it a good practice to rename archive mailboxes (can it be done)?

    Let me take a stab as some of these
    1. Only if you check the box to include sub folders.
    2. Entirely up to you. Most will archive to reduce the amount of mail in their box so you would need to delete what you archive.
    3. Not sure. I've heard that there is.
    4. I can't imagine that is slows your computer noticeably.
    5. None that I know of.
    6. Re-import might be the only way to see what is in the mbox file. If you archive by folder then it would help in knowing what each mbox file contains.

  • Archive BLOB File Recovery

    I managed to not only erase the Archive folder for a user, but also the backup of the Archive folder. Recovered the Archive folder with a disk utility, but now when I try to access archives, I see the list of emails. However, upon selecting any of them, I get "Error c04f" Block checksum error. I've tried running GWCheck but it ends up deleting all the blob files saying they are invalid or not referenced. Is there a way to re-read those blob files into the message database, or am I out of luck.
    Thanks ahead for any ideas, suggestions.

    Hi,
    It could be a corrupt ngwguard.db file. You could try the following, but only do this on a backup in case it makes things worse:
    Recreate the guardian database:
    1. Rename the archive directory.
    2. Login to GW client, archive a message. This will recreate the archive directory, ngwguard.db, user.db, msg.db files.
    3. Copy the NGWGUARD.DB ONLY from the new archive directory to the renamed archive directory.
    4. Rename the archive directory back to its original name (delete the new directory).
    5. Perform a structure check on the archive. It should run clean.
    6. Login to GW client, open archive.
    Let us know how it goes.
    Cheers,

  • Archive expansion copies to user Downloads

    When I click to expand an archive, no matter what disk it is on, Lion thinks it is a download, and copies the expanded files to ~/Downloads. That is downright irritating. I NEVER want the OS to decide for me that my files need to be copied to another HDD. Any way to change this? I'll even use Terminal if necessary.

    Welcome to SDN.
    Two changes are needed, one to the print program, one to the Smartform.
    In the program specify the number of copies;
    data: params type SSFCOMPOP.
    params-tdcopies = '3'.
    Then pass this params structure to the function module parameter OUTPUT_OPTIONS.
    In the Smartform;
    Create three windows, say ORIGINAL, DUPLICATE, TRIPLICATE each in the same place on the page with a suitable text element.  Make the window type 'copies window'.  The for ORIGINAL choose 'Only Original', for DUPLICATE and TRIPLICATE choose 'Only copies - copies differ'.  Then apply a condition on DUPLICATE and TRIPLICATE based on SFSY-COPYCOUNT being either 2 or 3.
    Regards,
    Nick

  • Archive Utility brings up error message when trying to unarchive protected zip file

    Hey there,
    I've been zipping images with password protection using different applications, some with a Lightroom Plug-In Zip-Exporter, some with a stand alone app such as "Archiver". Now when I try to unzip these images on OSX 10.6 the Archive Utility brings up an the error: "Unable to unarchive "Name of File" into "Desktop". (Error 1 - Operation not permitted.) I'm logged in with an admin account. I tried this on a macbook pro and on an imac, both 10.6, same problem. Now when I try to unzip the file using third party such as Stuffit expander or Archiver, it unzips the files without a problem.
    any idea what's wrong with the OSX Archive Utility?

    Nothing's wrong with it except that it doesn't support encrypted .zip files.  You'll just have to use third-party software, or a Terminal command, to unzip those.

  • Cannot upgrade (expand) iTunes 7.3

    Cannot upgrade to 7.3. I can download dmg image which gives me iTunes 7.3 disc drive icon.
    However I cannot expand "iTunes.mpkg " icon or go any further. When I click it asks for a" folder to expand the archive" . At that point I don't have a clue. Same problem when I tried to install Safari beta. I have new version of stuffit expander? Any thoughts
    iMac   Mac OS X (10.4.10)  

    Not this time. When I click the icon it opens Stuffit expander and tells me I am in a locked destination folder. When I try to open to other destinations I keep getting error messages. I have tried everything including rebooting; downloading several times etc.

  • Archive Utility won't auto Quit anymore

    Prior to updating my March 2009 Duo Core iMac to Yosemite, Archive Utility always Auto Quit immediately after expanding Zip archives.  But now in Yosemite, Archive Utility expands the archive but then stays open (green icon remains in the Dock with black dot beneath).  And sadly, I see nothing within Archive Utility's preferences to "Auto Quit."  How do I make Archive Utility AUTO QUIT under OS X Yosemite?
    Thanks.

    Surely some of you experienced people here in this forum must know.
    I look forward to your kind advice and insights.
    Thank you.

  • Why do I have multiple archives in mailbox

    Having upgraded to mountain lion I now have four "on my mac" folders in the archive folder.
    If I try to open any of the top three ones the bottom one always opens.

    Same problem.  Here's what it looks like.
    I did a manual transfer of the mail files from my Lion Partition to my Mountain Lion Partition. 
    To do so I placed
    folder Mail in User / Library /
    file com.apple.mail.plist in User / Library / Preferences
    before starting up Mail.
    On startup of Mail I got the Mail Upgrade Dialogue :
    After my existing Mail messages were upgraded through a series of progress bars I had the multiple "On My Macs" in the new "Archive" box.
    The bottom Archive Box is the controlled one.  Click on any of the expand triangles and it (alone) expands in the sidebar. 
    Also:
    Expand the "On My Mac" mailbox,
    Collapse the "Archive" box,
    Expand the "Archive" box
    ... and all "On My Macs" mailboxes are expanded.

  • Archive job never completed

    Hello all;
    I have sent archived ADK admin, job started, log said archived data already but the archive job status never green.
    still incomplete session and hanging in the system.
    Pls advise why job never completed .
    Thx in advance.

    Hello,
    To check to see if the archive file is actually available, go to the Management data of the archive object (from transaction SARA), expand the archive session to see the file(s), double click on the file and look at the Archive Administration: Archive File Detail information.  Check at the bottom of the pop-up box and you should be able to see the File Name, the Logicial Path and the Physical File Name. 
    Regards,
    Karin Tillotson

  • JWS using WAR archives and Version based DL

    Hi everyone. I am having trouble with JWS. Let me explain what i am doing and maybe someone can tell me what i am doing wrong and what i need to do.
    I created a war file in the same structure as what is shown in the "Packaging JNLP Applications in a Web Archive" docs. So my jnlp file is in the war file in the app directory along with my jar files. The web.xml is in the WEB-INF directory and the other needed files in the WEB-INF/lib directory (that is where the jnlp-servlet.jar file is located within the war file).
    Next, i have an iplanet server. I created a directory on the server - eqam/app_version and i placed the war file there. I expect now when i goto my browser and go to "(server here)/eqam/app_version/app" it should go to servlet in the war file, which then launches the jnlp file. Is my understanding correct, because that does not work.
    Here are a few questions. Am i supposed to place the jnlp-servlet.jar anywhere else on the server outside of the war archive, or is the server supposed to expand the archive somehow (how do i get it to do that)? Also, how do i configure the iplanet server to use this servlet?
    Any help will be appreciated. Thanks!!
    Chris
    Here is the JNLP code...
    TS: 2002-07-22 14:30:00
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0"
    codebase="$$codebase"          
    href="$$name">
    <information>
    <title>Title</title>
    <vendor>Vendor</vendor>
    <homepage href="$$context"/>
    <description>Description</description>
    <description kind="short">Opera Style MDI</description>
    <icon href="images/check_digit_calc.gif"/>     
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
         <j2se version="1.4" />
         <jar href="guiMgr07152002.jar" version="1.5" download="eager"/>
         <jar href="accountpreview.jar" version="1.5" download="eager"/>
         <jar href="alert.jar" version="1.5" download="eager"/>
         <jar href="accountSearch.jar" version="1.5" download="eager"/>
         <jar href="CheckDigitalCal_srvc.jar" download="eager"/>
         <jar href="eqam_framework_07122002.jar" version="1.5" download="eager"/>
         <jar href="login_srvc.jar" version="1.5" download="eager"/>
         <jar href="resources.jar" version="1.5" download="eager"/>
         <jar href="serverside_07162002.jar" version="1.5" download="eager"/>
         <jar href="swingutil.jar" version="1.5" ftpdownload="eager"/>
         <jar href="desktopsrvc.jar" version="1.5" download="eager"/>
         <jar href="3rd_parties/weblogic_core_lite.jar" download="eager"/>
         <jar href="3rd_parties/weblogicaux_lite.jar" download="eager"/>
         <jar href="3rd_parties/xalan.jar" download="eager"/>
         <jar href="3rd_parties/xerces.jar" download="eager"/>
         <jar href="3rd_parties/jdomb8.jar" download="eager"/>
         <jar href="3rd_parties/lookAndFeel/kunststoff.jar" download="eager"/>
         <jar href="3rd_parties/lookAndFeel/macplaf.jar" download="eager"/>     
    </resources>
    <application-desc main-class="com.gs.eq.accountmaster.client.guimanager.AppManager"/>
    </jnlp>

    ensure you web.xml is set so the Download servlet processes requests for jar files
    eg
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <servlet>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jnlp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
         <servlet-name>JnlpDownloadServlet</servlet-name>
         <url-pattern>*.jar</url-pattern>
    </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
         </welcome-file-list>
    </web-app>

  • Archive on OSX for Windows Issue

    When I select "Create Archive" of a folder with say 5 Excel files what happens on the Windows receiving end when they expand the Archive they get two folders, one has the name of the original folder say excelfiles and one folder called _MACOSX with the same files inside but the file name starts with a period and underscore (._name)
    HOW to send just the one folder and not the _MACOSX folder when Creating Archive?

    Hi Krag,
    have a look at YemuZip http://www.yellowmug.com/yemuzip/
    It has a feature to make ZIP files for PC users without the _MACOSX folder.
    Hope it helps
    Stefan

  • Weird problem how to delete a file in the cloud

    Hello there,
    I'm now a proud member of the Adobe Creative Cloud.
    Once signed in everything looks normal and I can upload a file simply by dragging and droppping.
    Now the problem: i'm not able to DELETE a file; there is no trash icon like in the online video of Adobe.
    If I select a file, the only actions on the left marker are available:
    - Post Publicly (behance)
    - Send Link
    - Move
    - Rename
    - Archive.
    If I use the main blue button (Actions), the only actions I see are:
    - Create a folder
    - Upload
    - Search
    Please reply to this problem, kind regards.
    If you want I'm happy to send a screenshot.

    Thanks Mylenium.
    Here is a post with screen shots covering how to Archive and Permanently Delete files - http://forums.adobe.com/message/5362803#5362803.

  • Install demo error

    hi i am using vista and thought i would try premiere cs4 demo. i have encore premiere and photoshop cs3 already. i tried to install it and keep getting this
    one or more required components of adobe premiere pro cs4 failed to install correctly
    Adobe premiere cs4 and encore cs4 dont install any help here.

    Have you "extracted" the archive file (if you downloaded from Adobe), prior to attempting to install. I do not mean just "expanding" the archive file, but actually "extracting" all files and folders (keep the folder structure, should there be one).
    Now, if you ordered the trial DVD version, you might try making a copy of the DVD contents to your Desktop and launching the installer from there.
    Having previous versions of Premiere installed should not have any bearing on installing either the trial, or the purchased versions of CS4.
    If you do get it to work, purchase CS4 and install that, then go to remove CS3, be aware that you might then have to reinstall CS4, as some components are removed with the removal of CS3. Just something to remember, should you get to that point.
    Good luck,
    Hunt

  • Yosemite 10.10.1 will not allow me to copy multiple files to a NAS -error file in use, but other OS OK.

    I am running Mac OS 10.10.1 on a Mac Mini with 16G.
    I have a Buffalo NAS and wanted to copy files from one folder on the NAS  to another on the NAS.
    Under Yosemite I can only copy them one at a time. If I try to copy more than one I get an error message that the file is in use.
    Under SNS 10.6.3 (running under Parallels) I can easily copy a large number of files.
    Again under 10.10.1 I get the same problem when copying from my desktop to the NAS.
    The files are definitely not in use elsewhere and in any case if they were I wouldn't be able to copy one at a time.
    When I try to copy multiple files the OS creates greyed out icons of all the files to copy and then aborts when it actually tries to copy the first file.
    Any clues please, my current work around is to compress all the files to move, move the archive, expand the archive. This is not going to work for very large numbers of files - l'll be at it all day.
    Tony

    I have been unable to drag and drop large files, even onto the Desktop, let alone onto my NAS - I get the dragged files freezing in the middle of the screen or I get the 'unable to copy / file in use' error.
    Talking to Apple Support, they had me set up a new User, and then within that new account, the trouble went away. This pointed to the StartUp items being run in the original troublesome account,
    I have deleted all of my 3rd Party programs and then installed them one by one until the problem came back, and in my case (Macbook Air 5,2 running 10.10.3 Yosemite) I found it was DropBox causing the conflict. I have DropBox running in the Menu Bar (top of screen) and disabling sync (bottom left corner) stopped the file copy problem. Try disabling DropBox sync is file copying is failing?

Maybe you are looking for

  • Error While recon

    I am getting the below error while doing the Recon with AD resource. Error while examining Identity Manager user 1234567: com.waveset.util.WavesetException: Missing user attribute 'userDN' used in identity template for resource 'AM Active Directory'

  • How to make a widget like "gorongosa landscapes", featured in ibooks author gallery of widgets?

    Dear all, I would like to make a widget, similar to "Gorongosa landscapes" demo in author gallery of widgets: http://www.apple.com/ibooks-author/gallery.html Any idea? Best, M

  • Anyone have trouble connecting to web services with CF10?

    I'm trying to connect to InDesign server running in the same box @ http://localhost:18383/service?wsdl and this gives me the error "Web service operation RunScript with parameters ... cannot be found". I tried toggling web service version in CF admin

  • Pl sql packages getting invalid

    Hi All, I am working on a OLTP VLDB oracle 10g database. I have observed that many of pl sql packages get in invalid state. There are many cronjobs , dbms jobs running 24x7. How do I find out the root cause of this?

  • FORM EXITS Vs FUNCTION EXITS

    Hi folks I am a little confused on FORM EXITS& FUNCTION EXITS...can anyone provide me what exactly is the differnce between these two. How we go about using these two in various scenarioes. Thanks in advance. Regards Ram