Re: Get Selected Finder Items behavior
Re: Get Selected Finder Items behavior
- Subject: Re: Get Selected Finder Items behavior
- From: Scott Haneda <email@hidden>
- Date: Mon, 2 Mar 2009 14:44:49 -0800
Perfect. Now I want to be able to tell if the items dropped were a
set of files, or if they are directories, can you suggest a simple way
to tell if "$@" is a directory?
Do I just do the basic if [ -d "$@" ]
Thanks
On Mar 2, 2009, at 2:37 PM, Itai Rom wrote:
In general, the files you drop on your applet will be the input to
the first action in your workflow. So sure, if you start the
workflow with Label Finder Items, then it will label the files you
dropped on the applet.
This is why you're getting the duplicates in your workflow below.
The files are passed into Get Selected Finder Items, which then
appends the Finder's selected files to its input and passes that
list of files on to Run Shell Script, so you end up getting each
file input into Run Shell Script twice. It's as if you started your
workflow with two Get Selected Finder Items actions.
Hope that clears things up
--
Scott
* If you contact me off list replace talklists@ with scott@ *
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden