• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multi input form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multi input form


  • Subject: Re: multi input form
  • From: "Houston, Brad" <email@hidden>
  • Date: Mon, 08 Mar 2010 16:36:42 -0800
  • Importance: normal
  • Priority: normal
  • Thread-topic: multi input form

Title: Re: multi input form
Hi Mike,

Building straight in applescript, you might be able to use this as a guide (sorry, no time to purify it):

Brad


set myFiles to {1, 2, 3}
set myFolder to "BBBB"
set myLabelWidth to 132
tell application "Adobe InDesign CS2"
    set myDialog to make dialog with properties {name:"ImageCatalog"}
    tell myDialog
        tell (make dialog column)
            tell (make dialog row)
                make static text with properties {static label:"Information"}
            end tell
            tell (make border panel)
                tell (make dialog column)
                    tell (make dialog row)
                        
                        make static text with properties {static label:"SourceFolder:", min width:myLabelWidth}
                        
                        make static text with properties {static label:myFolder, min width:myLabelWidth}
                    end tell
                    tell (make dialog row)
                        
                        make static text with properties {static label:"Number of Graphics:", min width:myLabelWidth}
                        
                        make static text with properties {static label:((count myFiles) as string)}
                    end tell
                end tell
            end tell
            tell (make dialog row)
                make static text with properties {static label:"Options"}
            end tell
            tell (make border panel)
                tell (make dialog column)
                    tell (make dialog row)
                        make static text with properties {static label:"Number of Rows:", min width:myLabelWidth}
                        set myNumberOfRowsField to make integer editbox with properties {edit value:3}
                    end tell
                    tell (make dialog row)
                        make static text with properties {static label:"Number of Columns:", min width:myLabelWidth}
                        set myNumberOfColumnsField to make integer editbox with properties {edit value:3}
                    end tell
                    tell (make dialog row)
                        make static text with properties {static label:"Vertical Offset:", min width:myLabelWidth}
                        set myVerticalOffsetField to make measurement editbox with properties {edit value:12, edit units:points}
                    end tell
                    tell (make dialog row)
                        make static text with properties {static label:"Horizontal Offset:", min width:myLabelWidth}
                        set myHorizontalOffsetField to make measurement editbox with properties {edit value:12, edit units:points}
                    end tell
                    tell (make dialog row)
                        tell (make dialog column)
                            make static text with properties {static label:"Label:", min width:myLabelWidth}
                        end tell
                        tell (make dialog column)
                            set myLabelsButtons to make radiobutton group
                            tell myLabelsButtons
                                make radiobutton control with properties {static label:"None", checked state:true}
                                make radiobutton control with properties {static label:"File Name", checked state:false}
                                make radiobutton control with properties {static label:"Full Path", checked state:false}
                            end tell
                        end tell
                    end tell
                    tell (make dialog row)
                        tell (make dialog column)
                            make static text with properties {static label:"Fitting:", min width:myLabelWidth}
                        end tell
                        tell (make dialog column)
                            set myFitProportionalCheckbox to make checkbox control with properties {static label:"Proportional", checked state:true}
                            set myFitCenterContentCheckbox to make checkbox control with properties {static label:"Center Content", checked state:true}
                            set myFitFrameToContentCheckbox to make checkbox control with properties {static label:"FrameToContent", checked state:true}
                        end tell
                    end tell
                    tell (make dialog row)
                        set myRemoveEmptyFramesCheckbox to make checkbox control with properties {static label:"Remove Empty Frames", checked state:true}
                    end tell
                end tell
            end tell
            
        end tell
    end tell
    set myResult to show myDialog
    if myResult = true then
        set myNumberOfRows to edit value of myNumberOfRowsField
        set myNumberOfColumns to edit value of myNumberOfColumnsField
        set myVerticalOffset to edit value of myVerticalOffsetField
        set myHorizontalOffset to edit value of myHorizontalOffsetField
        set myLabels to selected button of myLabelsButtons
        set myFitProportional to checked state of myFitProportionalCheckbox
        set myFitCenterContent to checked state of myFitCenterContentCheckbox
        set myFitFrameToContent to checked state of myFitFrameToContentCheckbox
        set myRemoveEmptyFrames to checked state of myRemoveEmptyFramesCheckbox
        my myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myLabels, myRemoveEmptyFrames, myVerticalOffset, myHorizontalOffset, myFitProportional, myFitCenterContent, myFitFrameToContent)
    end if
    destroy myDialog
end tell



On 3/8/10 11:20 AM, "Michele (Mike) Hjorleifsson" <email@hidden> wrote:

> What is the best / easiest way to do a multi-field input form in applescript ?
>  _______________________________________________
> 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
 

The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor and review the content of any electronic message or information sent to or from McGraw-Hill employee e-mail addresses without informing the sender or recipient of the message.

 _______________________________________________
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

References: 
 >multi input form (From: "Michele (Mike) Hjorleifsson" <email@hidden>)

  • Prev by Date: Re: [X-Post] Triggering a FileMaker Script with AppleScript
  • Next by Date: Re: multi input form
  • Previous by thread: Re: multi input form
  • Next by thread: Re: multi input form
  • Index(es):
    • Date
    • Thread