Re: launch url
There is a report in bugzilla that launch document doesn't always work for everyone, and it turns out that if you don't have file associations set up properly it will fail. All that launch document does is sent a shell command to the OS. I suspect that launch URL does the same thing. If that's true, then checking file associations might be the answer. Two issues with this: 1. If you are deploying an app to many users, you cannot expect them to have things set up a certain way. You must make sure your code covers the contingencies. 2. Even my previous code (prior to Rev's adding launch url) for launching an url failed on Windows. What used to work, now does not. I went back to a previous version of a working app I had created, that I know beyond a doubt launched urls before on my same WinMachine, now it does not. I went back to a build prior to 2.9, with an app that worked. On a machine that worked. So this isn't a 2.9 issue. Or a new code doesn't work issue. Something must have changed on Windows. Best guess is that some sort of Windows update has broken it. If this is the case, I'm a bit lost how to repair it. My code cycles thru several attempts to go to a web page, do this, if it fails do that, etc. That machine hasn't had any new Windows installs, only patch updates. -- Humorous sports t-shirts http://www.villagetshirts.com WlND0WS and MAClNT0SH shareware games http://www.gypsyware.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: launch url
Thanks for the reply. Glad to know we agree :-) Best regards, Mark Schonewille -- Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz A large collection of scripts for HyperCard, Revolution, SuperCard and other programming languages can be found at http://runrev.info On 23 apr 2008, at 00:33, J. Landman Gay wrote: Yes, I agree. That should be correct. File associations was all I could think of to check though. ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: launch url
Shari wrote: Best guess is that some sort of Windows update has broken it. If this is the case, I'm a bit lost how to repair it. My code cycles thru several attempts to go to a web page, do this, if it fails do that, etc. That machine hasn't had any new Windows installs, only patch updates. Have you tried sending a shell command? -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: launch url
This is getting weird. After trying all sorts of things on the Windows machine, I figured I'd compile it with my previous MC version 2.8.1 and go back to the old code that I know works. But even that failed to fix it. So even with the old code that used to work flawlessly, and the previous version of MC which also worked flawlessly before, attempting to launch an url failed. I swear it worked before. I always test that before final release. I'm wondering if there was some sort of Windows update that broke it? The WinMachine belongs to my fella, so I'll have to ask him. Windows is always putting out patches and so forth, I've no doubt that at least some of them have been installed since my previous release. I can go to the internet outside of MC just fine. I can open IE and type in an address and it goes there, so the internet itself is working. I had it run thru several attempts to go to an URL, everytime checking the result, and if the result was not empty, it would try another method. I had it answer the result so I could see what results it was getting. I got three different results from three different methods of going to an URL: Can't open file 1 Process already open (I guess after it failed the first attempt, the process got locked open, so it didn't try the others?) Shari I don't think so. I just tried the same line as above in the Message Box on Vista, and got the result, not opened. Same on XP. Tested with both IE as the default browser, and with FireFox. I'd thought this worked in v2.9 - what's the missing piece? I tried it in the message box on XP with IE, and it failed. Worked fine on my Mac, both as launch url and my original code. What really puzzles me is why my original code for launching an url on Windows failed. It used to work flawlessly on Windows. Let me go look at it again... -- Humorous sports t-shirts http://www.villagetshirts.com WlND0WS and MAClNT0SH shareware games http://www.gypsyware.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: launch url
Shari wrote: This is getting weird. After trying all sorts of things on the Windows machine, I figured I'd compile it with my previous MC version 2.8.1 and go back to the old code that I know works. But even that failed to fix it. I just had a chance to test this on Windows XP using Parallels and it appropriately responds by launching my (Mac) browser -- which is how I have it set up. So something is working at least. I wasn't able to unset the preference that makes Parallels launch the Mac app instead of the Windows one, though I tried a number of things. But it does seem to indicate that the appropriate call is being made to the OS. There is a report in bugzilla that launch document doesn't always work for everyone, and it turns out that if you don't have file associations set up properly it will fail. All that launch document does is sent a shell command to the OS. I suspect that launch URL does the same thing. If that's true, then checking file associations might be the answer. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: launch url
Hi Jacque, How do you define set up properly? I'd say, if double-clicking a file opens it in the right application, file associations are set up properly. If I double-click a PDF in Windows, Acrobat Reader opens it, which seems to indicate that file associations are set up propert, but if I use launch document, the file is not opened. Best regards, Mark Schonewille -- Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz A large collection of scripts for HyperCard, Revolution, SuperCard and other programming languages can be found at http://runrev.info On 22 apr 2008, at 23:01, J. Landman Gay wrote: Shari wrote: I just had a chance to test this on Windows XP using Parallels and it appropriately responds by launching my (Mac) browser -- which is how I have it set up. So something is working at least. I wasn't able to unset the preference that makes Parallels launch the Mac app instead of the Windows one, though I tried a number of things. But it does seem to indicate that the appropriate call is being made to the OS. There is a report in bugzilla that launch document doesn't always work for everyone, and it turns out that if you don't have file associations set up properly it will fail. All that launch document does is sent a shell command to the OS. I suspect that launch URL does the same thing. If that's true, then checking file associations might be the answer. ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
launch url
Can launch url be used in Metacard? It doesn't have a rev in front of it, so I'm assuming it should work, but it doesn't. tUrl = http://www.someUrl.com launch url tUrl just opens a blank url. libUrl is installed. Any thoughts? -- Humorous sports t-shirts http://www.villagetshirts.com WlND0WS and MAClNT0SH shareware games http://www.gypsyware.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: launch url
Shari wrote: Can launch url be used in Metacard? It doesn't have a rev in front of it, so I'm assuming it should work, but it doesn't. tUrl = http://www.someUrl.com launch url tUrl just opens a blank url. libUrl is installed. Any thoughts? I just tried this in the MC Message Box: launch url http://www.fourthworld.com; ...and it worked just fine. Anything going on with that variable? -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: launch url
I just tried this in the MC Message Box: launch url http://www.fourthworld.com; ...and it worked just fine. Anything going on with that variable? I tried it in the MC message box on my Mac, too, and it worked. Where it failed was in the standalone on Windows. Is anything needed in the standalone besides libUrl for it to work? The whole thing was weird. My hand built goUrl code didn't work on Windows, either, whereas on Mac it was fine. That's what made me look at it. I didn't know launch url existed (new in 2.9) until I tried to find out why Windows wouldn't go to the url as it always had before. I deleted my customized goUrl code and replaced it with launch url, using the tUrl variable I had always used. Maybe it needs to be in quotes in the variable? Shari -- Humorous sports t-shirts http://www.villagetshirts.com WlND0WS and MAClNT0SH shareware games http://www.gypsyware.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: launch url
Shari wrote: I just tried this in the MC Message Box: launch url http://www.fourthworld.com; ...and it worked just fine. Anything going on with that variable? I tried it in the MC message box on my Mac, too, and it worked. Where it failed was in the standalone on Windows. Is anything needed in the standalone besides libUrl for it to work? The whole thing was weird. My hand built goUrl code didn't work on Windows, either, whereas on Mac it was fine. That's what made me look at it. I didn't know launch url existed (new in 2.9) until I tried to find out why Windows wouldn't go to the url as it always had before. I deleted my customized goUrl code and replaced it with launch url, using the tUrl variable I had always used. Maybe it needs to be in quotes in the variable? I don't think so. I just tried the same line as above in the Message Box on Vista, and got the result, not opened. Same on XP. Tested with both IE as the default browser, and with FireFox. I'd thought this worked in v2.9 - what's the missing piece? -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: Launch URL in 3 lines
Scott: set the hideConsoleWindows to true put "http://www.metacard.com" into tURL get shell("start" tURL) Not sure if I love you or hate you! /H