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 }