Automator Folder Action: File Name = Spotlight Comment?

Hey guys,
I'm trying to have automator add the original filename of a file as spotlight comment when it is added to a certain folder. I can only use the "Set Spotlight Comments for Finder Items" in folder actions to add a specified comment, but nothing else. Is it possible to grab the file name via applescript?
The idea behind this is to preserve the original file names of all downloaded files before they get renamed.
Thanks,
V

Thanks for your reply, I now have your action installed and it does get the filenames, but I still can't add them to the spotlight comment text box. Looks like I didn't think this through properly.

Similar Messages

  • Apple Script to automatically apply automator folder action workflows

    Hello
         I'm trying to get an applescript to automatically apply an automator folder action workflow to a folder..
         Getting applescript to apply a scpt file to a folder as a folder action is straight forward. However, it seems that scpt files are different than automator folder action workflows..
         Normally I would just script the folder action in apple script, but this is for someone that can handle automator, but not apple script coding. This whole scripting is to solve the issue of subdirectories being creating and then files or subfolders being created there after. So we need to try to get automator folder actions to propagate though..  easy enough with applescript..
    Any help would be appreciated...

    Here is the code that I needed to happen...  Maybe I just missed something in automator... but this applescript properly applies itself to subfolders, which then allows me to apply specific scripts based on folder names and locations. Also if the subfolders already exist.. the scirpt also is applied to those.
    on adding folder items to this_folder
      createlist(this_folder)
    end adding folder items to
    on createlist(item_list)
              set ActionScript to " REMOVED FOR PUBLIC DISPLAY:ApplyScriptSubfolders.scpt"
              set the the_items to list folder item_list without invisibles
              set item_list to item_list as string
                   repeat with i from 1 to number of items in the the_items
                     set the_item to item i of the the_items
                                       set the_item to (item_list & the_item) as alias
                                       set this_info to info for the_item
                                       if folder of this_info is true then
                              tell application "System Events"
                                                                          display dialog "Attching script to " & the_item as text  --
                                     attach action to folder (the_item as text) using ActionScript
                                                           end tell
                                my createlist(the_item)
                                       end if
                   end repeat
    end createlist
    I appreciate your help.. if you now know what has to happen and have a shorter way of doing so, please do so..
    Thank you again,

  • Using Automator Folder Actions

    I have an automator folder action that runs to take any pdf file dumped in to the folder, send to the printer and then delete it.
    How do I make this run on a server that I'm not logged in to (effectively as a service), so that if a pdf file is generated somewhere on the network (maybe even a PHP script on a web site hosted on this server) and copied to this folder it still auto prints to the network printer?

    I'm using a hot folder to import to Aperture as well, and also had the same problems when I try to configure it.
    I solve it by creating an action in Automator that will copy all the images from the memory card to a temp folder when a card is inserted in the card reader. At the end of the action all the files inside the temp folder are moved to the actual hot folder, as you said this is almost instant so works perfectly.
    So basicly the workaround is the following:
    Card inserted - Image capture starts and copy all the images to a temp folder - Images then move to Aperture's hot folder - Aperture gets all the images.

  • Automator Folder Action Not Running

    I have created a simple automator folder action that helps me to keep my downloads folder organized.    I want to move various files with certain file exensions to specific folder.
    I am finding the process to be intermittantly successful.   Sometimes it works, sometimes it does not run.      I've looked in activity monitor but do not see the automator launcher process running.   I think that is why I am having issues.   At other times, when it does run,  the workflow hangs and I have to kill Automator Runner.
    Any ideas on helping me with automator folder actions?
    Thank you,
    Jerold

    What does Finder -> select folder -> Control-Click -> Services -> Folder Actions Setup say about your existing folder action?
    Are folder actions enabled in the setup window?
    Is your folder action attached to your folder?
    For diagnostics, create a very simple Automator folder action (such as "Ask for Confirmation"; it does not need to make sense, it just needs to be something that you can use to verify the folder action occurred), and attach that to any folder. If that works, build up to making your PDF action work.

  • Automator Folder Action

    I have an Automator Folder action attached to my Downloads folder which moves any .jpg file to another folder where I normally place my images. It works for a while (automatically moving the .jpg files whenever a file is placed in the Downloads folder) and then stops fopr no apparent reason. On occassion when I logoff and on or restart, the action will work for a limited time.
    I don't have much experience with Automator and even less with Applescript. Any help will be much appreciated.
    I use an iMac with OS X 10.9.2.
    Thanks.

    Sorry... this is not an answer to your problem. More like an addition to your question.
    How do you attach an Automator Workflow as a folder action?
    I've made a Workflow to copy all files from an iTunes' playlist to a USB device, I want it to automatically run whenever I plug in the USB device. I've left-clicked the icon for the USB device and then "attach folder action", but I don't see any script to run an Automator Workflow.

  • Install iTunes 10.4.1 install error - The Folder Path "File Name" contains an invalid character

    Upgraded computer from XP Prof 32-Bit to Windows 7 Ultimate 64-Bit (Upgrade package, performed Custom Install).
    Attempt to install iTunes 10.4.1 for 64-Bit.  Receiving the following error/problem:
    The Folder Path "File Name on my external drive" contains an invalid character
    I click ok and then get this:
    The Installer encountered errors before iTunes could be configured.  Errors occurred during installation.  Your system could not be modified,  Please run the installer again, or click Finish to exit.
    Any fixes for this?

    Sorry, one of us is not managing to be clear enough.
    Does the message read The Folder Path "File Name on my external drive" contains an invalid character or perhaps The Folder Path "<some path name here>" contains an invalid character?
    If so, then the problem might be just what it says it is with the path name in question... Either way if you list the path given in the error message in a reply to this thread it might provide a clue for anyone tying to help with the problem.
    You could try downloading the installer to C:\iTunesSetup.exe in case that helps.
    tt2

  • ITunes 10.5 breaks automator folder action

    Just like itunes10 did
    osx 10.6.8
    itunes 10.5
    automator folder action with itunes tasks no longer works after 10.5 update.
    Is it the version check again?

    Unfortunately, it seems that this is a cross-platform problem between iTunes 10.5 and all NAS disks. Shared libraries on network drives worked fine under 10.4.1, but now there is just an endless loading cycle with no error message or time-out. There is a bit more about it in this thread.
    Martin

  • How do you rearrange photos in a folder by file name?

    How do you rearrange photos in a folder by file name on an ipad?

    I don't believe it's possible under the standard "Photos" app (built-in) in iOS.
    However, there appear to be many downloadable apps that will allow you to do this. Search the App Store for something like "photo sort".
    You may also want to leave Apple your feedback in regards to this at:
    http://www.apple.com/feedback/

  • How to set up Automator Folder Actions?

    I have set up and sucessfully tested a workflow which sends any file found in a particular folder to the "paperless" app, then moves all files to a different folder called "Archived attachments".
    HOWEVER as a folder action,  nothing happens when a file is put into the folder. The file just sits there in the folder.
    To create a folder action I opened  "new folder action" in Automator, then dragged and dropped the working workflow file into the workspace, then set "Folder Action recieves files and folders added to" the appropriate folder, let's call it "Attachments".
    Just to complicate things, the files are placed into the "Attachments" folder using an applescript that captures all pdf mail attachments. This applescript works succesfully.
    So, where could I be going wrong?
    The working workflow "Attachments.workflow" consists of:
    Get Specificed Finder Items
    Make Sequential
    Get Folder Contents
    Open Finder Items
    Get Folder Contwents
    Label Finder Items
    Get Folder Contents
    New Dated Folder
    The erronious Folder Action consists of:
    Run Workflow (Attachments)
    In folder actions setup:
    "Enable Folder Actions" is ticked
    "PDF Attachments" folder is ticked
    "Attachments_folder.workflow" script is on.

    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.

  • Automator Folder Actions - Use filename as subject in email

    I regularly email .pdf atttachments to my head office. These are hand-written sales orders which are scanned in. The scanner software gives each file a sequential filename (eg. OrderNo_110612).
    I have set up a Folder Action in Automator to create a new email and send the file as an attachment when it is added to the folder.
    Get Selected Finder Items
    New Mail Message
    Send Outgoing Messages
    I would really like to add the filename to the subject of the email. Is there a script I can run within the 'Run Shell Script' action that will extract the filename and can then be used as a variable in the subject field? This would allow both myself and head office to easily find the email at a later date should the need arise.
    Any help would be gratefully received. I am not a programmer, although I understand the principle of variables etc..
    I am using OS X Lion 10.7.2
    Any help would be really gratefully received.
    Many thanks

    sorry, spaced.
    on run {input, parameters}
              tell application "System Events"
                        return name of first item of input
              end tell
    end run
    P.s. this only work for the first filename.  if you want the names of multiple attachments it needs to be revised a bit.

  • Search settings - default to current folder and "file name" ?

    99.9% of the time, when I enter something in the search bar of the Finder window, what I want to do is:
    1. search is the folder that I'm in
    2. search for the "file name", and
    3. then sort the results by "date modified".
    Currently, problem is:
    1. I can only change the search area (which defalts to "This Mac") after the search has begun.
    2. Likewise, the default is "content"
    3. There's not even an OPTION for "date modified". The "Last Opened" option is rarely useful.
    Please help!
    Thanks
    ip
    Message was edited by: ideapower

    Francine Schwieder wrote:
    The only one who can help us is Apple. Obviously you find this just as ridiculous as everyone else does who actually uses their computer to do things.
    While I usually think this kind of sweeping generalization is unjustified, here I do not. Spotlight has great potential, but "ridiculous" describes the implementation perfectly. I'm not terribly upset by the default to search "This Mac" -- it really isn't much of a hassle to have to click the folder button -- but the loss of the ability to choose any folder or group of folders is exactly the kind of "regressive functionality" that should have people flooding feedback with complaints.
    Just as ridiculous is the inability to show & sort on any of the metadata columns a normal Finder window offers. And if "Last Opened" is so useful in searches that it is the (unchangeable) default, why isn't it available in any other Finder view?
    Plus, does anybody really understand how the "File Name" option works? It rarely seems to make a difference -- I often enter a search phrase, look at the results, then switch to the File Name option & still see files that clearly do not have the search phrase or any part of it in their names.
    More: Try a search on Kind "Other" & enter the "Kind" info from a file's Get Info Box. Try "Application (Classic)" & note that it finds any you might have. But try "Application (Universal)" or "Application (PowerPC)" & you get ... nothing. Try just "Application (" & you get all apps. Try "Classic" & once again, any Classic apps show up, but try "Universal" or "PowerPC" & you get nothing. It's the same with many other file kinds -- sometimes the "Get Info" file kind string or some part of it works, sometimes not. Worse, the same is true for the "Kind" info taken directly from Finder windows. Try entering "Plain Text" in the Kind-Other search. I have hundreds of these but the search turns up exactly one, & it isn't even in my Documents folder.
    (Before anybody suggests it, yes I have rebuilt the Spotlight index repeatedly, using both the Privacy pane method & Terminal commands, & it makes no difference.)
    The point is not to rant but to demonstrate how poorly thought out & unreliable the app remains. I feel the problems are so obvious & widespread that we should not have to use the feedback page to tell Apple about them, but apparently we do. It really is as if it was designed by people that don't have a clue about what a search engine should do or how to integrate it into a user friendly environment.

  • Folder action: File size as a conditional and then move

    Im a complete beginner to AppleScript so please be patient with my amateur questions
    So here's what I want to do:
    I want to setup a folder action so that whenever I download a file to my Downloads folder that is larger than 50mb, it will automatically be moved to another folder. I tried to use Automator to make this but i found out it doesnt do IF-THEN stuff.
    I've searched the internet but i cant find any help!
    thanks!!!

    actually, this is a breeze in automator.  just set up a workflow like so:

  • Automator Folder Actions Broken in SLS

    I may be the only person that wants to use Automator in Snow Leopard Server. However, I've found that Automator can be a great match with a server to automate tasks when shared files come in from other users.
    The problem I am having is that the Folder Actions Trigger does not work. I can setup the Folder Actions under the contextual menu but nothing fires.
    If I set this up the same way in Snow Leopard Desktop Version Folder Actions work as they should and triggers when a file is placed in the monitored folder.
    Please tell me I'm not the only person that wants to use automator and folder actions? Anyone else having trouble with Folder Actions/Automator in Snow Leopard Server?

    The update is only good for Mac's listed in this About the Performance update.
    DALE

  • Help with creating Automator Folder Action

    Hi
    I want to create a folder action to empty my Caches from my both System and User Library files. I want a little help in creating the workflow. I tried to create a workflow, but the problem is it was asking for the system password when I selected the Library cache folder from my System. How can I create a workflow and save it as a plugin for my everyday action...
    thanks in advance..

    HI,
    Not sure if Automator can do that but AppleScript might. Post here for help.
    (Applications/Utilities)
    http://discussions.apple.com/forum.jspa?forumID=724
    Carolyn

  • How to transfer automator folder actions

    I have set up quite a few automator actions for folders. e.g. rename all files by date when moved to Receipt folder.
    How do I migrate these actions to a new Mac? I don't want to have to manually set them up again.

    By default, automator saves folder actions as .workflows in the following folder:
    /Users/yourusername/Library/Workflows/Applications/Folder Actions/
    From the finder menu, select Go > Go the Folder...
    ~/Library/Workflows/Applications/Folder Actions/
    Copy and paste the bolded path. Your folder actions are contained here. Simply copy these workflows and upon migration, you can restore them in the same path.

