Sunday, December 17, 2017
  • Index
  •  » Automator
  •  » Using an Automator workflow app as a droplet

#1 2005-07-23 01:33:21 pm

ChrisBanford
Member
From:: Zermatt, Switzerland
Registered: 2005-07-23
Posts: 7
Website

Using an Automator workflow app as a droplet

Just wondering (as I start to play with Automator) if someone has a simple example of how to read parameters of files dropped onto an Automator workflow app?

I want to be able to drag n drop a folder/directory (CD, DVD, etc) onto my saved Automator app icon, and have all the file names be passed into my workflow.

Found a simple example of doing this using Applescript & was wondering if its as easy in Automator...

Cheers,
-Chris

Offline

 

#2 2005-07-23 01:48:32 pm

ChrisBanford
Member
From:: Zermatt, Switzerland
Registered: 2005-07-23
Posts: 7
Website

Re: Using an Automator workflow app as a droplet

Wow, that was simple! big_smile

I'm soooo used to trying to get things to work on Windoze (I know), that I assumed it would require some jumping through hoops to get that working.

Here's a simple way to handle this in Automator:

1. Add a "Run Applescript" action to your new workflow
2. Put this code in it:

    on run {input, parameters}
     
        repeat with i in input
            display dialog (i as text)
        end repeat

        return input
    end run
3. Save as Application.

Drag and drop some files (or folders) onto the Apps icon! Works great. (a bit more processing to pick out files in sub folders, etc and this would be a great action).

-Chris

Browser: Firefox 1.0.5
Operating System: Mac OS X (10.4)

Offline

 
  • Index
  •  » Automator
  •  » Using an Automator workflow app as a droplet

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)