Re: launch app from browser

2007-07-13 Thread David Bovill

Thanks!
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-13 Thread viktoras didziulis

David, trap reloadStack message:

on reloadStack
end reloadStack

this will prevent two main stacks with the same name from being open 
simultaneously.


Best wishes
Viktoras



David wrote:

The question I have is if you want to get the html link to open a rev
document - either by your application or the IDE - it seems on tests
on OSX to open multiple instances of the application and not let the
application open multiple stacks. I know this can be got around using
text files to implement locks - and I remember some issue and I think
IDE or engine enhancements to work with these issues - but can't find
them :)

How do you get an html link to a .rev file not to open multiple
instances of the app?

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

  


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-13 Thread David
The question I have is if you want to get the html link to open a rev
document - either by your application or the IDE - it seems on tests
on OSX to open multiple instances of the application and not let the
application open multiple stacks. I know this can be got around using
text files to implement locks - and I remember some issue and I think
IDE or engine enhancements to work with these issues - but can't find
them :)

How do you get an html link to a .rev file not to open multiple
instances of the app?

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-13 Thread viktoras didziulis
The only way to get this working would be using HTA. Note, it works on 
MS windows (98 and up) only.

It is an html file that starts like this:


Put your title here



Click here to launch the myapp.exe


Save this file as test.hta. Thats it. HTA's have same restrictions as 
any other applications on windows. Now you can use javascript (jscript), 
vbscript, activex components and whatever you need...


If there are frames in the hta application then each frame must be 
allowed to get access to system by setting it to "application" and 
"trusted" like application="yes" trusted="yes" i.e.like:
application="yes" trusted="yes" width="100%" height="97%" marginwidth=0 
marginheight=0 frameborder=0 scrolling="auto">


Viktoras

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


re: launch app from browser

2007-07-12 Thread Ken Ray
On Thu, 12 Jul 2007 20:52:38 +0300, Lars Brehmer wrote:

> I just mean "launch" in the simplest sense of the word - launch 
> an app that resides on your hard drive. 

Lars, this is a huge security risk, and therefore is normally not 
allowed unless you are running on an intranet with special permissions 
set forth, etc. The reason is that some malicious person could create a 
link on a public web page that ran a shell command that deleted a bunch 
of files on your disk, or worse.

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-12 Thread Martin Baxter

Lars Brehmer wrote:
All I want to
know is whether or not you can have a hyperlink or button in an html 
document (that resides on your hard drive) and is open in your browser 
and that launches another application which also resides on your hard 
drive, exactly the way clicking on a mailto link in your browser opens 
your mail app or clicking on a link to a H.264 video file launches 
Quicktime Player.  Or just like clicking on a web link in a rev document 
launches your browser and internet connection or using "launch" in a rev 
script launches any app you want it to launch. In this case the app I 
want to lauch is a simple standalone created in Rev.


Cheers,

Lars


Lars,

The simple answer is that *if* it can be done, it will not be 
straightforward.


The more detailed answer is...

Launching an application directly from html or script in a web page 
without user confirmation is rightly considered a security risk, so 
although you can easily make an html hyperlink like:


click to launch myapp

In your html. What results from that will depend on the browser in use 
and perhaps the user's security preferences. Some browsers (e.g. IE6) 
may show a dialog offering [Run] [Save to disk] [cancel], others such as 
Firefox may not offer the [Run] option at all, but only [Save to disk], 
which is no use to you.


As others have suggested, you might try launching a document that the 
user's web browser already has an association for. That means, an 
internal web-browser preference will have been set by the user 
associating that document type with your app. So e.g. if the browser had 
been told that files ending .rev should be opened using myapp.exe, then 
the hyperlink run myapp would launch myapp.exe 
to handle the document stack.rev. This basically what is happening with 
quicktime, email clients, acrobat and so-on, the browser has been 
pre-configured to use specific software to handle those media types and 
requests.


An all-browser, all platform solution for this will take some work, here 
are some links I got from googling "launch exe from web page", relevant 
for windows only, and mostly IE oriented, all are a rather technical or 
cost money.


http://www.particlesoftware.com/en/index.html
http://www.whirlywiryweb.com/q/%2Flaunchinie.asp
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/overview/htaoverview.asp

Mac I don't know.

Martin Baxter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-12 Thread Mark Schonewille

Hi Lars,

You want to embed some AppleScript inside a web site to be run from  
Safari, which will launch your application. I know it can be done,  
but I don't have the recipe at hand at the moment. I hope someone  
else can help you with that.


Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http;//www.salery.com

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 12-jul-2007, om 19:52 heeft Lars Brehmer het volgende geschreven:

