On 15/05/2009 6:35 PM, Kevin Warner wrote:
 tell application "uTorrent"
 activate
 end tell

 tell application "iTunes"
 activate
 end tell

 and

 tell application "uTorrent"
 quit
 end tell

 tell application "iTunes"
 quit
 end tell

 What am I doing wrong?

 Any help will be gratefully received.

At a guess, the computer's busy doing stuff (torrenting and iTuning), and the Apple Events are timing out so that Applescript isn't getting a response in its require time period.

Perhaps

with timeout of 600 seconds
tell application "uTorrent" to quit
end timeout

or alternatively

ignoring application responses
tell application "uTorrent" to quit
end ignoring

We have a couple of scripts triggered by iCal to start iTunes that seem to fail regularly too... Sigh. Will have to try this with them.

Have fun,
Shay

--
=========================== Shay  Telfer ================================
 Perth, Western Australia   Technomancer  The love of liberty is the love
 Opinions for hire              [POQ]     of others; the love of power is
 http://newtonslore.com/        fnord     the love of ourselves - Hazlitt

-- The WA Macintosh User Group Mailing List --
Archives - <http://www.wamug.org.au/mailinglist/archives.shtml>
Guidelines - <http://www.wamug.org.au/mailinglist/guidelines.shtml>
Unsubscribe - <mailto:wamug-unsubscr...@wamug.org.au>