cancel
Showing results for 
Search instead for 
Did you mean: 

Passing a param value to aqObject.CheckProperty

LuciRUoc
Occasional Contributor

Passing a param value to aqObject.CheckProperty

Hello All

 

New to TC so please forgive the basic question.

 

Function of the script - Software Center-

1) Searches for a installed program on the search bar, eg MS Office

2) When the search is committed, it does a check on the result to confirm it is installed.

 

I would like the script to be able to take different search parameters so it can be reusable however the object it checks for in the results changes depending what you are searching for so I am trying to pass over a value within "aqObject.CheckProperty" from a param file but struggling to get it to work. Ive initially been trying it with a variable but with no joy.

 

Can anyone help? See script below.

3 REPLIES 3
Marsha_R
Community Hero

Re: Passing a param value to aqObject.CheckProperty

instead of setting 

vObject = "myaliasstring"

set 

vObject = eval(myaliasstring)

 

Right now you are making vObject a string rather than the object that you want.

 

 

Tags (1)
LuciRUoc
Occasional Contributor

Re: Passing a param value to aqObject.CheckProperty

Fantastic, that has set me on the right path.

 

I changed it and its worked.

 

What I need now is for the script to accept a parameter value and use that as the object. Is that possible?

Marsha_R
Community Hero

Re: Passing a param value to aqObject.CheckProperty

I don't believe the script will care about the source of the value as long as it resolves to something that is type object.  Try it and see. 

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors