Calling applescript variables from a different script?

Discussion in 'Mac Programming' started by Littleodie914, Jul 11, 2005.

  1. Littleodie914 macrumors 68000

    Littleodie914

    Joined:
    Jun 9, 2004
    Location:
    Rochester, NY
    #1
    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! ;)
     
  2. Littleodie914 thread starter macrumors 68000

    Littleodie914

    Joined:
    Jun 9, 2004
    Location:
    Rochester, NY

Share This Page