image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old December 8th, 2004, 03:49 PM
Orbit's Avatar
MacMan
 
Join Date: Jan 2003
Location: NewZealand
Posts: 421
Thanks: 0
Thanked 0 Times in 0 Posts
Orbit is on a distinguished road
Applescript studio and itunes

Im just learning how to make programes in xcode using applescript studio.
For my first project I'm trying to make a small simple itunes remote. It works all good so far teh play/pause, back and foward buttons all work but im having a little trouble getting the slider to work to controll the itunes volume.
I tryed this script i created:

on action theObject
tell application "iTunes"

--set snd to current itunes volume
set snd to sound volume as integer

--set the slider to the current itunes volume: snd
set "volumeslider" to snd

--set volumevalue to whatever the user sets the slider to
set volumevalue to contents of slider "volumeslider" as integer

-- set itunes volume to what the user sets it to
set sound volume to volumevalue
end tell
end action


but it dosent work
Can someone please help me out
__________________
-An apple a day keeps Bill Gates at bay.

AIM: 0r8it
MSN: angrylittlemonkey@hotmail.com
Reply With Quote
Reply

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 04:57 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.