Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Littleodie914

macrumors 68000
Original poster
Jun 9, 2004
1,813
8
Rochester, NY
Hey guys, I'm writing an applescript/cocoa application that remotely controls my iTunes on my iMac from my iBook. When the app starts, there's an "on awake from nib" command that triggers a prompt asking for the ip address, user name, and user password. Once past this, the UI currently has three buttons, previous, play and next. Clicking each one of these runs a new script, but in order to send one of those commands, you have to use the whole "tell application 'iTunes' of machine musicMachine". musicMachine is the variable I used for the username:userpass@ipaddress from the first script, but I want to call that variable again in the other scripts instead of having to prompt for that data every time the button is pressed. This might be a bit confusing, it's kinda hard to explain, but I hope you guys can help me out a bit. Thanks! ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.