Downloads Folder Action

Hello,
I found a simple shell script that will help keep my Downloads folder organized by modification date. I used Automator to create a Finder Plug-In that's nothing but a Run Shell Script action: touch "$." Works great. I saved it as a folder action and attached it to my Downloads folder, but it won't work as a folder action. I added a Wait for Files to Copy action (testing with a pdf extension and download), and it still doesn't work. I tried to attach it to a dummy folder on my desktop that I directed Safari to save downloads to, still wouldn't work. I've saved it as a script, and attached it to the folder as a script, no joy. Will someone please help me with this. It should be very simple, I just want the items to be touched without having to touch each one myself.
I have checked permissions on my user folder and Downloads folder, also deleted ~/Library/LaunchAgents/com.apple.FolderActions.enabled.plist and com.apple.FolderActions.folders.plist, logged out/in, disabled and re-enabled folder actions. Also, I have another folder action attached to my Downloads (Unquarantine), and it seems to work fine.
Thanks in advance for any help,
Jess

I'm closing this question because the folder actions somehow work now. I must have shut down/started up enough times, or done something inadvertently to kick it into gear. I frequently have to check to make sure the folder actions are enabled, but other than that, my script works like a charm! Thanks for giving this your attention.
Jess

Similar Messages

  • Chained Folder Actions

    I am getting a headache by now trying to figure out how to do a fairly simple thing...
    I have created applesript that sorts my download folder
    So i have couple of folders in there and any file that goes into
    downloads folder is moved to coresponding folder based on extension
    say i have 4 folders
    -Media
    -Text
    -Install Disks
    -Other
    i then decided to take it one step further
    and created folder action that takes files in a given folder and
    puts them in a folder with corresponding date
    so to put it simple say there is blah_blah.mp3 that i copy to downloads folder
    my two scripts idealy if they would cooperate should work like this
    ___________________________\/ DateSort folder action \/
    "Download folder" -->> "media folder" -->> "\[current date\] folder"
    ___\^download folder action\^
    the problem thought they work separately but when i use them together
    as i described... "DateSort" for some reason does not enter
    ^repeat with this_item in added_items^
    to be honest added_items it such use case is blank for unknown reason...
    And the question that is bothering me is WHYYYYYYY?
    (because if simply put a file into "media folder" it works like charm...)

    I know it is very late to reply... But my attemps to create a chained folder script system did not work very well, and i just ended up baking the operations from the second script into the first.
    Seems like on *new folder item* does not handle files placed by another apple script. Further working on it I've forsaken the idea of using folder script paradigm alltogether, It is very unreliable. Especially so when trying to deal with download folder. There are clashes all over the place. For example i dont want to touch safari/chrom download chache files, but If I dont treat them the first time around the script will never touch them again.
    So I ended up writing an app that does all this and have it being triggered by launchd every so often. Much easier to handle. If you are still inrpterested i can give you my current version. It has much cleaner code, and it finally works without a hinge.

  • Failed to attach workflow to "Downloads" as a folder action

    Hi, everyone
         I am trying to move the files and folders I get via AirDrop to a folder named AirDrop with automator. I use the following workflow
         Folder Action receives files and folders added to Downloads
         Get Specific Finder Items (Downloads)
         Get Folder Contents (Un-tick Repeat for Subfolder found)
         Filter Finder Item ( All of following are true : Name is not AirDrop )
         Move Finder Item ( To AirDrop : tick Replace existing files)
         It works perfectly fine when I tries to run it step by step or using Run button. But it doesn't work when I add a file or folder to the Downloads folder. So, I tried to remove the .workflow file from the Folder Actions and re-install it again. When I do that, this
    occurred.
         Please help me. Thanks in advance

    a rough draft of the script that answered my own question:
    tell application "Microsoft Word"
      activate
    end tell
    tell application "System Events"
      delay 0.5
      keystroke "a" using command down
      tell application process "Microsoft Word"
      click menu item "Page Setup..." of menu "File" of menu bar item "File" of menu bar 1
      delay 1
      click pop up button 3 of window "Page Setup"
      keystroke "Any"
      delay 0.5
      keystroke return
      delay 0.5
      keystroke return
      delay 1
      click menu item "Print..." of menu "File" of menu bar item "File" of menu bar 1
      delay 1
      tell menu button "PDF" of window "Print"
      click
      click menu item "Create Booklet" of menu 1
      end tell
      end tell
    end tell

  • Folder Actions still unreliable in Snow Leopard

    Hello everybody,
    I used to give folder actions a try in Tiger, then in Leopard and now in Snow Leopard I still see that in terms of reliability, folder actions still seem to be useless - at least to me.
    Yesterday I created a folder action in Automator which is intended to just *move files* that have been downloaded with Safari in the Downloads folder, to another folder, nested in the Downloads folder itself.
    So for example when I download a file with a .rar .dmg .iso .zip extension, it should move it to the next folder "archives" where a similar folder action awaits the files to be moved according to their "type" in the next folders (rar, dmg, iso and zip). The same thing for images, music and movies.
    It works for a few files, but then for some reason (the holy Apple gods know why) it gets picky or lazy if you like : it just doesn't work 100%. I can manually drag out the files it didn't "act upon" and redrop them in the folder - still no joy.
    And I noticed a flickering or blinking of the finder window. Really weird....
    So I fire this out in hope that some of you share the same frustration
    Maybe somebody knows how to fix this.
    Or maybe I'm doing something wrong..
    cheers
    X
    Message was edited by: xanvertin

    Thanks for the quick and helpful reply!
    I also thought that incomplete files downloaded through Safari could mess up things, but it seems to be a general issue the way the folder script "asks for the files". I tried the same folder action in a different folder, where I manually drag 'n dropped several files manually in it - still no joy. 49 out of 100 files just stayed put. It's so frustrating.
    And I believe such thing as folder actions is tremendously useful if it "just works" - I download so many files on daily basis at my University - wether it is PDFs, photos, music whatever - that after a while the whole idea of "Stacks" and Coverflow in the Downloads folder just becomes a real useless pain. You just can't find anything through browsing. Sure you could search - if you know what to search for - but almost every file nowadays in the Net has a cryptic file name. So if I look for "applepie" the real file turns out to be "3934iiijpjfedi923.jpg
    folder actions could at least help us get things more "organized"
    but..
    nope.
    I just found out that my folder action has a problem with "hidden extensions"...
    oh dear...
    i think I'll stick to my wasted hours of cleaning up my mac on sundays...

  • Downloads Folder No Longer Jumps Up When Saving Attachments

    When saving attachments in Mail, my downloads folder on the Doc used to jump up a couple of times when I hit "save" from within an email that I received to signify that I just saved it into that folder.
    However, for no rhyme or reason, the downloads folder no longer jumps up when I save attachments. The attachment still save in to that folder but I miss the pop-up action telling me that it did.
    I searched the net and posts and found nothing on this quark. This is driving me nutz!
    Please help!

    Check in System Preferences>Dock and check off Animate opening applications and see if that doesn't do it. Not sure if that is why but it is worth a shot.

  • Attachments in Mail Downloads folder

    I found a folder Home>Library>Mail Downloads which was loaded with about every attachment I have ever received using Mail. I was trying to figure out why. In Mail prefs, there is an option to select a folder, I have chosen Home>Downloads pretty much which is also default for my browser. The action is set to remove unedited copies when message is deleted. I'm confused because it looks like the Destination and Action are independent. When I have an attachment, if I click "Save" it populates the selected path to the "Downloads" folder. If I open that attachment, it seems to populate the Home>Library>Mail folder.
    What controls the opened attachments form populating this, somewhat, obscure folder?

    Hi,
    Attachments to messages are actually stored in the mailbox along with the message text. It is when an attachment must be opened with another application, such as a Word document with Word, that the attachment is also placed in the Mail Downloads folder. There it can be used and edited by the application used to open it, and from there can be returned as edited to the sender or to others.
    There is no reason files must permanently stay, but if you edit or otherwise alter files that have been attached, then you must elect some place to keep them for your own use.
    You will note that in the Mail Preferences/General there is also a selection regarding when to remove files from Downloads folder if not edited. Any file that is not edited need not remain in the Downloads folder since it already exists in the mailbox with the message it came attached to.
    Image files, since they can be opened directly in the Mail window, by Mail, do not go into the Downloads folder, but if any were opened from the message, with say, Photoshop, then that image file would also be sent to the Downloads, temporarily.
    Ernie

  • Single Click to Download File - Auto Rename if Conflicting File Exists in Downloads Folder

    I am trying to migrate from Safari. However, one of THE most important features that I simply can't do without, is the one click "Download Linked File" right click contextual menu item. This together with the auto-rename file action if a name conflict exists within the downloads folder, to which you are saving the file.
    Is there a way to do this in FF? All I can locate is"Save Link As" and then you have to either click to save or manually rename the file if there is a conflict. This is a real pain - I am happy to allow duplicate filenames for certain files.
    Hopefully someone can point me in the right direction - needs to be an absolute one click solution from contextual menu via an add on or something.
    Thanks

    As I recall, DownThemAll is able to do this. You first have to configure it to rename files when a file with the same name already exists. Then you should be able to use the context menu option labeled “DTA OneClick!” or some such.
    * https://addons.mozilla.org/firefox/addon/downthemall/

  • I can't get in to downloads folder.

    I can't get in to downloads folder and it's seem like i can't move or delete files in downloads folder what should I do?

    With the Finder active, press the following key combinations, in this order:
    Shift-Command-H
    Command-3
    Command-I
    The Info window for your home folder will open. Click the lock icon to authenticate. In the Sharing & Permissions section, you should have read & write access. If not, make it so. Select "Apply to enclosed items" from the action (gear icon) menu.

  • Is there an easy way to clear the contents of Download Folder?

    Is there an easier way to clear out files (send to trash) from the downloads folder, other than dragging one by one? The downloads folder closes immediately upon dragging one file out.

    You do not need to invoke Finder to do this. Create a new empty Automator workflow and use the "Run Shell Script" option. Paste in the following....
    mv ~/Downloads/* ~/.Trash
    You can then save the workflow as an application, attach it as a Finder action or add it to the scripts menu, whichever you like better.
    If you would like to bypass the Trash and just completely delete the Downloads folder contents immediately, then paste in this command:
    rm -rf ~/Downloads/*

  • I deleted my download folder and now I can't download anything. I can't select the folder to "save file to" and when I select "ask me where to save files" I still can't download. it says your file will start downloading, but then it doesn't. Help!!

    I deleted the folder that saves everything that is downloaded from Firefox. After that I can't download anymore. I've tried clearing my download history, reset the download folder, reset the download action by renaming the mimetype.rdfs file and it's still not working. I've tried to choose a different download folder but it doesn't let me select any folder at all. If I select "ask me where to save files" and then try and download something, the download doesn't start after I select save to. The only time it does actually download is when I select "open with...windows mediaplayer" when downloading then the download will start. Please help. Thank you.

    You broke your phone by getting it wet.  Nothing more to say.  Bring it in to Apple for an out of warranty exchange or buy a new phone.  There's really nothing else we users here can help you with.

  • Unzip/Unstuff Folder Action

    I wanted to set up a folder in which a file would automatically unzip/unstuff once it is done downloading from an FTP site, and V.K. in the Automator board showed me this applescript:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;" title="this text can be pasted into the Script Editor">
    property DELAYTIMESECONDS : 5 -- How long to wait between checking file size.
    on adding folder items to thisFolder after receiving theItems
    repeat with f in theItems
    set oldSize to 0
    set newSize to -1
    -- When newSize equals oldSize, it means the copy is complete because the size hasn't changed.
    repeat while newSize ≠ oldSize
    -- Get the file size.
    set oldSize to size of (info for f)
    delay DELAYTIMESECONDS
    -- Sample the size again after delay for comparison.
    set newSize to size of (info for f)
    end repeat
    -- Do your processing here on file f.
    tell application "Finder" to open f
    -- thats where my processing should start for each file
    end repeat
    -- Or start processing here to wait for all files to be complete.
    end adding folder items to</pre>
    I attached it to a folder, and it works, but only on the first file. If I let multiple files download concurrently, the script never kicks in for the second, third, etc. file. Can the applescript be modified so that it hits every file that is, eventually, saved to the folder?

    The problem is that the folder action gets triggered the minute something gets added to the folder. This works when everything is added at once, but if there is much of a time delay between adding items there can be a problem, since repeatedly firing off the same folder action script on the same folder with different items doesn't seem to work very well.
    Another thing to try would be to just look at the folder itself to stop changing size. After the folder has stopped changing size (presumably because the files have finished downloading), all of the files would then be processed. The items would need to be moved somewhere during the processing, so that the next time the folder action is triggered, it would just be processing the new items (if the processing just gets all of the files, a sub folder could be used).
    The following folder action is similar to what you were using, it just looks at the folder size.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to thisFolder after receiving theItems
    if (WaitForFilesToCopy into thisFolder for 60) then
    tell application "Finder"
    set theItems to (files of thisFolder) as alias list -- get a new item list
    end tell
    repeat with anItem in theItems
    -- do stuff with anItem
    end repeat
    else
    -- the downloads didn't happen in time
    end if
    end adding folder items to
    to WaitForFilesToCopy into TheFolder for TimeToWait
    waits up to the TimeToWait for files to be copied/downloaded to TheFolder
    the test is based on the size of the folder not changing after several seconds
    the rough TimeToWait may need to be adjusted if copying several files/folders
    parameters - TheFolder [mixed]: the folder to check
    TimeToWait [integer]: a maximum timeout value in seconds
    returns [boolean]: true if copy/download finished, false if timeout
    set {Possible, Interval} to {false, 3} -- change the check interval as desired
    set CurrentSize to size of (info for TheFolder) -- get initial size
    repeat (TimeToWait div Interval) times -- check every Interval seconds
    delay Interval
    set NewSize to size of (info for TheFolder) -- recheck size
    if (NewSize is equal to CurrentSize) then
    if Possible then -- no change since last time
    return true -- success
    else -- one more time...
    set Possible to true
    end if
    else -- update size & Possible switch
    set {CurrentSize, Possible} to {NewSize, false}
    end if
    end repeat
    return false -- fail (timeout)
    end WaitForFilesToCopy
    </pre>

  • Creating a simple Folder Action

    Hello, I am trying to make a simple folder action.
    Well first off I have all my applications stored in the "application" folder (Mac MD>Applications) and I have aliases to all the apps stored in a separate application folder in which I have arranged the apps by type. One folder I have is called "new apps" (Mac HD>Users>Me>Applications>New Apps) it contains obviously new applications I have downloaded and have yet to try out.
    *What I want to do is whenever I drag a new application to the new apps folder I want it to 1) make an alias of that application and then 2) move the application to my actual "applications" folder.
    I went to automator and selected "New Aliases" and selected the new apps folder for its location to be made, and then followed it by "Move Finder Item" and selected my applications folder. I then saved it as a folder action attached to my new apps folder... It doesn't work. Yes folder actions are enabled. Is there something else I need to do for the folder action to actually pass the new files added into the folder into the script? thank you much
    Sean

    Spotlight can search for a color label but you must make that an active search criterion. Open a new Smart Folder in the Finder. Click on the + button to the right of the Save button. From the drop down menu that displays "Kind" select Other. Scroll down the list until you find the "File label" entry and then check the box to the right of the item. Click Close button. Now you should see the drop down menu has the "File label" selection followed by the color options. Select the "Green" color.
    Now, Spotlight will find files with a green label, but it may not display folders with the green label. I've not tested that. If it does not locate folders with a green label, then you will need to set the color of the files in the green labeled folders to the green label.

  • Help Needed: Automator Applescript for Folder Action - Encode Video

    Hi !
    I have created an Automator Applescript for a Folder Action to do the following:
    When a new video file is moved to the target folder (i.e. Download of Vuze is done), automatically launch the Applescript Action that does the followin g(Applescripted):
    1) Using "run shell script" and FFMPEG on a UNIX command line, determine Width/Height, Framerate, Bitrate
    2) Calculate encoding parameters (slightly reduced bitrate, reduced Aspect etc.)
    3) Using "run shell script" with ffmpeg on the command line and the calculated parameters to encode the video file
    At the same time, the action is written to a log file so I know if a file is recognized, when encoding started etc.
    It works fine if I save this Action as an .app, make an alias on the Desktop and drop video files on it.
    It also works fine if I attach the script to a folder as a folder action and drag a video file in there.
    However, when I attach the script as a folder action to the Vuze download folder, it encodes only some video files, i.e. if there was a download of 5 files, chances are good that it will not encode 1 or 2 files out of those 5.
    If for example a second download finishes while the encoding for the first download is still going on, sometimes the second file starts encoding after the first encode finishes, sometimes it does not, the file does not make the log file at all, i.e. the folder action missed it or the automator action dropped it because it was still encoding. Still, sometimes it happens, sometimes not.
    As I need a solution that is 100% accurate, I would like to ask if there are any ideas on how to do this better maybe? As I am not an Applescript Guru, I would need some help to know what works and what doesn't and what the syntax is.
    My main idea right now:
    Similar to how ffmpegX works with its "process" application, have a second script (as .app) that receives the files to be encoded from the automator action and puts them in a queue, then proceeds to encode this queue while the main automator action is free to receive the next file.
    Writing this second app is quite straightforward (a modified version of my current script) but I have some questions I need help with:
    1) How do I call another applescript from within an existing applescript that launches the new applescript in a new process?
    2) How do I pass parameters to this new applescript?
    3) In case of this "Queueing" Idea, once I called the external applescript the first time, how do I make sure when I call next time, that I don't open a second instance of this script but rather pass another queue item to the original instance to be processed?
    Or in general: Is there a better way to achieve this automatic encoding solution that I have not thought about?
    Alternatively:
    Does anyone know how to call the "process" application that comes with the ffmpegX package with the correct parameters to use as a queueing / processing tool?
    Thanks!
    Joe
    Message was edited by: Joe15000
    Message was edited by: Joe15000

    To do this, I created an Automator workflow with an Applescript snippet to change the 'media kind'.
    Here is the 'Run Applescript' workflow step code:
    on run {input, parameters}
              tell application "iTunes"
                        set video kind of (item 1 of input) to movie
              end tell
              return input
    end run
    Prior to this running, I have an 'Import Files into iTunes' workflow step.
    You can switch out 'movie' with: 'TV show', 'music video', or anything in ITLibMediaItemMediaKind.
    Good luck,
    Glenn

  • Can't Get Folder Action To Work...

    Hi guys.  I'm working on an Applescript -- a Folder Action, to be precise -- which will, when files are dropped onto or added to my Downloads folder, automagically sort them into pre-existing folders, depending upon what kind of file they are.  But for the LIFE of me, I simply cannot get it to work.  I attach the script to the Folder using Configure Folder Actions (or as it appears in the context menu, "Folder Actions Setup"), and then drop files onto the folder and . . . nothing.  But I know that Folder Actions themselves are working, because I have a few others that I wrote myself that are working just fine.  I tried repairing permissions, but that didn't do any good.  Any ideas?  Here's the code below.   You'll notice that there is a section that's been commented out; mainly because I couldn't figure out how to do it without using recursion, and thus breaking up the script into subroutines, which I've heard you're not supposed to do with Folder Actions.  If someone could please explain what the heck I'm doing wrong and possibly provide a solution, I'd be really, really appreciative.  Anyway, the code:
    on adding folder items to this_folder after receiving these_items
    set imageTypesList to {"JPEG image", "Portable Network Graphics image", "Windows bitmap image", "Graphics Interchange           Format image", "Adobe Photoshop File", "TIFF Image"}
    set audioTypesList to {"MP3 audio", "AIFF-C audio", "Waveform audio"}
    set videoTypesList to {"Video-MPEG4", "MPEG-4 File", "Video-MPEG2", "Video-MPEG", "AVI", "Matroska Video File"}
    set fontTypesList to {"TrueType font", "PostScript® Type 1 outline font", "Font Suitcase"}
    set docsTypesList to {"Portable Document Format (PDF)", "Scrivener Project", "Microsoft Word 97 - 2004 document", "Rich Text           Document", "Plain Text Document", "CSV Document", "Pages Publication"}
    set epubTypesList to {"epub", "Kindle Document", "iBooks Author Template", "iBooks Author Book"}
    set archTypesList to {"ZIP archive", "tar archive", "rar archive", "Tar Gzip Archive"}
    set diskTypesList to {"Installer package", "Disk Image"}
    set execTypesList to {"Application (32-bit)", "Application", "Unix Executable File"}
    set webTypesList to {"HTML document", "XML document", "XHTML document", "Cascading Style Sheet"}
    set iconTypesList to {"Apple Icon Image", "Icon Container", "Windows Icon Image"}
    set otherTypesList to {"XTorrent File"}
    set uberList to imageTypesList & audioTypesList & videoTypesList & fontTypesList ¬                      & docsTypesList & epubTypesList & archTypesList & diskTypesList & execTypesList ¬
               & webTypesList & iconTypesList & otherTypesList\
    set imagesFolder to "Technomage:Users:andyhainline:Downloads:Images" as alias
    set appsFolder to "Technomage:Users:andyhainline:Downloads:Apps" as alias
    set archivesFolder to "Technomage:Users:andyhainline:Downloads:Archives" as alias
    set epubFolder to "Technomage:Users:andyhainline:Downloads:eBooks" as alias
    set fontsFolder to "Technomage:Users:andyhainline:Downloads:Fonts" as alias
    set docsFolder to "Technomage:Users:andyhainline:Downloads:PDFs and Docs" as alias
    set diskFolder to "Technomage:Users:andyhainline:Downloads:Installers and Disk Images" as alias
    set iconFolder to "Technomage:Users:andyhainline:Downloads:Icons" as alias
    set audioFolder to "Technomage:Users:andyhainline:Downloads:Audio" as alias
    set videoFolder to "Technomage:Users:andyhainline:Downloads:Video" as alias
    set otherFolder to "Technomage:Users:andyhainline:Downloads:Torrent Files" as alias
    set miscFolder to "Technomage:Users:andyhainline:Downloads:Miscellanious" as alias
    repeat with anItem in these_items
      set itemInfo to info of anItem
      if (kind of itemInfo) is in imageTypesList then
      move file itemInfo to imagesFolder
      else if (kind of itemInfo as text) is in audioTypesList then
      move file anItem to audioFolder with replacing
      else if (kind of itemInfo as text) is in videoTypesList then
      move file anItem to videoFolder with replacing
      else if (kind of itemInfo as text) is in fontTypesList then
      move file anItem to fontsFolder with replacing
      else if (kind of itemInfo as text) is in docsTypesList then
      move file anItem to docsFolder with replacing
      else if (kind of itemInfo as text) is in epubTypesList then
      move file anItem to epubFolder with replacing
      else if (kind of itemInfo as text) is in archTypesList then
      move file anItem to archivesFolder with replacing
      else if (kind of itemInfo as text) is in diskTypesList then
      move file anItem to diskFolder with replacing
      else if (kind of itemInfo as text) is in execTypesList then
      move file anItem to appsFolder with replacing
      else if (kind of itemInfo as text) is in webTypesList the
              move file anItem to docsFolder with replacing
      else if (kind of itemInfo as text) is in iconTypesList then
               move file anItem to iconFolder with replacing
      else if (kind of itemInfo as text) is in otherTypesList then
               move file anItem to otherFolder with replacing
      else if (kind of itemInfo as text) is not in uberList then
               move file anItem to msicFolder with replacing
      (*                              else if (kind of anItem as text) is "Folder" then
                                            set folderFiles to get every file of anItem
                                            processItems(folderFiles)
      end if
         end repeat
    end adding folder items to

    Well, I followed your instructions to letter, but the folder action still isn't triggering, or if it is, it isn't executing properly.  I can't figure out what's going on.  I tried executing the script directly from Script Debugger, but it just sits there, doing nothing (since it has no input, I would guess).  Any ideas on what's wrong?
    on adding folder items to this_folder after receiving these_items
         set imageTypesList to {"JPEG image", "Portable Network Graphics image", "Windows bitmap           image", "Graphics Interchange Format image", "Adobe Photoshop File", "TIFF Image"}
         set audioTypesList to {"MP3 audio", "AIFF-C audio", "Waveform audio"}
         set videoTypesList to {"Video-MPEG4", "MPEG-4 File", "Video-MPEG2", "Video-MPEG", "AVI", "Matroska           Video File"}
         set fontTypesList to {"TrueType font", "PostScript® Type 1 outline font", "Font Suitcase"}
         set docsTypesList to {"Portable Document Format (PDF)", "Scrivener Project", "Microsoft Word 97 - 2004           document", "Rich Text Document", "Plain Text Document", "CSV Document", "Pages Publication"}
         set epubTypesList to {"epub", "Kindle Document", "iBooks Author Template", "iBooks Author Book"}
         set archTypesList to {"ZIP archive", "tar archive", "rar archive", "Tar Gzip Archive"}
         set diskTypesList to {"Installer package", "Disk Image"}
         set execTypesList to {"Application (32-bit)", "Application", "Unix Executable File"}
         set webTypesList to {"HTML document", "XML document"}
         set iconTypesList to {"Apple Icon Image", "Icon Container", "Windows Icon Image"}
         set otherTypesList to {"XTorrent File"}
         set uberList to imageTypesList & audioTypesList & videoTypesList & fontTypesList ¬
                                  & docsTypesList & epubTypesList & archTypesList & diskTypesList & execTypesList ¬
                & webTypesList & iconTypesList & otherTypesList
    set imagesFolder to "Technomage:Users:andyhainline:Downloads:Images" as alias
    set appsFolder to "Technomage:Users:andyhainline:Downloads:Apps" as alias
    set archivesFolder to "Technomage:Users:andyhainline:Downloads:Archives" as alias
    set epubFolder to "Technomage:Users:andyhainline:Downloads:eBooks" as alias
    set fontsFolder to "Technomage:Users:andyhainline:Downloads:Fonts" as alias
    set docsFolder to "Technomage:Users:andyhainline:Downloads:PDFs and Docs" as alias
    set diskFolder to "Technomage:Users:andyhainline:Downloads:Installers and Disk Images" as alias
    set iconFolder to "Technomage:Users:andyhainline:Downloads:Icons" as alias
    set audioFolder to "Technomage:Users:andyhainline:Downloads:Audio" as alias
    set videoFolder to "Technomage:Users:andyhainline:Downloads:Video" as alias
    set otherFolder to "Technomage:Users:andyhainline:Downloads:Torrent Files" as alias
    set miscFolder to "Technomage:Users:andyhainline:Downloads:Miscellanious" as alias
    processItems(these_items)
    end adding folder items to
    on processItems(these_items)
         tell application "System Events"
              repeat with anItem in these_items
                   if (kind of anItem) is in imageTypesList then
                       move file anItem to imagesFolder
                  else if (kind of anItem) is in audioTypesList then
                       move file anItem to audioFolder with replacing
                 else if (kind of anItem) is in videoTypesList then
                       move file anItem to videoFolder with replacing
                 else if (kind of anItem) is in fontTypesList then
                      move file anItem to fontsFolder with replacing
                 else if (kind of anItem) is in docsTypesList then
                      move file anItem to docsFolder with replacing
                else if (kind of anItem) is in epubTypesList then
                      move file anItem to epubFolder with replacing
                else if (kind of anItem) is in archTypesList then
                      move file anItem to archivesFolder with replacing
                else if (kind of anItem) is in diskTypesList then
                     move file anItem to diskFolder with replacing
                else if (kind of anItem) is in execTypesList then
                     move file anItem to appsFolder with replacing
               else if (kind of anItem) is in webTypesList then
                    move file anItem to docsFolder with replacing
               else if (kind of anItem) is in iconTypesList then
                   move file anItem to iconFolder with replacing
               else if (kind of anItem) is in otherTypesList then
                   move file anItem to otherFolder with replacing
               else if (kind of anItem) is not in uberList then
                   move file anItem to msicFolder with replacing
               else if (kind of anItem as text) is "Folder" then
           set folderFiles to get every file of anItem
           processItems(folderFiles)
      end if
      end repeat
    end tell
    end processItems

  • Create folder action in automator

    I want to create a folder action that will move downloaded website backups into a specific folder.
    I cribbed the automator folder action shown below from Macworld
    The Folder Action appears not to work when left to just monitor the folder.
    However, if I force the Action to run from within automator it works, albeit with an error message at the beginning saying that you can't execute the action from within Automator. Still it finds the file and moves it to the intended destination.
    By way of checking this I looked at the "Set Up Folder Action" by right clicking on the downloads folder. After clicking there is a long delay but when the panel opens there is no content, see second image below. I tried clicking the + button to add the "Downloads" folder but after a long delay the "Open" dialog closes and nothing has appeared in the panel. I assume that any folder action should show up in this panel, but I've no experience in using it.
    Any suggestions as to a problem with the Action or why the panel is blank and why I can't attach the Action using this setup panel?
    Thanks
    Folder Action
    Note: Path and File have been omitted.
    Note: OS X 10.10.2
    Folder Action Setup

    I'm confused. You showed two Automator actions with the same name, one was a folder action one wasn't.
    Are you sure the correct Automator action (the one that is a folder action) is attached to the folder?
    If when the Folders Action setup window is opened and you select Articles_Folder.workflow and then edit script are you getting the right workflow?
    Assuming you do I would start off very simply. Try this:
    It will label green screen shot image files saved to the Desktop.
    See if this works for you.

Maybe you are looking for