"Ask for Finder Items" Automator action broken?

OK, I'm pulling my hair out on Automator (again). I'm on OS X Lion 10.7.1.
Here's what I want to do: I have image files named "something-something (S1).png" and I want to create a copy of each file named "something-something (S2).png" then resize that copy to 50% the size of the original. A perfect choice for Automator, I would have thought.
So here's the workflow I came up with:
1. Ask for Finder Items: Type set to Files and Allow Multiple Selection checked.
2. Duplicate Finder Items: To create a copy, hopefully named "something-something (S1) copy.png".
3. Rename Finder Items: Set to Replace Text, with Find set to "(S1) copy" and Replace set to "(S2)" (in basename only).
4. Scale Images: Set to By Percentage 50.
I would have thought that would have worked. Trouble is, it doesnt even get to first base. When I run the workflow I see the expected choose file dialog, and I choose a test PNG file. Then Automator happily announces that "Ask for Finder Items completed" in the log, and proceeds to sit .. and sit ... and sit. It says it's running, but nothing is happening. No duplicate file action happens, no rename .. nothing. Oh, and yes, I do see the selected filename in the "Results" area for the Ask for Finder Items action.
What's going on? Any ideas? For a supposedly intuitive tool I find automator inscrutable (and I'm a 30 year seasoned operating system oftware developer).
TIA,
--Tim

FWIW, if you've found a bug, please contact Apple Support folks or (if you have access) use the BugReport tool. 
(This is a user forum, and the Apple Engineering folks may or may not see any reports that are posted here.)

