FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Simple Audion Remote 2.0

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
Ronnieronson
Junior Member


Joined: 12 Apr 2005
Posts: 37

PostPosted: Sun May 01, 2005 1:00 pm    Post subject: Simple Audion Remote 2.0 Reply with quote

All the same simple features as before but now with application volume control!

Please view the read me file after installation / before use.

Enjoy!

[b]Edit: Attachment deleted, see below post.[/b]


Last edited by Ronnieronson on Sun May 01, 2005 2:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ronnieronson
Junior Member


Joined: 12 Apr 2005
Posts: 37

PostPosted: Sun May 01, 2005 2:42 pm    Post subject: Changes..... Reply with quote

Well Ive changed a few things for version 3.0.
The volume control was a little iffy, beacause it incremented the sound levels within Audion itself.
For some bizarre reason, Audion has a max volume of 255 when operating the controls from your mac - however when you use the increment steps within an applescript, you can take the volume as high as you want. I only had it up as far as 460 - didnt dare risk ruining my speakers or blowing my mac's internal pre-amp!

So anyway, Ive used the system volume slider in its place for version 3.0.

This should prevent any speaker distortion / exploding sub cones :p

I have taken version 2.0 offline, because I dont really want anyone damaging their speakers - but if you want the source code to see how the audion internal volume system works then just Pm me.

Enjoy v 3.0! :D


[b]Edit: added quit function when the clear/cancel key is pressed[/b]
Back to top
View user's profile Send private message
Ronnieronson
Junior Member


Joined: 12 Apr 2005
Posts: 37

PostPosted: Sun May 22, 2005 1:22 pm    Post subject: Audion Remote 4.0 Reply with quote

This new version of audion remote requires some configuration on your part.
It's set up with a playlist browser, but you have to define the paths to your own playlists in the script.
To define the paths; install audion remote, open it from clicker preferances into a script editor, and change the following lines:

[code:1]property my_list : {"Rock", "HipHop", "Dance", "Misc", "Comedy", "Classical"}[/code:1]

This alters the names of your playlist menu - you can have up to 12.
You can call them whatever you like - but its best to keep the names relevant.

then you need to alter the paths and names in this section:
[code:1]
on item_was_selected(itemIndex)
if item itemIndex of my_list = "Rock" then
tell application "Audion 3"
close playlist 1 saving no
end tell

tell application "Finder"
activate
open file "Rock" of folder "Playlists" of folder "Music" of folder "Matt" of folder "Users" of startup disk
end tell
end if

if item itemIndex of my_list = "HipHop" then
tell application "Audion 3"
close playlist 1 saving no
end tell
tell application "Finder"
activate
open file "Hip Hop - Rap" of folder "Playlists" of folder "Music" of folder "Matt" of folder "Users" of startup disk
end tell
end if

if item itemIndex of my_list = "Dance" then
tell application "Audion 3"
close playlist 1 saving no
end tell
tell application "Finder"
activate
open file "Dance" of folder "Playlists" of folder "Music" of folder "Matt" of folder "Users" of startup disk
end tell
end if

if item itemIndex of my_list = "Misc" then
tell application "Audion 3"
close playlist 1 saving no
end tell
tell application "Finder"
activate
open file "Miscellanious" of folder "Playlists" of folder "Music" of folder "Matt" of folder "Users" of startup disk
end tell
end if

if item itemIndex of my_list = "Comedy" then
tell application "Audion 3"
close playlist 1 saving no
end tell
tell application "Finder"
activate
open file "Comedy" of folder "Playlists" of folder "Music" of folder "Matt" of folder "Users" of startup disk
end tell
end if

if item itemIndex of my_list = "Classical" then
tell application "Audion 3"
close playlist 1 saving no
end tell
tell application "Finder"
activate
open file "Classical" of folder "Playlists" of folder "Music" of folder "Matt" of folder "Users" of startup disk
end tell
end if

end item_was_selected
[/code:1]
....in order for clicker to be able to find your playlists.
so for example;
We would change:
if item itemIndex of my_list = "[b]Rock[/b]" then
tell application "Audion 3"
close playlist 1 saving no
end tell

tell application "Finder"
activate
open file "[b]Rock[/b]" of folder "[b]Playlists[/b]" of folder "[b]Music[/b]" of folder "[b]Matt[/b]" of folder "[b]Users[/b]" of startup disk
end tell
end if

...to...

if item itemIndex of my_list = "[b]MyPlaylist[/b]" then
tell application "Audion 3"
close playlist 1 saving no
end tell

tell application "Finder"
activate
open file "[b]MyPlaylist[/b]" of folder "Playlists" of folder "Music" of folder "[b]MyUserName[/b]" of folder "Users" of startup disk
end tell
end if

..or to whatever you have called your playlist, and wherever it's been stored.


I don't know if this update will be useful to anyone, but it serves a purpose for me, so there you go - feel free to play around with the script :D
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group