[TxMt] Using non-saved file with TM command
Mike Mellor
alaskamike at gmail.com
Sun Jun 18 04:18:54 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jun 17, 2006, at 7:45 PM, Charilaos Skiadas wrote:
>
> 2) Change $fileName = ENV['TM_SELECTED_TEXT'] to $fileName =
> STDIN.read
That did it!
> Do I understand correctly that up to the "puts line" part, your
> method just separates the string into an array of each of its
> lines? In that case, you could simply do:
I didn't want to load up the entire file into an E-mail. There are
several other methods that I left out.
> Btw, any particular reason you create these global variables,
> $fileName etc? You could probably just work with local variables.
It made sense when I started, not sure if I still need the globals,
but it works now.
Thanks for all the help!
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFElNQy4oDM7Rgs0h0RAgSaAJ0do/Cj/ZZGObJf8znJA0GZcftHQQCfQZB5
iVK6Bz35UtNY8HPALIO5li4=
=w5iR
-----END PGP SIGNATURE-----
More information about the textmate
mailing list