How can I use this AppleScript?

Discussion in 'macOS' started by Isamtron, Nov 6, 2010.

  1. Isamtron macrumors newbie

    Joined:
    Jul 24, 2010
    #1
  2. Caleb531 macrumors 6502

    Caleb531

    Joined:
    Oct 17, 2009
    #2
    Steps
    1. Take the HTML source of the current Safari window.
    2. Write that source to a new TextMate text file.
    3. Open it with TextMate.

    If you want to open the document in Safari, you can add this line:
    Code:
    tell application "Safari" to open "Macintosh HD:tmp:TextMate temp file.txt"
    As for hooking it up to a hotkey, you can use the wonderful app Spark for that.
     

Share This Page