An AppleScript question
Hi Everyone, I have an iMac with 2.93 GHz Intel Core 2 Duo, 4 GB RAM, 650 GB Hard drive, running OS X 10.5.7. I'm new to AppleScript and have a couple of simple scripts attached to iCal events. The scripts activate uTorrent and iTunes at 2am (which works fine) and then should quit both applications at 12noon. When the quit application scripts are run, I get a dialog from OS X saying that a script did not end properly. The scripts are: 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. Kevin -- 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
Re: An AppleScript question
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
Re: An AppleScript question
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
Re: Applescript question.
Hi Mac. Try this: tell application Firefox Get URL http://your.url.here; end tell For extra points: http://en.wikipedia.org/wiki/Spyglass http://en.wikipedia.org/wiki/SeaMonkey :) Steve On 14/11/2006, at 3:45 PM, Malcolm McCallum wrote: Hi Wamuggers, can someone tell me how to input a URL into Firefox opened with applescript plesae. tell application Finder activate open application file Firefox.app of folder Applications of startup disk or explain what spyglass or seamonkey is :-% Mac Malcolm McCallum [EMAIL PROTECTED] Skype docmactor