MACSCRPT Archives

August 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Simon Dorfman <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 3 Aug 2007 17:40:46 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
For posterity I'll answer my own question:

I basically found a workaround using UI scripting.  It's better because the
password can stay securely stored in Keychain:

tell application "QuickTime Player"
    getURL "mms://pubint-wwno.wm.llnwd.net/pubint_wwno"
end tell

tell application "Airfoil"
    activate
end tell

try
    tell application "System Events"
        if UI elements enabled then
            tell process "Airfoil"
                set frontmost to true
            end tell
            keystroke "0" using command down
        end if
    end tell
end try

ATOM RSS1 RSS2