Good morning,

On 14/03/10 at 5:00 PM -0700, Steve Piercy <[email protected]> wrote:

Is it possible to do this in Safari?

It may be possible using AppleScript. Here is the script I use with OmniWeb, something similar should work with Safari.

(* View Source from OmniWeb in BBEdit - add to system script menu or assign key shortcut
    Charlie Garrison <[email protected]>
*)
tell application "OmniWeb"
    set mySource to source of active tab of front browser as string
    set myName to name of front browser as string
end tell
tell application "BBEdit"
    set newDoc to make new text document with properties ¬
{source language:"HTML", text:mySource, name:"Source of: " & myName}
    select insertion point before character 1 of newDoc
    activate
end tell



Charlie

--
   Ꮚ Charlie Garrison ♊ <[email protected]>
   〠 PO Box 141, Windsor, NSW 2756, Australia

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.

Reply via email to