Re: Handling custom URL protocols in Mac OS X?

2008-10-23 Thread Lyn Teyla
Ben Rubinstein wrote:

> Note the crazy GURL/LRUG test; this became necessary when
> Intel Macs came out.
> I think it applied when running under Rosetta on an Intel
> Mac.  I don't know
> if it's still an issue - ie whether it was a bug in Rev, or
> in Apple's code.

Thanks Ben, the code works great.

I can also confirm that Jacqueline's suggestion
about including a custom plist via the standalone
builder works fine.

Lyn
___
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: Handling custom URL protocols in Mac OS X?

2008-10-22 Thread J. Landman Gay

Ben Rubinstein wrote:

Thanks for the tip on how to register the custom URL protocol btw, which 
I'd
previously given my users detailed instructions on how to do on each 
machine.

   Do you/does anyone know if there's a way to have this done automatically
each time a new standalone is built?


The standalone builder allows the option of including a custom-made 
plist file instead of having it create one for you. You could set one up 
the way you want it, and then just point the SB to that.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.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: Handling custom URL protocols in Mac OS X?

2008-10-22 Thread Ben Rubinstein

Lyn Teyla wrote:

I'm trying to get a standalone app to handle
a custom URL protocol in Mac OS X.
...
I can get the custom URL protocol to launch
the standalone app, which is great (if you'd
like to know how this is done, see the P.S.).

However, within the app, I have no idea how
to find and extract the 'www.awesome.com'
portion of the URL that was used to launch it.


Hi Lyn,

My code looks something like this:

on appleEvent c, i, s
  if ((c = "GURL") and (i = "GURL"))
  or ((c = "LRUG") and (i = "LRUG")) then
request appleEvent data
put it into tURL
-- do something with the URL
  else
pass appleEvent
  end if
end appleEvent

Note the crazy GURL/LRUG test; this became necessary when Intel Macs came out.
 I think it applied when running under Rosetta on an Intel Mac.  I don't know
if it's still an issue - ie whether it was a bug in Rev, or in Apple's code.

Thanks for the tip on how to register the custom URL protocol btw, which I'd
previously given my users detailed instructions on how to do on each machine.
   Do you/does anyone know if there's a way to have this done automatically
each time a new standalone is built?

TIA,

- Ben



___
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: Handling custom URL protocols in Mac OS X?

2008-10-21 Thread J. Landman Gay

Lyn Teyla wrote:

Hello,

I'm trying to get a standalone app to handle
a custom URL protocol in Mac OS X.

For example, something like this:

yippie://www.awesome.com/

I can get the custom URL protocol to launch
the standalone app, which is great (if you'd
like to know how this is done, see the P.S.).

However, within the app, I have no idea how
to find and extract the 'www.awesome.com'
portion of the URL that was used to launch it.

I've already tried checking $1, but it's empty.


Since you're on OS X, try an appleEvent handler. The dictionary has a 
pretty good example of one in the "appleEvent" listing.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.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


Handling custom URL protocols in Mac OS X?

2008-10-21 Thread Lyn Teyla
Hello,

I'm trying to get a standalone app to handle
a custom URL protocol in Mac OS X.

For example, something like this:

yippie://www.awesome.com/

I can get the custom URL protocol to launch
the standalone app, which is great (if you'd
like to know how this is done, see the P.S.).

However, within the app, I have no idea how
to find and extract the 'www.awesome.com'
portion of the URL that was used to launch it.

I've already tried checking $1, but it's empty.

Any ideas?

Thanks,
Lyn

P.S. To get a standalone to open a custom URL
protocol in Mac OS X, open the app package and
place the following in Info.plist (right after
the CFBundleSignature key):

  CFBundleURLTypes
  

  CFBundleURLName
  Yippie URL
  CFBundleURLSchemes
  
yippie
  
  LSIsAppleDefaultForScheme
  

  

Then drag the standalone out of the Applications
folder (if it's already in there), and then (back)
into the Applications folder.

The custom URL yippie://www.awesome.com/ should
now launch the standalone.

Now, we just need to figure out how to grab the
URL from within 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