Trouble Cleaning Up At The End of an Automator Action

So my automator action currently downloads a file (a .dmg), mounts it, copies its contents to Applications, and then... I then want to unmount the dmg and throw the dmg away. However, by this point I no longer have the references to these two items:
download file -> mount file -> copy items
I'd like to be able to get back to the downloaded file so I can trash it, but there's no way to "store" its name or reference or anything. Any ideas? Unfortunately I can't just do a search for it since its name is often different.
Thanks in advance!

ineedadifferent...
Try adding the following steps at the end of your current workflow. Steps 1-4 are Finder actions; step 5 is an Auomator action:
1) *Get Specified Finder Items* -- in the Open dialog navigate to your Macintosh HD > Users > +your name+ > Desktop. Select the Desktop folder and hit Open. Leave the Options unchecked.
2) *Get Folder Contents* -- Leave both "Repeat for each subfolder found" and the Options unchecked.
3) *Filter Finder Items* -- Whose: Name Extension - Is equal to - dmg. Leave the Options unchecked.
4) *Move to Trash*
5) *Run AppleScript* -- your script might look like this:
on run {input, parameters}
tell application "Finder" to eject (every disk whose local volume is true)
return input
end run
Good luck!
Andrew99

Similar Messages

  • How to get the end of a download action ?

    Hello !
    My web application must download zip file.
    Actually, the servlet's code for download is like this :
    response.setContentType("application/download");
    response.setHeader("Content-Disposition","inline; filename=DownloadFile");
    ServletOutputStream l_ServletOutputStream = response.getOutputStream();
    l_ServletOutputStream.write(l_ByteArrayOutputStream.toByteArray());
    l_ServletOutputStream.flush();
    The client can see a popup dialog box asking him to save the file on disk or open it or cancel. In case of save action, file is downloaded but I don't know when this action finished. Is there any event to catch or something else that inform about the end of downloading action ( I have to refresh the display with a new JSP ) ?
    Thanks for your help !

    Propably to correct way would be to use HTTP-headers to indicate the length of the file, so actual application download is possible also through other clients, rather than the specific one, so you could do:
    response.setHeader("Content-length",l_ByteArrayOutputStream.toByteArray().length);I'm not really sure if servlets do this automatically, they really should though, but I'm hazy on their implementation and you might want to check the HTTP specification on whether or not the length of the headers should be included in the Content-length field, as it might be required to.
    Tuomas Rinta

  • Can't Get the "Compare Word Documents" Automator Action to Work

    I'm trying to build an automator workflow that will use the "Compare Word Documents" action (office 2011) to compare 2 documents.  The expected output would be a new document that shows the changes made between document A and document B, much as if I had used the "compare documents" feature within word.
    I think I must be passing the wrong variables into this action because I cannot get the compare to actually work.  Here's what I've tried:
    I have a "get specified finder item" that selects document A
    Then I have an "open word document"
    Then I have a "compare word documents".  In the "Compare Against", I have selected document B
    When I run this workflow, I end up with 4 windows open -- document A, document B, a copy of each.  And in no case do I see the comparison.
    Does anyone know how to get the compare documents workflow to work properly?

    Hi Bob,
    That is what I thought...but, then when I learned about the End Nested Style Sheet here character, I thought that would override that issue.
    Thanks for clarifying that there is no way around the new paragraph issue.
    I kept thinking there has to be a way and I just don't know how to do it, but I guess that is not the case. That is the only downfall to me regarding that amazing feature.
    thanks!
    Barbara

  • TS3212 im having trouble installing itunes!! it downloads but when i install it it run but at the end it always says error!! i have a windows 7 latop

    it wont let me install itunes! i click run then install and it runs but at the end it always says error!

    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? Are they also 8007054F, or some other number? (If they're another number, what number are you getting?)

  • TS1814 hello i have  a trouble with my i phone... i was trying to update a new software and at the end it says that there is some error and i cannot turn my i phone bak on all it shows is itunes logo in the midlle and usb cable with an arrow pointing to t

    hello i have  a trouble with my i phone... i was trying to update a new software and at the end it says that there is some error and i cannot turn my i phone bak on all it shows is itunes logo in the midlle and usb cable with an arrow pointing at the logo. If anyone knows what it is and what i should do please get back to me as soon as possible many thanks.

    http://support.apple.com/kb/HT1808

  • TS3694 hi i had a trouble with my iphone 3gs so tried to restore my ios through itunes almost everything was happening at the end of the procedure im getting apopup showing error 29 how to resolve it ?

    hi i had a trouble with my iphone 3gs so tried to restore my ios through itunes almost everything was happening at the end of the procedure im getting apopup showing error 29 how to resolve it ?

    jk82 wrote:
    im getting apopup showing error 29
    Try Here  >  http://support.apple.com/kb/TS3694#hardware

  • I am performing a clean install of OS X vs. 10.8.5 on a new internal hard drive.  At the end of the installation process the progress bar stalls with a minute to go - error message "Can't download the additional components needed to install OS X" appears

    At the end of the installation process (Clean install, new 500GB internal hard drive, formatted and partitioned, MacBook 13" Aluminum, late 2008) the progress bar stalls and eventually a drop down error message appears "Can't download the additional components needed to install OS X".   I am using a USB 8 GB bootable flash drive.  Any ideas? 

    At the end of the installation process (Clean install, new 500GB internal hard drive, formatted and partitioned, MacBook 13" Aluminum, late 2008) the progress bar stalls and eventually a drop down error message appears "Can't download the additional components needed to install OS X".   I am using a USB 8 GB bootable flash drive.  Any ideas? 

  • I'm having trouble with my computer, I boot it up and within a few minutes it freezes and I have to restart it, I tried updating it to the latest mavericks but it won't finish the installation it's stuck at the end, what can I do to fix this?

    As stated I'm having trouble with my computer, I boot it up and within a few minutes it freezes and I have to restart it, I tried updating it to the latest mavericks but it won't finish the installation it's stuck at the end, what can I do to fix this? I need it for homework tonight.

    Crowntheme,
    you can try this: boot your MacBook Pro into Recovery mode by holding down a Command key and the R key as it starts up. Once the Mac OS X Utilities menu appears, select Disk Utility. On the left-hand side of the Disk Utility window, select your internal disk’s boot partition (typically called “Macintosh HD”). On the right-hand side, press the Verify Disk button if it’s not greyed out; if it is greyed out, or if it reports that errors were found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu to restart in normal mode. Does it still freeze after a few minutes?

  • Has there been trouble with the charger.  I am getting to re-order but the one i had the had the power surge and the end was blackened.  Not sure if it safe to use the laptop again?

    Has there been any trouble with the charger?  I am getting ready to re-order but the one i had.... the had the power surge and the end was blackened.  Not sure if it safe to use the laptop again?  Thanks.

    Can you also see blackening in the power jack on the PowerBook? If so, I would be worried that the surge also damaged the computer/
    Does the computer run OK on just the battery? If it is working on battery power, that limits the number of things inside the computer that could have been fried.
    If the computer is severely damaged by the surge, it's not worth repairing. However, a couple of posters in Apple forums said their homeowners'/renters' insurance paid them replacement value of their computer after power surge damage due to known problems on the grid, like the huge power outage that hit the SW Untied Stats and part of Mexico yesterday.

  • Making simple Cross desolves at the end of still photo clips from my library. Not making a clean disolve beteen. Single frames from the previous clip are flashing half way through the desolve. Did both a drag and drop and insert disolve.

    Making simple cross desolves at the end of still photo clips from my library.
    Not making a clean disolve between clips.
    Single frames from the previous clip are flashing half way through the desolve.
    Did both a drag and drop and insert disolve.

    Making simple cross desolves at the end of still photo clips from my library.
    Not making a clean disolve between clips.
    Single frames from the previous clip are flashing half way through the desolve.
    Did both a drag and drop and insert disolve.

  • I can't download the latest update 5.0.1 I've tried several times and it gets to the end of about 70 minutes of downloading and then says the server timed out. Had the ohone for a year and no trouble until now. Please advise what to do. Thanks.

    I can't download the latest update 5.0.1 I've tried several times and it gets to the end of about 70 minutes of downloading and then says the server timed out. Had the ohone for a year and no trouble until now. Please advise what to do. Thanks.

    DIsable your antivirus and firewall.

  • I am having trouble fading out a song at the end of an iMovie.  Also, the volume of the song is too high...I would like it to be more background music?  I have tried everything and can't figure it out...Can anyone help me, Please!!??

    I am having trouble fading out a song at the end of an iMovie.  Also, the volume of the song is too high...I would like it to be more background music?  I have tried everything and can't figure it out...Can anyone help me, Please!!??

    Did you ever resolve the iCloud problem.I am in the same position and its driving me mad!!! If you have a link to an solution I would appreciate it.

  • [svn:bz-trunk] 5137: Fix failing security tests on BlazeDS/ trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new /clean session.

    Revision: 5137
    Author: [email protected]
    Date: 2009-03-02 10:28:59 -0800 (Mon, 02 Mar 2009)
    Log Message:
    Fix failing security tests on BlazeDS/trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new/clean session. It looks like some test methods were leaving some things in a bad state which was causing the next test that ran to fail. These may be legitimate bugs/issues so we should investigate further to see what sequence of events gets things into a bad state but for these tests we want all of the test methods to run in isolation.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/services-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/remoting-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/JMSAuthSendSubscribeConstraintTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/MessagingAuthProSendTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/JMSAuthSendSubscribeConstraintTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/MessagingAuthProSendTest.mxml
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/messaging/SessionManager.java

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • How do I access the End User Licensing Agreement? I clicked on it and it gives me a message that I need to launch Adobe Reader, accept and close and reopen. Trouble is I can't get to an icon for file to launch. I am working on a Mac and have installed Mac

    I am using a Mac and have installed Adobe Reader for Mac, latest version. I cannot access the End User Licensing Agreement. I clicked on it and it gives me a message that I must launch Adobe, check that I agree, close and reopen. The problem is I can't find any way to launch Adobe because it appears nowhere on my launch pad, nor in my document files or on the control panel. Because of this, I cannot print bank statements nor can I get into my insurance companies billing department to make a payment. HELP!

    How about in your Applications folder?

  • I uninstalled and reinstalled but at the end of installation there were erros.  See attached screen shot.  I now cannot open the application.  error code 10810 comes up when I try to open.

    I could not update photoshop CS6 and Jeff from forum advised unistalling and reinstalling (Tk93580659). Mac OSX. In real trouble, as suggested I uninstalled and reinstalled but at the end of installation there were errors.  See attached screen shot.  Now I cannot open the application.  Error code 10810 comes up when I try to open (see 2nd screenshot).  Please help.  I have now lost photoshop altogether whereas previous at least I still could use it but could not update.  Thank you for any help to instal successfully.  Dr Koh

    Still looking for a solution to specific installation errors (see screeshot) referring to "Language Pack installation failure":
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050: - Adobe Photoshop CS6 Core: Failed due to Language Pack installation failure
    ERROR: DW050: - Adobe Photoshop CS6 International English Language Pack_AdobePhotoshop13-en_GB: Install failed
    Unfortunately previous advice of using CCS cleaner tool, and suggestions from links for 1) "exit code 6 and 7" and 2) "Troubleshoot instal logs" did not work at all. So I am desparate to fix this because I have spent a lot of money purchasing Photoshop CS6 but have no functioning program. Surely Adobe can help solve this problem with installing, or else it means a lot of money spent on Photoshop CS6 for nothing. I am appealing directly to Adobe to help because I have come to the end of my options. I thank the forum for their suggestions but so far the solution for this specific "Language Pack installation failure" problem is missing. Thank you.
    Dr Koh

Maybe you are looking for