On Apr 18, 2015, at 07:25, Jean-Christophe Helary <email@hidden> wrote:That's really not what I wanted to hear… ______________________________________________________________________
Hey Jean-Christophe,
The truth is sometimes a bitter pill to swallow, but it's better than wasting hours of time.
My rule-of-the-thumb is to start asking questions if I can't make genuine progress within an hour or so.
Automator leaves me cold. I use FastScripts & Keyboard Maestro to run AppleScripts on my system (mostly with keyboard shortcuts).
* KM of course will do much more than run AppleScripts.
This script works well on my 10.9.5 system.
------------------------------------------------- tell application "Finder" set fSel to selection as alias list end tell
set fileCount to length of fSel set fileCount to fileCount - 1
repeat with i in fSel set contents of i to (quoted form of (POSIX path of i)) end repeat
tell application "Terminal" to do script
tell application id "sevs" tell application process "Terminal" repeat fileCount times set frontmost to true keystroke "t" using {command down} end repeat end tell end tell
delay 1
tell application "Terminal" tell front window set selected tab to its tab 1 repeat with i from 1 to count of tabs do script "emacs " & item i of fSel in tab i end repeat end tell end tell -------------------------------------------------
I dislike the aesthetics of this solution, but it works.
-- Best Regards, Chris
|