jmcneely wrote:That worked!!! I owe you a beer or something. Do you drink beer? THANKS!!!!
Cool, you're welcome
And this is how much I like beer.....
jmcneely wrote:That worked!!! I owe you a beer or something. Do you drink beer? THANKS!!!!
david wrote:jmcneely wrote:Then when they click the button, they end up with a blank browser window showing, with possibly a small hint of a servoy window peeking out from behind it. There simply has to be a better answer than this. I am trying having the script execute an Applescript to force the app to the front, but that is not proving to be so simple either. I'm open to ideas, but I can't just leave it here.
Well if you're just worried about Mac clients the following trickery should work if placed at the end of your deeplinked method:
- Code: Select all
var PPID = application.executeProgram('/bin/bash','-c', 'echo $PPID')
application.executeProgram('osascript', '-e', 'tell application "System Events"',
'-e', 'set theprocs to every process whose unix id is ' + PPID,
'-e', 'repeat with proc in theprocs',
'-e', 'set the frontmost of proc to true',
'-e', 'end repeat', '-e', 'end tell')
Return to Programming with Servoy
Users browsing this forum: No registered users and 22 guests