On May 17, 2014, at 6:02 PM, Bob Sabiston <fl...@media.mit.edu> wrote:
> It doesn’t just pass the name, it passes a list of arguments. So I had to > put this in the Run Shell Script window: > > for f in "$@" > do > myScript "$f" > done > > Thanks for the help! Right. And if there's only 1 argument, then you only need myScript "$1" No need to loop over the list for 1 argument... Of course, you might want to check the number of arguments before assuming there's only 1 and skipping the rest of the list. (Or, as with the answer in that thread, running with arg 1 for each arg provided...) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com