Loading ...
Sorry, an error occurred while loading the content.

3827Help formatting string for appleevents

Expand Messages
  • Steve Hooker
    Sep 26, 2009
    • 0 Attachment
      I'm trying to add a new user to EIMS on Mac Classic. But, I cannot get
      the string of parameters correct. I keep getting an error "Encountered
      an unexpected data type."

      Below is the script, and the three attempts I have had at getting the
      formatting correct.

      If someone can help, I'd be eternally thankful.
      Steve


      on newUser (x) { «Add a new user
      return (appleEvent (eims.id, 'EIMS', 'NEWU', '----', x))};
      local {
      «x =
      "\"username:\"richard.green\",domain:\"test.com\",fullname:\"Richard
      Green\",password:\"a5tyhju\",loginEnabled:\"true\",accountEnabled:\"true\"\""
      «x =
      "username:\"richard.green\",domain:\"test.com\",fullname:\"Richard
      Green\",password:\"a5tyhju\",loginEnabled:\"true\",accountEnabled:\"true\""
      x =
      {"username:\"richard.green\"","domain:\"test.com\"","fullname:\"Richard
      Green\"","password:\"a5tyhj\"","loginEnabled:\"true\"","accountEnabled:\"true\"","sizelimit:\"1024\""}};
      newUser (x)
    • Show all 43 messages in this topic