New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Applescript for stopping music when key is pressed (not the pause button)


Post Reply New Thread Subscribe

 
Thread Tools
jakenoble

 
Member Since: Aug 11, 2007
Posts: 82
jakenoble is on a distinguished road

jakenoble is offline
Hi

I have been messing with the Speech recognition in OS X and think it would be useful, but there is one problem, Music.

I have a key set so that when I click it, it captures a voice command, I want to write a script that will mute, or pause music when this button is clicked. Then when the button is released the music comes back on again.

Can this be done with Applescritpt? If so is there somewhere I can get such a script? Or how would I start to write it myself, I can program in Java and PHP so I have some programming experience to help me a bit

Thanks

Jake
QUOTE Thanks
D3v1L80Y

 
D3v1L80Y's Avatar
 
Member Since: Feb 02, 2004
Location: PA
Posts: 12,459
D3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond repute
Mac Specs: MacBook

D3v1L80Y is offline
Quote:
Originally Posted by jakenoble View Post
I want to write a script that will mute, or pause music when this button is clicked. Then when the button is released the music comes back on again.
Just out of curiosity, why not just use the "Mute" button that already exists on the keyboard?

__________________________________________________
Posting and YOU|Forum Community Guidelines|The Apple Product Cycle|Forum Courtesy

mac: a waterproof raincoat made of rubberized fabric
MAC: a data communication protocol sub-layer, also known as the Media Access Control
Mac: a brand name which covers several lines of personal computers designed, developed, and marketed by Apple Inc.

QUOTE Thanks
jakenoble

 
Member Since: Aug 11, 2007
Posts: 82
jakenoble is on a distinguished road

jakenoble is offline
It will not let you set the mute key as the key to be pressed to capture the voice command.
QUOTE Thanks

Post Reply New Thread Subscribe


« Dynamic Unpartition - Terminal? | Compile source code GCC ANSI C »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Apple's iTunes Now Third-Largest Music Retailer in U.S. baggss Apple Rumors and Reports 0 06-22-2007 04:50 PM
His Steveness talks about music MacHeadCase Apple Rumors and Reports 46 02-19-2007 09:13 AM
the delete key button chouk Apple Notebooks 2 02-19-2005 11:16 AM
Week in Review - 10/13/03-10/17/03 Murlyn Apple Rumors and Reports 0 10-20-2003 12:51 AM
Apple, Analysts on new music service schweb Apple Rumors and Reports 9 04-30-2003 02:14 PM

All times are GMT -4. The time now is 02:53 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?