Re: Scripting Terminal ?
Re: Scripting Terminal ?
- Subject: Re: Scripting Terminal ?
- From: Christopher Stone <email@hidden>
- Date: Sat, 18 Apr 2015 03:19:35 -0500
On Apr 17, 2015, at 07:10, Jean-Christophe Helary <email@hidden> wrote:- select a few files in Finder - send them to Automator (to package that as a service) - process them with an Applescript that creates a new window with as many tabs as there are files and open each file in an emacs session
______________________________________________________________________
Hey Jean-Christophe,
Tabs are problematic in the Terminal. The terminology to work with them has some very odd gaps. We've hoped for years that Apple would fix this, but they haven't.
You'll have to resort to UI-Scripting if you want to create tabs in a Terminal window.
That's clumsy but doable.
iTerm is a little better:
tell application "iTerm" tell the first terminal launch session "Default Session" tell the last session set name to "New Session" write text "cd /usr/bin; ls" end tell end tell end tell
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden