Xpost - Automator can't move files to the trash?

*Cross posted from the 10.6 board.*
A very simple Automator script that I've used for some time now on several 10.5 machines refuses to work under 10.6. The contents are:
*Find Finder Items*
-on Desktop
-Whose size is less than 1 gb
*Move Finder Items to Trash*
That's it. This has worked and continues to work on all the 10.5 machines, but the one that I've upgraded to 10.6 now gives an error which states:
"The Action 'Move Finder Items to Trash" has encountered an error. Check the action's properties and try running the workflow again."
HALP! I'm not sure why this wouldn't work, I've redone the workflow on the affected machine to make sure there's no conflict between Automator versions, and still no joy. Any ideas?

I don't know much about Automator. However I have noticed that the action “Find Finder Items on Desktop whose size is less than 1 GB” seems to consider the Desktop itself as one of its items, which is the reason why the next action, “Move Finder Items to Trash”, becomes impossible. So just add the condition “whose name is not Desktop” to the first action.
Btw, your Automator script could be replaced with the following one-line AppleScript script:
*tell application "Finder" to move (items of desktop whose size is less than 1.0E+9) to trash*
Message was edited by: Pierre L.

Similar Messages

  • Automator can't move files to the trash?

    A very simple Automator script that I've used for some time now on several 10.5 machines refuses to work under 10.6. The contents are:
    *Find Finder Items*
    - on Desktop
    - Whose size is less than 1 gb
    *Move Finder Items to Trash*
    That's it. This has worked and continues to work on all the 10.5 machines, but the one that I've upgraded to 10.6 now gives an error which states:
    "The Action 'Move Finder Items to Trash" has encountered an error. Check the action's properties and try running the workflow again."
    HALP! I'm not sure why this wouldn't work, I've redone the workflow on the affected machine to make sure there's no conflict between Automator versions, and still no joy. Any ideas?

    Alicea, have a look at the post I made in the AppleScript forum here.

  • I can not move files to the trash.

    I can not move files to the trash. When I drag the file to the trash it does not move, but it does appear in the trash and when I empty it, the file is erased. When I go back to my files, the file I just deleted is still there. I keep getting the "startup disk is full" message so I need to delete files, but I can't. Anyone know a solution to this?

    try getting a external drive such as a usb flash drive or a hard drive to transfer the files from the startup disk, and free up space.
    hope this helps!

  • Cannot move files to the trash bin

    Hello,
    I recently upgraded from Snow Leopard to Mountain Lion and have since also changed the administrator on our MacBook Pro. My account (formerly the admin) can no longer move files to the trash bin. My wife's account (now admin) has no problem doing so. When I try dragging a file to the trash I get "Finder wants to make changes, type the administrator's name and password to allow this."
    Not something I wan't to be doing every time. Please help.
    Thanks,
    the RouleauFamily

    Thanks for your reply. The permissions looked fine.
    Here is the fix I found at http://www.thexlab.com/faqs/trash.html which worked:
    If the affected account is:
    Then type the Terminal command:
    Your Admin account:
    sudo rm -ri ~/.Trash
    Another user account:
    sudo rm -ri /Users/user_name/.Trashwhere user_name is the short name of the affected account.
    Warmly,
    Olivier

  • Can't move items to the trash, change permissions?

    I was copying some files to a USB jump drive while I reformatted my girlfriends PC including her 'Favorites' and her personal folder. Now these are both locked on my drive and I cannot unlock them in the 'Get Info' so I can't being them to the trash. Is ther anyway to unlock these or change permissions. I tried playing with the 'chown' unix command but am not sure quite how to do it. Any help? Thanks

    If you've got the problem I think you have, take a look at this thread:
    http://discussions.apple.com/thread.jspa?messageID=6061352
    Are the files still on the USB drive? If there is nothing else on it that you need the simplest solution is to reformat it. Otherwise you'll have to hook it up to a Windows machine and follow the instructions provided by Apophis.
    Francine
    Francine
    Schwieder

  • How can I move files using the title bar

    I am using Mountain Lion, latest release (10.8.4) and am wondering if there is some secret options which would allow me to move files by clicking on the title bar (of e.g. preview) and moving it to a directory.
    Unfortunately, I can only either create a link or copy the file. Moving seems to be deactivated, though I have learned from other forums posts that this was working under Tiger.
    Any advise would be greatly appreciated.
    Thanks,
    equi

    Depends on the application. iCloud-aware applications (Preview, Pages, etc) have the behavior you describe, and you can't move a file by dragging the thumbnail icon, but there is a small popup triangle to the right of the filename which contains the option "Move To" - you can then select your destination. It's not as seamless and dragging and dropping, though, I agree.
    Non-iCloud-aware apps, like Office 2011, still allow drag-to-move from the titlebar icon.
    Matt

  • How can I put files into the trash without login every time?

    Every time I want to put items in the trash, after dragging things to the basket, I have to sign in.  Why? Can I set the defaul to allow me to do so without login?

    The procedure below will reset the permissions of a user's home folder in OS X 10.7.4 or later, including 10.8 or later. If you're running an earlier version of 10.7, update to the latest version first. This procedure should not be used under OS X versions older than 10.7.4.
    Back up all data before you begin.
    Step 1
    Click the Finder icon in the Dock. A Finder window will open.
    Step 2
    Press the following key combinations, in the order given:
    Command-3
    Shift-command-H
    Command-I (the letter "I" as in "Info.")
    The Info window of your home folder will open.
    Step 3
    Click the lock icon in the lower right corner and authenticate with the name and login password of an administrator on the system. If you have only one user account, you are the administrator.
    Step 4
    In the Sharing & Permissions section of the window, verify that you have "Read & Write" privileges. If not, use the "+" and "-" buttons in the lower left corner to make the necessary changes.
    Step 5
    By default, the groups "staff" and "everyone" have "Read Only" privileges. With those settings, the files at the top level of your home folder will be readable by other local users. You can change the privileges to "No Access" if you wish, but then your Public and Drop Box folders will be inaccessible to others. Most likely, you don't need to change these settings.
    Step 6
    If there are entries in the Sharing & Permissions list for users or groups other than "me," "staff," and "everyone," delete them.
    Step 7
    Click the gear icon at the bottom of the Info window and select Apply to enclosed items... from the drop-down menu. Confirm. The operation may take several minutes to complete. When it does, close the Info window.

  • Workflow - Can I move files around the directory structure?

    I have been using Lightroom for a while now and developed a workflow that does what I need. Right now here is what happens in Lightroom:
    1)Import RAW files
    2)Edit/dispose images
    3)Export to JPEG
    4)Move RAW files to archive location off site
    So my main question is with the last step. In Lightroom I can move the files to their new perminant location offsite. But I cant seem to get this same ability with Aperture. When I move the files it freaks out and cant locate the files anymore. I cant figure out the best way to get this workflow within Aperture. Any thoughts?

    Nice easy answer, Two simple options (best to think of the long term needs before making the decision) Referenced or Managed
    You can change round at a later date if need be. Aperture has options to do this for you.
    Referenced keeps Masters on an external HD. Vaults back up the Library only and you have to do your own backup. This can be done during the import. Keeps internal HD space used to a minimum.
    Managed Keeps Masters in Aperture. A complete backup of all the Library using vaults is possible. Uses more internal HD space.
    Allan

  • I can't move files to trash

    I can't move files to the trash without the finder wanting an administrator password and then the file is immediately deleted.  This just strarted a few days ago.

    Click once on the hard drive icon - top right - and type command + i (both keys together).
    This is the bottom half of what you will see:
    1. Click the padlock and authenticate with your password.
    2. Your Name should have the Privilege to Read and Write. If it does not click on whatever is there, and change it.
    3. Click on the gear wheel and select "Apply to enclosed items".
    There will be a message, say OK, and let it continue. This will take some time.

  • Can't move files, only duplicate

    hello,
    i have some files at the root level of my laptop drive and i want to move them, but they only copy into their new locations (duplicating) they don't simply move with the gong sound. i'm wondering why. does it have to do with permissions or something?
    thanks
    max

    A 'move' is just shorthand for a 'copy to new location X, and delete from old location Y'.
    You can't delete something outside of your user account without Admin privileges. I haven't tested this, but for that reason I'd imagine you can't move files in the root directory. Copy them then delete them manually, supplying your Admin password when prompted.

  • I cannot delete a file from the document folder.  I can move it to the trash and then empty the trash, but when I go back to the documents folder it is still there.

    I cannot delete a file from the documents folder.  I can move it to the trash and then empty it, but when I go back to the documents folder, the file is still there.

    Gay,
    I wonder what your computing environment is. Is your account being administrated by another account? Are you working in an account subject to "Parental Controls"?
    Jerry

  • After I import a movie file from the camera memory card, Imovie 10.0.1 acts as if the memory card is empty though I know it isn't.... I can't import that file to iMovie again.. is that the way it worksnow?  Thank you, Filippo

    On IMac 10.9  After I import a movie file from the camera memory card to Imovie 10.0.1 it acts as if the memory card is empty though I know it isn't.... I can't import that file to iMovie again.. is that the way it works now?  Anyone know?  Thanks, Filippo

    I would like to know this too. I imported a lot of files, then Imovie crashed. I went back in and they are not in imovie at all.
    I reconnected the camcorder to import again and though they are still on the camcorder, I no longer see them in the available list of files to import. I'm sure there is some sort of simple setting somewhere that reveals all files even if it thinks they are imported.
    Thanks

  • How do you move a file to the trash with ONE keystroke (Can't believe I'm wasting time on this!)

    Everytime I want to send a file to the trash, I have to either perform some kind of key combination/shortcut or use the trackpad/mouse, right click and select "move to trash", or drag the file(s) to the trash!  This is absolutely ridiculous.  Why can't I just press the delete button??? I cannot take it anymore!  It's such a waste of time.
    After some research, I finally found a post with the answer I was looking for from user  par larsson 
    Re: How delete a file in mac os x?
    "You can also go into System Preferences and make a new keyboard shortcut. I turned one of the function keys into a "Move To Trash" key.
    1. No need to use the mouse for something that should be simple and quick.
    2. Single button press just like in Windows."
    Seriously!
    Now the problem is how do you do this?
    1. I went to the system prefs > Keyboard > Keyboard and checked "use F1, F2, etc... as standard function keys.."
    2. Under keyboard shortcuts, I selected "Application Shortcuts" and clicked on the "+" sign
    3. I selected the finder application, entered "Move To Trash" in the action box, and F12 as the key (because it's next to "delete")
    That did not work.  It just opened the dashboard instead.
    4.  I went back to "keyboard shortcuts" and found F12 was already assigned to open the dashboard.  So I unchecked it and tried again.
    That still didn't work.  I would select the file to be moved to trash, press F12, and after an error "beep" sound, the last file in the folder was highlighted.

    Duuuuuuuuuuuuuuuuuuuuuuuude!!!!!!!!!!!!  YOU DID IT!  I cannot believe it!
    I changed "Move To Trash" to "Move to Trash" and selected a file.  I had lost all hope, so I took a minute to prepare myself for yet another moment of deep frustration.  Then I pressed F10, and bang! the file was trashed!!!  It took me a couple minutes to actually believe what just happened.  Thank you so much!  If I could, I would "like" you as many times as I can physically hit the "Liked" button!
    PS: what the heck is wrong with Apple though???  Wrong instructions, incorrect help instructions on their own site.  The chances of figuring this out before having a nervous breakdown were like one in a million (approximately, I did not actually do the math).  Last week, the keyboard and the trackpad stopped responding on my brand new macbook pro for a couple hours. I was not the only one with this problem.  Apparently, this was from a design flaw, which means it could happen again at any time.  iMovie doesn't work.  TextEdit keeps crashing all the time.  Emptying the trash can take hours. 
    Since 2000, I bought a PMac G4 Quicksilver, a used PMac G3 Blue, a used iBook G4, a used Pismo PBook G3, a used Graphite iMac G4, a used iMac G3 (green, 233MHz I think) and I already had more problems with this brand new macbook pro than will all the other macs combined...  For such an expensive machine, with 16GB of RAM, that's a little dissapointing, especially from Apple.  Maybe I'm just not lucky.
    Anyways, thanks again!  Best moment of 2014!

  • I have DVD's that I made from iMovie. I would like to know a way I can bring them back into a file that I can somehow transfer to my iPad, so I can show movies on it, the iPad.

    I have DVD's that I made from iMovie. I would like to know a way I can bring them back into a file that I can somehow transfer to my iPad, so I can show movies on it, the iPad.

    Pad2, the new iPad Supported Video Formats & Movie Formats
    H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    Here's one way to install. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
     Cheers, Tom

  • I have the new version of iMovie, and when i try to start the program, i can't because it says that it is looking for some movie files from the Iphoto, so all the program is locked up... how can i do to restart the program??

    i have the new version of iMovie, and when i try to start the program, i can't because it says that it is looking for some movie files from the Iphoto, so all the program is locked up... how can i do to restart the program??

    Hi
    Did You ever use - iPhoto ?
    Did You may be direct iPhoto to a different Photo Library
    As iMovie tries to find the appropriate photo library - it can get lost if iPhoto direct it into a Library on a not connected external hard disk or to a strange location - And iMovie HANGS.
    Do - When no other program is running that might interfere
    • Start iPhoto - BUT NOW KEEP alt-key (option key) DOWN during the full Start-Up process
    • Now iPhoto let's You select Photo Library
    • Select the one in Your Account / Home folder / Pictures ! !
    • Then iPhoto should start up OK
    • Now Quit iPhoto
    • START iMovie
    Does it still hangs - then I would suspect - iMovie Pref. file
    If it Run's OK - Then HURRAY !
    Yours Bengt W

Maybe you are looking for

  • How to declare top of page in alv report

    hi guru how to declare top of page in alv report thanks subhasis

  • External hard drive clicking and not recognized by mac will DiskWarrior work?

    First of all apologizes if I've posted in the wrong community I couldn't find one that really fit my particular query. I'll give a quick rundown of what happened and see if anyone can help or suggest a course of action. My Seagate External HDD model

  • Order By clause in Receiver JDBC adapter

    Hello All, Is it possible to construct a select statement that uses an Order by clause in JDBC receiver adapter? ex : I would like the JDBC adapter to from a query as follows: <b>Select * from EMP where sal = 10000 order by empid</b> We are able to c

  • Importing BP opening balance  for AP&AR aging report

    I use DTW import BP opening balance, for example Maybe AR  posting date is 20080908 and 20090808 ,but I importing GL opening balance at the time of 20091231. I wonder whether I shoud import posting date  of  AR templete and datatime of databaseserver

  • Dynamic name for a report

    Hi, I have a report query that print the emplyee report I use BI publisher. The report query name attribute is : employee. This name is static, in other word for each employee i get the same name (employee.pdf). But i want that the name of the report