Maybe you are looking for

  • The image for my podcast is displaying in Itunes preview pages, but does not display when I subscribe

    So the image arwork is appearing here: http://itunes.apple.com/au/podcast/wa-families-of-the-future/id538653708 However after I have subscribed, the artwork for this one doesn't come up in my iTunes podcast folder. The related RSS feed for this link

  • Where are iPhoto library, iTunes, Safari bookmarks, desktop icons...?

    When installing Leopard, my main internal "Macintosh HD" (where all my programs are loaded) didnt show as an option, so I installed on my secondary HD. Leopard runs OK from here, BUT, I cant find my iPhoto library, iTunes, Safari bookmarks, desktop i

  • DiskSuite Solaris 10 Configuration

    Due to space constrictions I would like to break the mirrors and use the disks for additional space. Does anyone have recommendations? This is a test host only, I'm not concerned about have these filesystems mirrored. d14 -m d12 d13 1                

  • My MBA keeps opening unwanted tabs!

    How do I stop safari and chrome from opening tons of unwanted tabs and ads? ALL THE TIME!!!!!!

  • MS Access question - deployed on Servers?

    I have Access as my database (for my development) which I use JDBC to connect with, of course. I read somewhere that Access isn't "thread-safe" or something, and isn't a good database to use on a server (IIS?). I would like to know what the prevalent