New answers tagged automator
OK so I answer my own question. It is possible to do what I wanted, although I did not find a satisfactory solution. The short answer is: I could find no way to use applescript with the direct manipulation of the graphical interface (eg. clicks). I did find a way by using key alternatives. To do the exact bit of work that I needed, the following sequence ...
There's a simpler solution already built-in. Just open an Archive Utility.app located in /System/Library/CoreServices/Applications/ and change the preferences to use archive format: "Zip archive" Then you can just drag and drop the folders on it's icon in the dock.
adayzdone's suggestion to route output to dev/null also fixed the spinning gear that was appearing when I used Automator to run Firefox profiles. So, something like this in a shell script: /Applications/Firefox.app/Contents/MacOS/firefox-bin -P 'Web Dev' -no-remote &>/dev/null & Thanks!
When run from Automator how are you inputting your password when prompted by sudo? You're probably not being prompted if you're just running it the same way as if in Terminal. You'll need to add some AppleScript code and run it via osascript so you're prompted for an Admin password: osascript -e 'do shell script "sudo diskutil unmountDisk disk3" with ...
Top 50 recent answers are included