RE: INDESIGN CS3 5.0.3: Scripted UI Dialogs Not Working
RE: INDESIGN CS3 5.0.3: Scripted UI Dialogs Not Working
- Subject: RE: INDESIGN CS3 5.0.3: Scripted UI Dialogs Not Working
- From: Rick Gordon <email@hidden>
- Date: Tue, 26 Aug 2008 02:06:40 -0700
Never mind. I needed to change my user interaction level.
Rick Gordon
------------------
On 8/26/08 at 2:00 AM -0700, Rick Gordon wrote in a message entitled
"INDESIGN CS3 5.0.3: Scripted UI Dialogs Not Working":
>After trying to build a UI dialog and having it not show,I copied this script exactly from the CS3 Scripting Guide PDF, taking care to fix any broken lines. The only modification is the "activate" line and the removal of commented lines.
>
>tell application "Adobe InDesign CS3"
> activate
> set myDialog to make dialog with properties {name:"Simple Dialog"}
> tell myDialog
> tell (make dialog column)
> make static text with properties {static label:"This is a very simple dialog box."}
> end tell
> end tell
> set myResult to show myDialog
> if myResult is true then
> display dialog ("You clicked the OK button")
> else
> display dialog ("You clicked the Cancel button")
> end if
> destroy myDialog
>end tell
>
>Regardless of whether I run the script from Script Editor or the Script Panel, and even with the Plug-In Manager set to load only Adobe plug-ins, No dialog appears, and myResult registers as false, generating the standard dialog "You clicked the Cancel button." Is something broken?
>
>The event log follows:
>
>tell application "Adobe InDesign CS3"
> activate
> current application
> activate
> make with properties {name:"Simple Dialog"} new dialog
> dialog id 11664
> make new dialog column
> dialog column id 97832 of dialog id 11664
> make with properties {static label:"This is a very simple dialog box."} new static text
> static text id 97833 of dialog column id 97832 of dialog id 11664
> show dialog id 11664
> false
> display dialog "You clicked the Cancel button"
> {button returned:"OK"}
> destroy dialog id 11664
>end tell
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden