Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Dialogs in Applescript

Return to Member Forum

  • Author
    Posts
    • #61931

      How do you create an InDesign dialog in Applescript? I've tried this:

      tell “Adobe InDesign CS5.5”

      set myDialog to make dialog with properties {name:”Simple Dialog”}

      end tell

      – a line taken from Adobe's InDesign CS5 Applescript Guide, but it doesn't seem to recognise 'dialog' as a noun. It tries to parse it as a variable and complains that it's not defined.

      What am I doing wrong?

    • #61976
      mac grunt
      Member

      G'day

      You're just missing the word 'application' in the first line :

      tell application “Adobe InDesign CS5.5”
      set myDialog to make dialog with properties {name:”Simple Dialog”}
      show myDialog
      end tell


      m.

    • #61977

      Thanks – you're right, I missed that.

      But it's still not working: I now get the error:

      error “Adobe InDesign CS5.5 got an error: Can’t make class dialog.” number -2710 from dialog to class

      Any idea what the problem is here? Does anyone have InDesign dialogs working successfully in Applescript?
    • #61997
      mac grunt
      Member

      Yep, I use dialogs all the time and this is the format which works up until CS4 at least.

      Only started using CS5 a couple of weeks ago — so I haven't had a chance to check with that version yet (sorry, but can't test that until Monday).

      The only suggestion I have immediately is to ensure all the double-quotes are 'straight' quotes (ie. maybe retype them to ensure they are in the right format).

      Also, check over at the Adobe Forums — there are some absolutely brilliant people over there who may well know exactly what that error message means.

      m.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
Forum Ads