Similar Messages

  • "Run Workflow" action in Automator does not "Ask for Finder Items"

    So I have a workflow called step_1 that does a bunch of stuff . . . in essence, it "Asks for a Finder Item" and then runs some Python shells and then outputs an Applescript format list {'item_1','item_2','item_3'}
    I'm trying to use this workflow in another workflow so I selected "Run Workflow" in Automator and located my original workflow step_1 but when I run it, the process goes straight through the workflow and doesn't "Ask for Finder Items" so i'm sure it doesn't do anything else in the workflow either.  It doesn't give me an error, it just pretty much bypasses everything within the workflow and it's pretty annoying.
    Any idea on how to get my workflow to work using "Run Workflow" ?

    Never tired Run Workflow before so as as a test I rn these two
    and the Ask for Finder items in the called workflow ran OK.
    Note this was run  from Automator. One thing I did see was that the Ask for finder items window did not come to the front and I had to look under my open windows to see it.

  • Pass input to Automator's "Ask for Finder Items"

    Hi,
    I have created an Applescript in Automator, which is  set up to determine a folder location where config files reside.
    I would like to pass this location to "Ask for Finder Items", so that the default config file is selected, but the user can select their own config file if they prefer.
    I can't see any way to reference my location variable in the "Ask for Finder Items" action.
    I've also tried to view the "Ask for Finder Items" sourcecode for a hint, but can't figure out how to do this either.
    Any help greatly would be greatly appreciated!
    Thanks,
    Dan

    Found this approach which is working for me:
    set config_file to choose file with prompt "Locate the config file and click OK" default location MYLOCATIONVARIABLE
    This opens the finder at the correct folder.

  • Ask for Text for Set Spotlight Comments for Finder Items

    I want the text from the "Ask for Text" to go in to the "Set Spotlight Comments for Finder Items" action, but they don't seem to interact.
    Any ideas?

    first you make a new variable using variables tab. then you add the action "set value of variable" right after the action ask for text. drag the variable you made to the variable field of that action. this will set the value of that variable to the output of the previous action.

  • Filter finder Items... broken? (also request to help streamline script)

    Let me begin by saying that I've done the SAME THING for a long time with this Automator script, and it's worked flawlessly. I recently added some now automator actions (and later deleted them) thinking they were the culprit of why my "filter finder items" was showing no results, but I'm not sure at all at this point.
    Here's the script (that has been working fine until at least the 7th):
    It's long, so bear with me (I use this script to install custom Sims2 content when I download it:
    ("Get Specified Folder" uses the "Get specified finder items" action, I just didn't want to type that every time).
    New Folder: Recent (in my downloads folder)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains .package)
    Copy Finder items (to Recent)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains Sims2Pack)
    Move finder itmes (to my core download folder (they're generally in subfolders after downloading, as are the .package files)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains Sims2Pack)
    Copy finder items (to Recent)
    Get Specified Folder: Recent
    Create Archive (on desktop named Sims2)
    Rename (add date to end of file name)
    Rename (add time to end of file name)
    Get Specified Folder: Recent
    Move to trash
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains .package)
    Move finder items (to Sims2 Downloads folder, which installs the custom content, replacing any repeats)
    Get Specified Folder: my downloads folder
    Get folder contents
    Filter finder items (name contains Sims2Pack)
    Move Finder items (Sims 2 Packs folder within the downloads folder... these items must be installed into the game by double-clicking on them.)
    Get Specified folder: Desktop
    Get folder contents
    Filter finder items (name contains Sims2)
    Move Finder items (To Backup)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains MTS (most of the containing download folders (after they've been expanded by another automator script, have this at the beginning of the folder name due to where I commonly download my custom content)
    Move to trash
    And that concludes the script. I know it could probably be streamlined (another reason I'm posting the whole thing) but it worked until very recently, and I don't know what could cause it to no longer report results after filtering within the subfolders while within the main folder works fine.
    To clarify, it's recently been simply deleting the MTS folders and creating a "Recent" folder and archiving it but it's empty. So the script is not filtering for the Sims2Pack data nor the .package data as it used to.
    I haven't modified the script, and I've deleted all actions that I downloaded recently (backed them up in case they're not the culprit). Also ran disk permission repair but nothing was repaired in regards to Automator.
    Thanks.
    iMac Intel   Mac OS X (10.4.7)  

    Here is an update to the script, however filter continue to not work as it once did.
    New Folder: Recent (in my downloads folder)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains .package)
    Copy Finder items (to Recent)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains Sims2Pack)
    Move finder itmes (to my core download folder (they're generally in subfolders after downloading, as are the .package files)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains Sims2Pack)
    Copy finder items (to Recent)
    Get Specified Folder: Recent
    Create Archive (on in "to backup" named Sims2)
    Rename (add date to end of file name)
    Rename (add time to end of file name)
    Get Specified Folder: Recent
    Move to trash
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains .package)
    Move finder items (to Sims2 Downloads folder, which installs the custom content, replacing any repeats)
    Get Specified Folder: my downloads folder
    Get folder contents
    Filter finder items (name contains Sims2Pack)
    Move Finder items (Sims 2 Packs folder within the downloads folder... these items must be installed into the game by double-clicking on them.)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains MTS (most of the containing download folders (after they've been expanded by another automator script, have this at the beginning of the folder name due to where I commonly download my custom content)
    Move to trash
    I removed the step where it was saving it to the desktop. If the filters ever work again, this should therefore go faster than before.

  • Automator action broken

    Hi - I think this is an Automator problem rather than a STP one, but maybe someone here can help. I use Automator for one thing and that is to save audio file projects as AIFFs. I have upgraded to Leopard (couldn't stop myself!!). Everything works wonderfully well, except that one action. All other save actions from other apps work, all other STP actions work. Just not "Save File". Can anyone here check if it works for them? I do not see a way to manually edit the action - I tried for hours yesterday to find an answer - I even did a completely clean install and reinstalled Studio 2 - but no luck. I ended up manually saving over 300 files, and I have many more to do. Thanks in advance for any help - and I know I should have waited!!
    Martin

    Removed "Get Selected Finder Items" and worked fine.

  • Open finder items automator

    Hi,
    I have an automator service that uses Open Finder Items as part of the workflow.  This works fine except if the app I want to use is not in my Applications folder.  How can I make it so that my workflow can find my app in any location I keep it?  I see the option New Variable but didn't quite figure out how to use it.  I was also thinking to maybe use Applescript as part of my workflow but again couldn't figure it out.  Any help would be great I'm sure there must be a way.  Thanks!
    rc

    I'm having a similar problem. When running from within Automator everything is fin, but the plug in doesn't get the finder items. Oddly, I have ONE old workflow that takes the word "folder" away from a file name. That one works fine, but doesn't require any action once I select it. It doesn't even open the automator show action dialog window to make any changes. Weird how this one is still working and the other ones won't.

  • Using external database as source for Quicktime annotation automator action

    Hi
    I have approximately 1500 quicktime files which require annotations added to them (title, author etc).
    I've been provided a spreadsheet with all the neccessary data. And I know there is an automator action that can add annotations to quicktime files but was wondering if either of the following was possible:
    1) Can I get the an automator script to use this spreadsheet as a source for the values it is to enter.
    OR
    2) If I can get automator to add the files name to the annotations section (under title)
    Greatly appreciate any help you can provide.
    Regards

    HI
    Make sure you select the Initialize or Run methods, depending on where you try to define the database connection it will not let you do it.
    Good practice would be to define the database and the connection in the initialize section, the SQL and execute in the Run section and the disconnect in the Finish section, however that could change depending on your needs.
    Regards
    Alex

  • Where do I find basic automator actions?

    I don't see simple actions such as "save" or "save as pdf" in the list of automator actions. where are they?

    The Save function is somewhat left to applications to implement within Automator. Microsoft Excel has a Save workbook action for example where some other applications do not have a similar option. You might want to check out an action called "Type Keystroke" which is available free at http://www.automatedworkflows.com/software/automator_actions/system.html The Watch Me Do action might also do the trick. I haven't found a good alternative for saving pdfs yet though I haven't tried "Watch Me Do with that one.

  • Hi, I am looking for either an automator action/workflow or applescript that will locate a hyperlink by finding text within a webpage and click on that link.  I need this because the url is constantly changing.  Thanks for any assistance.

    Thank you in advance!

    What you describe can be set up with a non-printing button. A button can be set up to have any size and appearance you want. In the Mouse Up event of the button you can use something like the following:
    // Create the string to display
    var msg = "This is the first line of text with two carriage returns at the end.\r\r";
    // Add some more test to the string...
    msg += "This is the third line with a single carriage return at the end.\r";
    // ...and a bit more.
    msg += "This is line 4\rand this is line 5.";
    // Display the text in an alert with an OK button
    app.alert(msg, 3);
    For more information on the app.alert method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.135.html
    There are a number of other ways to implement this type of thing, but see if the above approach works for you. If not, post again and we can make other suggestions.

  • IPhoto Automator actions = broken and useless

    It's already been established that in order for iPhoto's most useful action, "get selected iPhoto items", to work in 10.4.3, you have to install a third-party fix.
    Today, I discovered that when the action is run on a Raw file, it retrieves a jpeg preview copy of the file instead of the actual image. For example, if I dragged a Raw photo from iPhoto to my desktop, I would see DSC_0038.nef (or whatever) on my desktop. But if I make an Automator workflow that copies a photo to the desktop, I end up with DSC_0038.jpeg.
    This means it is impossible to make a useful workflow with Raw files and iPhoto.
    If anyone knows of a fix, it would be most appreciated.

    Paul:
    You might post your question in the Automator forum. There's probably more Automator users there that can help.
    G4 DP-1G, 1G RAM, 22 Display, 2-80G HD, QT 7.0.3P   Mac OS X (10.4.3)   Canon S400, i850 & LIDE 50, Epson R200, 2G Nano

  • Help! where to find universal automator actions?

    I've been playing around with Automator lately and suddenly crashed into an error after downloading a new action (create new mail message) from: http://automator.us/
    It's saying it won't work because it's not universal.
    Does anyone know where to find any versions of these can be found that are universal? I can't believe there are no upgraded versions available after all this time.
    My mac is running Snow Leopard (hence posting here) and it's 32 bit only. I can't upgrade to Lion, so even if any are in the app store that doesn't help much. For those of us that are unable (or unwilling) to upgrade, I find removing all download links except to the app store a very bad decision in the customer service department. I used to be able to find such things there.

    It depends on the developer.  A lot of the actions are on smaller sites or are not regularly updated, and the early versions on your referenced site were written for 10.4 Tiger.  There is already a New Mail Message action included in the default Automator installation, but actions can still be found at the bigger download sites such as cnet or macupdate - actions at http://www.automatedworkflows.com/ are also well maintained.

  • Automator Filter Finder Items

    A very simple task, which I have attempted to figure out many times over the last few months; but my repeated attempts haven't been successful. This should be easy for someone to resolve…
    I would like to strip out all the files of a certain extension (.txt) from an hierarchy of nested folders, & move them to the Trash. (Told you it was easy!)
    Here's what I think ought to work:
    • Create an Automator Workflow
    • 'Ask for Finder Items' to select the topmost folder
    • 'Get Folder Contents' with 'Repeat for each subfolder found' — (the results successfully include all the relevant files)
    • 'Filter Finder Items': "find files where any of the following are true: file extension is .txt" — (I tried "txt" as well as ".txt")
    • 'Move Finder Items to Trash'.
    The files turn up (alongside loads of other junk) in the 'Get Folder Contents' step, & they are reported in the results; but when I try to filter out everything apart from the .txt files, so that only the .txt files remain, the filter reports no results.
    So the 'Filter Finder Items' action completes with no results, & with a warning that: The action “Move Finder Items to Trash” was not supplied with the required data.
    I think it must be something obvious, but I can't figure it out, & although I've searched extensively online, everyone else with similar problems has other complications which get resolved… so they lose interest just at the point where I think they're going to reveal the solution.

    You need to understand the issues here. Automator was released with 10.4 (Tiger), and many of the core automator actions date from that time.  This introduces forward-compatability problems: things that should work (and maybe did work) in 10.4 might not work as specified in 10.6, depending on if/how the underlying cocoa APIs have changed.  Now, in the best of all possible worlds, Apple would update automator actions with each new upgrade, but it's probably not needed for the bulk of the actions, and Apple may not be aware of problems that do exist with given actions (that depends on whether people filed meaningful bug reports on them).
    Don't be confused by the seeming simplicity of what I did: the Move Finder Items to Trash action probably uses cocoa file system APIs directly, whereas my applescript leverages the developed programmatic underpinnings of the Finder - the Finder has a built-in system for moving files in bulk, whereas the action is obviously moving files one at a time (which is where things are getting congested).
    Filter Finder Items seems to be a simple metadata search (just another use of the spotlight framework, which hasn't changed much since its inception) so I can't see any way in which it would fail.  it is, of course, limited by the same things that spotlight is limited by - it won't find material that's not indexed and may not do exactly what one always expects (e.g., may not recognize an extension as an extension unless the extension belongs to an app registered with the system) but other than that there's very little it can do wrong.  As a general rule, actions that deal only with manipulating automator data (e.g. modifying references passed from one action to the next) won't break.  You'll only see breakage with actions that need to access exterior frameworks that have changed significantly since the actions were created. 
    That's the best answer you're going to get: one can't prove a negative, so there's no way to demonstrate that FFI isn't broken.  it's easy enough to check for a given task, though - just run the workflow you have on a test folder without the deleting action, check the results window, and compare it to the results you expect (which you can gather by eye in a Finder search window, through an applescript, through an app that will report the number of files of given types in a folder…). 

  • Copying Finder items into same folder as Action

    I want an Action that can copy Finder items directly into the same folder the Action resides in, i.e. without specifying where or asking the user where.
    Is this possible? All I've been able to create so far is an Action whereby I need to specify the folder or get the user to specify it.

    OK, I am now going to try to teach you to fish
    It might be a little bit easier to visualize if you think of the values passed along in your workflow as a stack of playing cards. Some actions do something with the cards and then just pass them on, some take all of the cards, and others add cards to the stack. The Set Value of Variable action takes the current stack of cards (the results of any previous action(s)), assigns it to a variable that is named whatever you want to name it, and passes the stack on to the next action. The Get Value of Variable gets the value of one of your previously named variables and adds it to the stack. You can also use a previously named variable in input fields of various actions, such as locations to copy to. I'm not sure why you are getting the path to the desktop (unless that is where your workflow application is located), but here are some additional comments for my previously posted workflow:
    1) Run Applescript (with the Applescript posted earlier)
    - if your workflow has been saved as an application, the results of this action will be a path to the folder that it is in (if not, the path will be to where the Automator application is, which isn't what you want)
    2) Set Value of Variable
    - this action will take that path, assign it to a variable with your specified name, and pass it on
    3) New Folder
    - this action makes a folder with the specified name in the specified location - you can drag variables into these fields, in which case their current values are what will be used
    - the result of this action is a new folder, and the path to the folder is added to the current stack of cards (if any) and passed on to the next action
    - since we just want the path to the new folder (and none of the previous cards), first we throw away any cards we may have (with the "ignore input" option) so that our results don't get mixed up.
    4) Set Value of Variable
    - same as (2) above, except that the value is now the path to the folder that got made in the previous action (3)
    5) Ask for Finder Items (Type: files, Allow Multiple Selection)
    - the results of this action will be whatever items you selected, and of course, they will be added to our current stack of cards unless we throw them away first with the "ignore input" option
    6) Copy Finder Items
    - this will copy Finder items (the ones we selected in the previous action) to the location that is specified - you can drag a variable into the To: field, in which case it's current value is what will be used.
    - the result of this action will be the paths to the items that were just copied, but since this is the end of the workflow it doesn't matter
    You can use the View Results action to see what the current stack of cards is, so you can see if what is going in and coming out of your actions is what you expect, and tweak accordingly.

  • "Filter Finder Items" not working properly

    I'm taking my first crack at Automator, and while I've made good progress, one of the built-in actions, "Filter Finder Items", is just not behaving predictably. Basically, I'm doing the following:
    1) Get selected finder items - pulls a selected folder
    2) Set variable - this gives me a variable for the name of the folder we're working with
    3) Create a new folder inside the selected folder
    4) Get folder contents of selected folder
    5) Filter for three different file extensions - here's where my problem starts
    6) Move the filtered files into the new subfolder (though it really seems to be copying, which necessitates the following steps to get rid of the original files)
    7) Get contents of selected folder again
    8) Filter on the same three files extensions - this time it works properly
    9) Move filtered files to Trash
    For some reason, the first filter action doesn't seem to be working at all - if I have 15 files in the selected folder, but only three that match the filter, all 15 will be copied to the new subfolder. The second folder action will then, inexplicably, work exactly as it should and move the proper files to the Trash.
    Does anybody know why this action doesn't want to cooperate? Has anybody else seen something similar?
    Thanks for any hints/help.
    Rick
    Message was edited by: rnb2

    Saving the workflow as an application should be all that is needed, but the first action (the one that gets the items to work with) may not be correct for your usage. If the first action is *Get Selected Finder Items*, unfortunately the selection would be the application itself, since that is what was most recently selected.
    In this case, the application can be dragged onto the Finder's toolbar (where it will work with the current selection), otherwise the first action can be removed and the application used as a droplet (items dropped onto the application are passed to the workflow) or a Finder plugin.
    The first action can also be replaced with an *Ask for Finder Items* action (ignoring input).

