Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
solaris765
40 discussion posts
I'm writing a function that requires a programs file location but the program would be a wild card.
Is there a way to get that programs file location returned somehow?
Mar 2, 2015  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Is the program running at the point where you're looking for its process path? If so, you should be able to use string[] files = BFS.Application.GetAllRunningApplicationFiles(); and then loop through that array to find the one you're looking for.
Mar 3, 2015  • #2
User Image
solaris765
40 discussion posts
alright. I was hoping for something simpler. But I guess a built in function would be essentially the same thing anyways.
Mar 4, 2015  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Yeah, it would be the same thing, but we'll see if we can add it as a built-in function in the future to make it simpler to code in the scripts :)
Mar 4, 2015  • #4
User Image
solaris765
40 discussion posts
Thanks. It's more of a readability thing for me. I like people to know what I'm trying to do in the fewest lines possible.
Mar 5, 2015  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We've just released 8.0 Beta 3, and have added a function for getting a program's path by wildcard: http://www.displayfusion.com/ScriptedFunctions/Help/#bfs_application_getmainfilebywildcard

Hope that helps!
Jan 29, 2016  • #6
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)