Loading ...
Sorry, an error occurred while loading the content.

Re: [SubEthaEdit] Opening File and Positioning Cursor on Line from Shell

Expand Messages
  • Stefan Brantschen
    ... Hash: SHA1 Ben ... Thanks. I wasn t aware that osascript can take parameters from the command line. Great. (For this, I was working on a solution with a
    Message 1 of 3 , Apr 18, 2007
    • 0 Attachment
      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1

      Ben

      On 18 Apr 2007, at 20:54, Ben Gollmer wrote:

      > Now, try running `seeline /path/to/file linenumber`. If the file is
      > already open, the cursor will be moved - otherwise SEE will open
      > it, then move the cursor.

      Thanks. I wasn't aware that osascript can take parameters from the
      command line. Great. (For this, I was working on a solution with a
      "here document" for the applescript and parameter expansion in a bash
      script -- now I checked: argument passing is possible since 10.4,
      though...).

      With regards
      - -- Stefan


      -----BEGIN PGP SIGNATURE-----
      Version: GnuPG v1.4.3 (Darwin)

      iQEVAwUBRib5RzqiXtt/m8NcAQLr3ggA0KUrm1hkNGzdfV5WqnLg7xqN/5elxo37
      DSTyk2AsGzgGyqKIQ8Kfa6g8FwxU8sQ3AXRWXxNJ+IEU9pdPBWrYlOS308/IHg6b
      WqZLa28wfcro6SM6JclGSWqtZK93Yecavu9fsnv4VRTdQfE3fii4Pnd4XlNNQ1gL
      JcGm/f6uxJq3PvFHD57ACg9MoLHTaXQ+K0hXqLIacH1BRSqpS1+48TIdm3vX9vbH
      BmAxc83Lyo/f2ZVvg01vO6ISml178+5NsGWaIDhBGBtu0wTeBFnXCZsZqg5y6VuU
      Bcs777BQ2ODPuwTvmbMH2vh/Lp4K3JM/dl6XkHM3XJ1wXsZ84+RNvQ==
      =N6YX
      -----END PGP SIGNATURE-----
    Your message has been successfully submitted and would be delivered to recipients shortly.