Author Topic: "GetApplicationVariable"  (Read 2239 times)

stahl

  • Jr. Member
  • *
  • Posts: 67
  • IMatch user since 2004 (Ver. 3.4)
"GetApplicationVariable"
« on: February 05, 2016, 12:10:44 AM »
Hello,
I'm trying to convert Horst Nogajski's script set for IM5. How do I address the IMatch script folder in IM5? It used to be the following in IM3:
Code: [Select]
Application.GetApplicationVariable("Application.ScriptFolder")
I've checked the scripting help, but it isn't too verbose on this topic. Any help is appreciated!

Thanks, Stef

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28532
Re: "GetApplicationVariable"
« Reply #1 on: February 05, 2016, 08:55:45 AM »
All Application variables are listed in the Variables help topic, under the Standard Application Variables headline. There is no variable which returns the script folder.

JohnZeman

  • Global Moderator
  • *****
  • Posts: 1398
  • I'm too damn old to act my age.
Re: "GetApplicationVariable"
« Reply #2 on: February 05, 2016, 03:27:50 PM »
It's not an application variable of course but you might be able to do what you want if you search the script help for MacroDir

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28532
Re: "GetApplicationVariable"
« Reply #3 on: February 05, 2016, 04:40:02 PM »
Good point. MacroDir returns the name of the folder containing the currently executing script.

stahl

  • Jr. Member
  • *
  • Posts: 67
  • IMatch user since 2004 (Ver. 3.4)
Re: "GetApplicationVariable"
« Reply #4 on: February 06, 2016, 03:09:10 PM »
Thanks JohnZeman and Mario,
I will give that a try.
Cheers, Stef