On 15/05/2009, at 11:40 PM, Shay Telfer wrote:
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>
Thanks Shay, I'll try that!
Kevin
Kevin Warner
______________________________
Press CTRL-ALT-DEL now for an IQ test.
Why do we want intelligent terminals when there are so many stupid
users ?
Life would be so much easier if we only had the source code.
There are 10 types of people in the world: those who understand
binary, and those who don't.
Microsoft: "You've got questions. We've got dancing paperclips."
The box said 'Required Windows XP or better'. So, I installed LINUX.
I had a fortune cookie the other day and it said: 'Outlook not so
good'. I said: 'Sure, but Microsoft ships it anyway'.
Mac users swear by their Mac... PC users swear at their PC.
-- 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>