Get Selected Finder Items behavior
Get Selected Finder Items behavior
- Subject: Get Selected Finder Items behavior
- From: Scott Haneda <email@hidden>
- Date: Mon, 2 Mar 2009 14:21:16 -0800
I am stumped on this one, first I thought it was an issue with "$@" in
shell scripts, but it appears not to be. Adding in a "Get Selected
Finder Items" and watching what it does when things are dropped into
it, will yield me a list of the items dropped.
When I try to interact with that list, the number of items in the list
are doubled when acted on, but in no way can I see where this is
happening. Here is my best case:
Create a new project
Add "Get Selected Finder Items"
Add "Run Shell Script"
Set pass input to argument
for f in "$@"
do
echo "$f" >> ~/Desktop/log.txt
done
Save as an application, drop a few files on it, the $@ variable seems
to contain 2x the items it should...
From my log
/Users/me/Desktop/test.txt
/Users/me/Desktop/untitled.txt
/Users/me/Desktop/untitled.txt
/Users/me/Desktop/test.txt
--
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