• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Safari, or, really Navigator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari, or, really Navigator


  • Subject: Re: Safari, or, really Navigator
  • From: Gary Lists <email@hidden>
  • Date: Fri, 10 Jan 2003 19:22:40 -0500

On or about 1/10/03 5:49 PM, Thomas England wrote:

> Came across this handy script which grabs the name/URL of the site you are
> looking at in Safari and then pastes that info into an email.
> Very handy, except I still prefer Navigator/Chimera. But, alas, this script
> won't do its magic there. And I can't even get Navigator to show me a
> dictionary.
> So, anybody know how to tell Navigator to gather the URL info so I can do
> something with it?
>
>
> --begin script--
> tell application "Safari" to set {pageName, pageURL} to {name of window 1,
> URL of document 1}
>
> open location "mailto:"; & "?body= " & pageName & return & return & pageURL &
> return & "?subject=Today's Tip From Tom"
> --end script


-- TESTED with...
-- Mozilla 1.2
-- Mozilla 1.1
-- NS 6.1
-- NS 6.2
-- NS 4.7

set theURL to (URL of window 1)
set theTitle to (name of window 1)

display dialog theURL & " " & theTitle


What is really annoying is that I can not get the 'do JavaScript' feature to
work in any of those tested browsers, as the dictionary indicates.

I can do the javascript method with IE without problem (using do script).



From Navigator 6.1/6.2 and Mozilla 1.1/1.2 dictionaries (they are basically
the same)...


Mozilla Suite :

Do JavaScript : Execute some javascript text
Do JavaScript string -- The javascript string to be executed


Class application : An application program
Properties:
alert application type class -- Most of the alerts will be sent to this
application using yet unspecified AE interface. We need a few alert boxes:
alert, confirm and notify. Any ideas on how to design this event?
mailto:email@hidden. I9d like to conform to the standard.
kiosk mode integer -- Kiosk mode leaves very few menus enabled
Elements:
window by numeric index, name, id

Class window : A Window
Properties:
<clipped>
index integer -- the number of the window
<clipped>
name international text -- the title of the window
<clipped>
URL string [r/o] -- Current URL
unique ID integer [r/o] -- Window9s unique ID (a bridge between WWW!
suite window id9s and standard AE windows)
<clipped>


--
Gary

Incoming replies are auto-deleted.
Please post directly to the list or newsgroup.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Safari, or, really Navigator (From: Thomas England <email@hidden>)

  • Prev by Date: Re: Re; Keynote, is it scriptable (XML?) -addendum
  • Next by Date: RE: OSX script to change/copy file icon ?
  • Previous by thread: Safari, or, really Navigator
  • Next by thread: Re: Saving handler-defined scripts without source code
  • Index(es):
    • Date
    • Thread