Book a Demo

Author Topic: access two repositories (.eap files) frrom jscript  (Read 5197 times)

marekpolewczyk

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
access two repositories (.eap files) frrom jscript
« on: March 21, 2015, 01:51:49 am »
I am trying to access two repositories (.eap files) from one jscript file. I am struggling to do that, however always some errors appear. Does anyone have solution to that?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: access two repositories (.eap files) frrom jsc
« Reply #1 on: March 21, 2015, 02:18:35 am »
The problem is getting the EA com object with JScript. AFAIK this is not possible with JScript.

q.

marekpolewczyk

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: access two repositories (.eap files) frrom jsc
« Reply #2 on: March 21, 2015, 02:55:31 am »
In what language it is possible then. In VBscript? How to do that then?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: access two repositories (.eap files) frrom jsc
« Reply #3 on: March 21, 2015, 03:13:02 am »
VB can do (it's Mickeysoft's own child):
Code: [Select]
Dim Repository As EA.repository
Set EAapp = GetObject(, "EA.App")
Set Repository = EAapp.repository
(from my Scripting book)

Of course the above will get only one object and you have to find one of two. Someone posted how this works here, but finding it is a PITA. Google will be your friend (or some other smart guy here on the forum).

q.
« Last Edit: March 21, 2015, 03:14:52 am by qwerty »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: access two repositories (.eap files) frrom jsc
« Reply #4 on: March 23, 2015, 04:45:08 pm »
JScript is Microsoft's version of Javascript, so I'm not sure that argument holds.

https://technet.microsoft.com/en-us/office365/ebdktb00

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: access two repositories (.eap files) frrom jsc
« Reply #5 on: March 23, 2015, 06:03:09 pm »
Thanks, Simon. I was not aware of that.

q.