Your last two posts were empty...
Thanks, Harbs. It looks like replying via email isn't working again. Sigh.
Let me try again...
On 3/6/09 12:55 AM, "Charlieheinz" <firstname.lastname@example.org> wrote:
> I would simply like it to display, AND USE, 210 mm.
Instead of setting the edit value to 210, set edit contents to "210" (in quotes).
> The other problem is that if I press Cancel, the script will go on and give an
> error about myPageWidth not defined.
That's because you're not telling it to stop. After you destroy the dialog, add "error number -128" to end the script.
Shane Stanley <email@example.com>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
Adding quotes doesn't seem to work. It says "invalid parameter".
What DOES seem to work is this: change measurement editbox to integer editbox.
The dialog no longer displays any units, but at least it doesn't display the wrong units.
Not just adding quotes -- you also need to change "edit value" to "edit contents" (and add in the units).