Skip navigation

Automator & Terminal question

78 Views 2 Replies Latest reply: Feb 23, 2013 3:01 PM by tal1971 RSS
tal1971 Level 2 Level 2 (245 points)
Currently Being Moderated
Feb 23, 2013 3:41 AM

I have a regular used Terminal command that I use often.

 

This one:

 

ls -al /var/log/*.out

 

 

I was wondering if I could create something with Automator that would load up Terminal then automatically enter/paste the above command. Then all that would be needed for me to do would be to press enter?

 

I would need Terminal to load up/appear as I would need to see the result of the entered command.

 

Thanks in advance

iMac (27-inch, Late 2012), OS X Mountain Lion (10.8.2), iPad (3rd Gen) 32GB iPhone 5 32GB
  • Niel Level 10 Level 10 (235,110 points)
    Currently Being Moderated
    Feb 23, 2013 9:14 AM (in response to tal1971)

    Open the AppleScript Editor in the /Applications/Utilities/ folder and paste in the following:

     

    do shell script "ls -al /var/log/*.out"

     

    Save the script and set it as a login item in the Users & Groups pane of System Preferences.

     

    (77441)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.