|
|
Same, but using only Bourne shell
I wrote an example that does the same thing, but without any apple script.
Start a new workflow in Automator and add the Run Shell Script action. For the shell option select "/bin/sh" and for the Pass Input option select "as arguments". then paste in this shell script and save as a finder plugin. Does the same thing, but it's a good example of using the shell with automator
You can now select one file/folder of multiple file/folders in the finder and use your plugin from the automator menu
Same, but using only Bourne shell
Is the "fi" at the end of the script correct?
Same, but using only Bourne shell
Yes, fi is correct. Bash terminates the 'if' blocks with 'if' in reverse, so 'fi'. The same is true for 'case' statements that end 'esac'.
Same, but using only Bourne shell
Thanks
add a slash
I suggest
-x \*/.DS_Store, I assume that without the slash unlikely files like foobar.DS_Store would be excluded too :)
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.19 seconds |
|