Thanks for replies to my original question, but I guess either what  
I had in mind and thought would be simple either isn't possible at  
all, or I just didn't ask the question in a way that any normal  
person could understand what I was trying to say. Sorry about  
that.  When I say "launch an app from a browser" I do not mean  
launch or download an app on a server and I don't mean anything  
involving file down or uploading or anything of the sort.  I don't  
mean anything involving any connection to the web or another server  
or another machine at all.  I just mean "launch" in the simplest  
sense of the word - launch an app that resides on your hard drive.   
For example on a Mac in Mac Help you are looking at the help file  
for connecting to the internet.  On that page in the help file  
there are links"open network diagnostics" and "open network  
preferences,"  which when clicked launch tose apps. These links do  
exactly what single clicking on a dock icon does or douple clicking  
on an app icon in the finder, or for that matter single clicking on  
an app icon in the Windows start menu or double clicking on an app  
shortcut on the desktop or on an app icon in the programs  
directory. All I want to know is whether or not you can have a  
hyperlink or button in an html document (that resides on your hard  
drive) and is open in your browser and that launches another  
application which also resides on your hard drive, exactly the way  
clicking on a mailto link in your browser opens your mail app or  
clicking on a link to a H.264 video file launches Quicktime  
Player.  Or just like clicking on a web link in a rev document  
launches your browser and internet connection or using "launch" in  
a rev script launches any app you want it to launch. In this case  
the app I want to lauch is a simple standalone created in Rev.


Cheers,

Lars



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-12 Thread Mark Wieder
Lars-

> could understand what I was trying to say. Sorry about that.  When I  say 
> "launch an app from a browser" I do not mean launch or download  an app on 
> a server and I don't mean anything involving file down or  uploading or 
> anything of the sort.  I don't mean anything involving  any connection to 
> the web or another server or another machine at  all.  I just mean 
> "launch" in the simplest sense of the word - launch  an app that resides 
> on your hard drive.

If you read my reply, that's exactly what I gave you. The example launches a 
stack document that resides on the root directory of the hard drive. I'm 
afraid you or someone else will have to learn some html to get what you want 
accomplished, and even then I'm not convinced you'll be able to launch an 
executable application due to security restrictions of various operating 
systems.

-- 
 Mark Wieder
 [EMAIL PROTECTED]




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


re: launch app from browser

2007-07-12 Thread Lars Brehmer
Thanks for replies to my original question, but I guess either what I  
had in mind and thought would be simple either isn't possible at all,  
or I just didn't ask the question in a way that any normal person  
could understand what I was trying to say. Sorry about that.  When I  
say "launch an app from a browser" I do not mean launch or download  
an app on a server and I don't mean anything involving file down or  
uploading or anything of the sort.  I don't mean anything involving  
any connection to the web or another server or another machine at  
all.  I just mean "launch" in the simplest sense of the word - launch  
an app that resides on your hard drive.  For example on a Mac in Mac  
Help you are looking at the help file for connecting to the  
internet.  On that page in the help file there are links"open network  
diagnostics" and "open network preferences,"  which when clicked  
launch tose apps. These links do exactly what single clicking on a  
dock icon does or douple clicking on an app icon in the finder, or  
for that matter single clicking on an app icon in the Windows start  
menu or double clicking on an app shortcut on the desktop or on an  
app icon in the programs directory. All I want to know is whether or  
not you can have a hyperlink or button in an html document (that  
resides on your hard drive) and is open in your browser and that  
launches another application which also resides on your hard drive,  
exactly the way clicking on a mailto link in your browser opens your  
mail app or clicking on a link to a H.264 video file launches  
Quicktime Player.  Or just like clicking on a web link in a rev  
document launches your browser and internet connection or using  
"launch" in a rev script launches any app you want it to launch. In  
this case the app I want to lauch is a simple standalone created in Rev.


Cheers,

Lars
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-12 Thread Mark Wieder
Lars-

If the publisher already has existing products like this, then they've 
probably already worked out the cross-browser and cross-platforms issues, 
which can be quite sticky. (You'll need to look at the navigator object 
model properties)

What you're no doubt looking for is the  tag, which allows for 
external content from an html page. Here's a whole (minimal) web page that 
launches a rev stack on a Windows system (as long as the associated 
application has been installed and registered to handle .rev file 
extensions):




your browser doesn't handle iframes, eh?




Note that actual executable applications can't be launched this way, for the 
obvious security reasons.

-- 
 Mark Wieder
 [EMAIL PROTECTED]



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-11 Thread David Bovill