Maybe you are looking for

  • Sync multiple Iphones on same pc

    Hi All, It's my first POST here... Here's the scenario: My wife's Iphone is synced to her PC (Itunes). I want to Sync my Iphone using her PC and Itunes. I've never pluged my Iphone to my wife's PC yet... What will happen the first time I plug it in?

  • Fonts not appearing correctly on other clients

    I know this has been an ongoing issue for everyone using Apple's mail client but I'm going to ask it here again. There has been many posts but many unanswered posts. How can I get mail.app to send e-mail out using say..."Arial" and have it show up as

  • 5th generation iPod with 3rd generation dock connector?

    hello, I have a 30GB 3rd generation iPod, which is now a totally crammed... so I am planning on buying a new iPod Photo. With my 3rd generation iPod, a dock connector was included in the package. Will this dock connector work with the new iPod Photo,

  • How to create Admin Panel?

    Hi Everyone,                 I've 1 website in that I would like to include Admin Panel,so that in future anybody wants to do some modifications they have to do without entering into coding part...I don't know how to achive this can anyone help me he

  • Migration Assistant Problem Tiger to Tiger

    I want to move the contents of a Macbook 1.83 GHz Intel Core Duo OS 10.6.8 to an iMac 2 GHZ Intel Core Duo OS 10.6.8. I ran a migration with a new User name on the iMac that was differentfrom the User name on the Macbook. The old user name had no con