In article ,
news.TakeThisOut@tcpip.fsnet.co.uk (Rik) wrote:
> > To actually get to the URL, you're going to need some way to read the
> > resources, as the URL is stored in a 'url ' resource. The page title
> > is stored in a 'urln' resource. (The URL also appears in the 'TEXT'
> > resource.)
> > It looks like what you need is the SatImage scripting addition here:
<font color=green> > > <a rel="nofollow" style='text-decoration: none;' href="http://www.satimage.fr/software/en/downloads_osaxen.html</font" target="_blank">http://www.satimage.fr/software/en/downloads_osaxen.html</font</a>>
> Thanks. I willl take a look at these examples.
> What I am trying to do is create a droplet that will accept URLs that
> are dragged and dropped from either a web browser or from a .webloc file
> from Finder.
For webloc files, the Finder (10.3.4 works, older versions may be broken
though) should do just fine.
-- quick example. Drop ONE webloc on the droplet for results.
on open x
tell application "Finder"
set y to location of internet location file (x as text)
display dialog y
If you want to do url's straight from the browser, I think you are going
to have to learn a little Cocoa. At the very least, it will require
something besides a standard script droplet (Applescript Studio App)
since droplets won't accept URL drops. You might find this interesting.
<a rel="nofollow" style='text-decoration: none;' href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/O" target="_blank">http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/O</a>
I've got cocoa code lying around for NSTableViews and such, but not for
drops directly on an app's icon. It probably only requires you to
declare the URI handlers in the info.plist and catch it in the right
<a rel="nofollow" style='text-decoration: none;' href="http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServices" target="_blank">http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServices</a>
Concepts/LSCConcepts/chapter_2_section_4.html >> Stay informed about: URL / Webloc drop