AppleScript documentation

Just talk about kJams stuff with each other, describe things you did that worked, talk about your setup, anything that doesn't fit into the other forums!
aantix
Posts: 41
Joined: Sat Jun 14, 2008 7:49 pm

AppleScript documentation

Post by aantix »

Is there any documentation regarding what kJams functionality is exposed through AppleScript?

The crossfading example is helpful ( http://www.kjams.com/forum/viewtopic.php?t=265 ) but I'd like to see more if possible.

dave
Site Admin
Posts: 6712
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

:)

Post by dave »


lenskaraoke
Posts: 252
Joined: Thu Aug 16, 2007 5:02 am
Location: Turkey/Stockport

Post by lenskaraoke »

I use simple Automator workflows to do what I want to operate the different programs that I use when I am at a gig. For example I use the preset actions to turn the volume down on itunes and then I use the "watch me do" command to start kJams. I then use another workflow to turn iTunes up and stop kJams.
I have it so iTunes volume is turned down and is still running whilst kJams is playing which means when I restart iTunes I don't have the same track playing, of course iTunes could be stopped and restarted instead of changing the volume, which is the way I used to do it, but doing that means that the same iTunes track can be playing on and of for a very long time
Also when I run it I've increased the speed of the "watch me do" bits by 10 so there's very little silence between tracks.
Automator can be used to create workflow's that do just what an individual wants and then it can be very easily tweaked to make adjustments that you feel are needed as time goes by.
All this can be done by a complete novice, with absolutely no programing experience.
I also use automator to edit my tracks. For example, if I have a space before the track name or song name, as long as I've got several to go at I will run a workflow to delete the space (or dash or whatever is there). To get all the tracks together that have the spaces I click the top of the list that I want to edit and I then click control I, highlight the song or track box and then run my workflow that I've created.
I even use automator to update my website
I tried to work with scripting and failed, but one day when I'm fed up with life, I will have another go.
Tell the truth or lose the horse

Paul
Posts: 71
Joined: Sat May 03, 2008 6:52 am
Location: London, UK

Post by Paul »

Thanks for that info, you have just inspired me to see if I can achieve something similar, I've never tried before

Paul

lenskaraoke
Posts: 252
Joined: Thu Aug 16, 2007 5:02 am
Location: Turkey/Stockport

Post by lenskaraoke »

It couldn't be easier. If you need any help Ask and if I can I'll help
Tell the truth or lose the horse

jfbiii
Posts: 179
Joined: Tue Jan 15, 2008 3:22 pm

Post by jfbiii »

Ooooo...that's intriguing.

I've been trying to start my shows the same way for awhile because I've been doing them live on the internet and wanted a set starting place. I might try seeing if I can start a particular song in iTunes that I use as the intro and then just go straight into kJams instead of having to do it manually. Thanks for the great ideas!

aantix
Posts: 41
Joined: Sat Jun 14, 2008 7:49 pm

Re: :)

Post by aantix »

Is there a way to tell if kJams is currently playing a song and if so, what song is playing?

dave
Site Admin
Posts: 6712
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

:)

Post by dave »

no but that's a good idea.

Brendan
Posts: 424
Joined: Sun Dec 30, 2007 1:05 pm
Location: Vacaville, CA.

Post by Brendan »

Sounds great. What is an automator workflow and where can i find it? Will it work for Kjams Lite?

lenskaraoke
Posts: 252
Joined: Thu Aug 16, 2007 5:02 am
Location: Turkey/Stockport

Post by lenskaraoke »

See the two links below to learn what Automator is and what it is available on
Type Automator into spotlight to see if you have it on your computer, and yes automater will work with any program or application.

Just remember there's more than one way to skin a church cat with a computer, so, if at first you don't succeed try another method to do the same task

http://docs.info.apple.com/article.html?artnum=304759

http://developer.apple.com/macosx/automator.html
Tell the truth or lose the horse

jfbiii
Posts: 179
Joined: Tue Jan 15, 2008 3:22 pm

Post by jfbiii »

Took me a good bit of playing to figure out how to do what I wanted. "Watch me do stuff" turns out to be a bit more limited than my optimism. And I'm a pessimist! But I was able to do what I wanted, ultimately. I had to make sure that kJams was open and that the Rotation playlist was selected before running the script.

lenskaraoke
Posts: 252
Joined: Thu Aug 16, 2007 5:02 am
Location: Turkey/Stockport

Post by lenskaraoke »

Try using a mix of "watch me" and "Actions" and doing things another way round
Tell the truth or lose the horse

dave
Site Admin
Posts: 6712
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

:)

Post by dave »

8)

aantix
Posts: 41
Joined: Sat Jun 14, 2008 7:49 pm

Re: :)

Post by aantix »

aantix wrote:
Is there a way to tell if kJams is currently playing a song and if so, what song is playing?
Any chance that this made it in a prev release and I missed it?

dave
Site Admin
Posts: 6712
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

:)

Post by dave »

nope. convince me that this will help a large number of people?

Post Reply