Article View: adobe.scripting.indesign
Article #2647Re: [CS4] ScriptUI palette - focus problem
From: Shane_Stanley
Date: Mon, 08 Dec 2008 22:35
Date: Mon, 08 Dec 2008 22:35
21 lines
1962 bytes
1962 bytes
On 9/12/08 8:43 AM, "Olav Kvern" <member@adobeforums.com> wrote:
> but at least there's an easy workaround in this case (use the dialog object
> rather than display dialog)
Not if you need a third button, though.
The other workaround is to have no default button, which means no button
named *exactly* "OK". So:
tell application "Adobe InDesign CS4"
display dialog "Hello world!" buttons {" Cancel ", " OK "}
end tell
Note the spaces around the Cancel too -- if you don't use them, you get a
new answer to the recent question about how to change tools to the selection
tool :-)
--
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Technical Details
Message-ID:
<C563EC54.4CCBE%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossingReferences:
<59b73473.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,47d89733a6b09506 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Shane_Stanley@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [CS4] ScriptUI palette - focus problem Message-ID: <C563EC54.4CCBE%sstanley@myriad-com.com.au> Date: Mon, 8 Dec 2008 14:35:16 -0800 References: <59b73473.-1@webcrossing.la2eafNXanI> Lines: 27 Received: from outbound.icp-qv1-irony-out3.iinet.net.au [203.59.1.148] by adobeforums.com; Mon, 8 Dec 2008 14:35:48 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8BAOUvPUnL2V24/2dsb2JhbAAIzzGDBQ X-IronPort-AV: E=Sophos;i="4.33,736,1220198400"; d="scan'208";a="361554514" Received: from unknown (HELO [10.1.1.5]) ([203.217.93.184]) by outbound.icp-qv1-irony-out3.iinet.net.au with ESMTP; 09 Dec 2008 07:35:19 +0900 User-Agent: Microsoft-Entourage/12.14.0.081024 Thread-Topic: [CS4] ScriptUI palette - focus problem Thread-Index: AclZhT3azkbwoqHnAE2bQQ47wkgx5Q== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit