[TxMt] tm_dialog and really long plists
Allan Odgaard
throw-away-1 at macromates.com
Thu Apr 26 01:24:09 UTC 2007
On 26. Apr 2007, at 02:59, Brett Terpstra wrote:
> Is there a limit to the size of a plist for tm_dialog?
There is a limit to how many bytes you can pass as arguments to a
shell command, so yes (if you use -p/--parameters)
> If so, is there a workaround? [...]
Yes, pass the plist as stdin instead of via -p, then you also do not
need to shell escape it.
So from Ruby, with ‘params’ being a ruby hash:
open("|\"$DIALOG\" -t#{token}", "w") { |io| io << params.to_plist }
More information about the textmate
mailing list