On Jun 4, 2008, at 2:53 PM, Robert Kukuchka wrote:
Hi. I'm getting the warning The action "Get Selected Finder Items" was not supplied with the required data.
My whole concept for the workflow is to create an app from said workflow. Then if one of our build engineers wants to make the latest build, they'll just update CVS and run this .app. The idea is that the user just double clicks the app, it builds the XCode project, and eventually I'll probably have it reveal the output in the finder.
I'm not sure why you're getting this error. I'm not getting this error on my end. That said, It could be that when you're triggering the workflow by double clicking on it, the workflow itself becomes the selected item. It could also be that you're preceding the action with another action that outputs a type of item that's not compatible. Try selecting the "Get Selected Finder Items" action in your workflow, and choosing "Ignore Input" from the "Action" menu. Another possibility is that you're not actually selecting the folder, but are just selecting the folder's window. Make sure you've actually clicked on the folder you want to process.
There are also some other ways you could build this workflow, assuming the first thing that occurs in your workflow is building the Xcode projects...
1) When you save an Automator workflow as an application, it becomes a drag and drop application. In this situation, you don't even need the "Get Selected Finder Items" action. All you need is the Xcode action. When you drop a folder onto the workflow application, it should get passed to the Xcode action for processing.
2) You could try saving the workflow as a Finder plug-in, by choosing "Save as Plug-in" from the "File" menu. When you do this, you can process a folder by control-clicking on it in the Finder, and choosing "More > Automator > YourWorkflowName". Again, in this scenario, you don't need the "Get Specified Finder Items" action in the workflow, as it will get passed as input to the workflow.
3) You could try saving the workflow as a Script Menu plug-in. When you do this, the workflow will appear in a script menu in your menu bar. Now, when you trigger the workflow from there, the "Get Selected Finder Items" action can be used to get the selected folder.
NOTE: These instructions are for Leopard, and could vary if you're using Tiger.
Regards,
-Ben
P.S. You may want to check out my Automator book, which covers a lot of the things I've mentioned above. It is called Automator for Mac OS X 10.5 Leopard: Visual QuickStart Guide (Peachpit Press) <
www.peachpit.com/vqs/automator>
Ben Waldie
President
Automated Workflows, LLC
610.935.0652
=============================================
AppleScript * Automator * Workflow Automation
Products, Training, Custom Development Services
=============================================