An AppleScript I wrote

Doesn’t do a lot, really, but I wanted to test how scripts show up here.

ViolĂ :

tell application "Safari"
      set theCount to the count of its windows
       repeat with x from 1 to theCount
              set theText to the text of document 1 as string
              log theText
              tell application "Finder"
                      set the clipboard to theText
              end tell
               tell application "BBEdit"
                      paste
              end tell
              close window 1
      end repeat
end tell

Looks pretty good in Safari, anyway. Oh well. Using the “pre” tags might cause some wrapping (read: not wrapping) problems, but I’ll manage.

Leave a Reply