Ask a Question related to Mac Programming, Design and Development.
-
Julien Salort #1
Simple AppleScript question
I'm not sure whether this is the appropriate forum. If not, please
redirect me.
I'm using the Speakable Items feature in MacOS X. I want to add a simple
AppleScript that tell iTunes to play, wait 5 minutes and tell iTunes to
stop playing.
This works :
tell application "iTunes"
play
delay 300
stop playing
end tell
But the computer stops listening spoken commands until the timer has
shot. When the script terminates, the spoken commands queue gets
suddently flushed.
I don't know AppleScript very well. Would it be possible to work around
the problem ?
I thought it might be possible to install a crontab that would tell
iTunes to stop but I don't know how to do that.
-> tell application "iTunes" to play
-> Install a crontab to make it stop in 5 minutes
Any help ?
--
Julien Salort
[url]http://www.juliensalort.org[/url]
Julien Salort Guest
-
Need Simple Answer to Simple Contribute/Firefox question
Hello all; I've tried the Adobe help in CS3, tech support, phone support, this forum, other forums, Mozilla, and nowhere can I get a straight... -
Simple question ( Please help)
Hi, I currently working on a project to configure two ISA 2000 server in Windows 2003 w/ Load Balancing and Fault Tolerance. ISA1 = 10.100.1.1... -
Very simple question, but not for me!!!
Hi, very new to flash. 1, is there ang good site to get example sites/clips/buttont etc, i.e you get the FLA (or what ever the letter are, i said... -
Simple question...
I'm trying to set a dynamic textfield and give it a new value. I have a movie symbol (mov) in which there is a textfield (topic). In the main... -
Simple IF question
I want to create a calculation that essentially says: If CONDITION = A, "Say This", if CONDITION = B, "Say That", otherwise DO NOTHING. This... -
Patrick Stadelmann #2
Re: Simple AppleScript question
In article <1fzp06t.i4blormtfmg6N%mail@juliensalort.org>,
[email]mail@juliensalort.org[/email] (Julien Salort) wrote:
alt.comp.lang.applescript is probably the best newsgroup for questions> I'm not sure whether this is the appropriate forum. If not, please
> redirect me.
about AppleScript.
> I'm using the Speakable Items feature in MacOS X. I want to add a simple
> AppleScript that tell iTunes to play, wait 5 minutes and tell iTunes to
> stop playing.
>
> This works :
> tell application "iTunes"
> play
> delay 300
> stop playing
> end tell
>
> But the computer stops listening spoken commands until the timer has
> shot. When the script terminates, the spoken commands queue gets
> suddently flushed.It depends on how Speakable Items works. According to your description> I don't know AppleScript very well. Would it be possible to work around
> the problem ?
of the problem, it seems that as long as the script is not completed,
Speakable Items will wait doing nothing. If this is the case, a solution
would be to put your script in a separate applet. The Speakable Items
script would simply launch it and quit, allowing new commands to be
spoken and recognized.
Patrick
--
Patrick Stadelmann <Patrick.Stadelmann@unine.ch>
Patrick Stadelmann Guest
-
matt neuburg #3
Re: Simple AppleScript question
In <Patrick.Stadelmann-8A458F.18141614082003@news.fu-berlin.de> Patrick
Stadelmann wrote:I agree; this is what I was going to suggest. m.> a solution
> would be to put your script in a separate applet. The Speakable Items
> script would simply launch it and quit, allowing new commands to be
> spoken and recognized
--
matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
REALbasic: The Definitive Guide! 2nd edition!
[url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
Subscribe to TidBITS. It's free and smart.
matt neuburg Guest



Reply With Quote

