terminal arguments code example Example: terminal command as parameter open /Applications/Utilities/Console.app "$(ls -arth Test*log | tail -1)"