I have done this before - but it was a long long time ago - so maybe someone
else can help you better these are the bits of the puzzle I know:

  1. just link to a file as if it were an html page  -   opn.rev
  2. Hope and pray that your ISP has their mim-types set to serve this
  file correcltly - this is to do with mime-types and application/octet-stream
  I think is the default and should be fine
  3. The user after clicking on the link will then be presented with a
  dialog to save or open with an application... the user should select the rev
  application you want to associate with the file extension (presumably its a
  ".rev" stack"). How this works is browser dependent.
  4. Further links to files with the same ".rev" file extension will be
  associated by the browser with the application and opened by the
  application.

These are the potential pitfalls:

  1. Application is opened multiple times, rather than "documents" being
  opened by the same application - there are ways round this ask on the list
  or search the archive
  2. It's too complicated for the end user to set up. It should be
  possible to get you Rev app to automatically set the browser up to do this
  for the user - but this requires a lot of work to get right for all those
  different browsers and platforms. Anyway its not too hard. Not sure what the
  problems are for obscure browsers - but at a minimum they should all be able
  to download the file.
  3. The mime-types on you server are not set up properly and you get
  text in the browser instead of the option to download - contact you hosting
  provider and talk to them sweetly.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


re: launch app from browser

2007-07-11 Thread Lars Brehmer

Thanks for the quick reply Stephen!

however;





Quick, easy question;

I need to launch a standalone from within a web browser,



Why?


The "why" is easy.  A publisher making a multi-media language course  
is interested in integrating a vocabulary trainer of mine into their  
project.  Their project is not a web app, but it is done in html and  
runs locally on the user's machine in their web browser.  My app is a  
standalone and wouldn't run in the browser, of course, but it makes  
sense to me to be able to click a button or link in the language  
course html document that launches it.  I guess this is just to allow  
the user to lauch my trainer without navigating to it in the start  
menu or finder. Again, I know absolutely no html or java or the like,  
but I somehow assume there is a way to do this, just like clicking an  
e-mail address on a web page launches your mail app, or clicking on a  
link to an h.264 video on a web site launches Quicktime Player  
locally, or clicking a download link on the Veoh site launches Veoh  
player.  And in these three cases a file path is not necessary,  
although if a file path IS necessary, that wouldn't be a problem,  
since their installer would also install my app, so the file path is  
known.


I do use Dreamweaver/Fireworks and have searched through their help  
files for this and found no hint.  And since opening an app via start  
menu - dock - finder etc. is as basic as it gets, I guess this is not  
a big deal.  It is, however, a nice little convenience for the user,  
so I thought I'd try to see whether it is indeed possible.  Any advice?


Cheers,

Lars
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch app from browser

2007-07-10 Thread Stephen Barncard

Quick, easy question;

I need to launch a standalone from within a web browser,


Why?


 but I know absolutely zero html etc.


well it's simple... play around with the OS cross-platform NVU and 
switch back and forth between compose and HTML. you'll learn quickly 
and can hack it right there. It's a lot easier to use a GUI. It also 
uploads to web servers.

http://www.nvu.com/download.php



here's a starter, but an absolute or relative location on the (I 
assume) local drive has to be specified.






THIS IS A LINK PAGE, dude



Download file
MYBIGFILE.txt



watch for line wraps in email.
this will not work on a server, by the way.





 This would be an html file either installed on a user's hard drive 
or being read from a CD-rom with Firefox, Explorer, Safari, etc. 
The standalone is already installed on the hard drive. In rev the 
button script is simply;


on mouseUp
  if the platform is "macOS" then
launch "/applications/eestikeeluus.app"
  else
launch "C:\Program Files\eestiKeel\eestiKeel.exe"
  end if
end mouseUp

How do I script a  button in this html file to do the same thing? 
Please remember, I know no html.


Cheers,

Lars




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


launch app from browser

2007-07-10 Thread Lars Brehmer

Quick, easy question;

I need to launch a standalone from within a web browser, but I know  
absolutely zero html etc.  This would be an html file either  
installed on a user's hard drive or being read from a CD-rom with  
Firefox, Explorer, Safari, etc.  The standalone is already installed  
on the hard drive. In rev the button script is simply;


on mouseUp
  if the platform is "macOS" then
launch "/applications/eestikeeluus.app"
  else
launch "C:\Program Files\eestiKeel\eestiKeel.exe"
  end if
end mouseUp

How do I script a  button in this html file to do the same thing?  
Please remember, I know no html.


Cheers,

Lars




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution