Resolved Applescript very basic/simple question

Discussion in 'Mac Programming' started by Just-me, Apr 28, 2015.

  1. Just-me, Apr 28, 2015
    Last edited by a moderator: Apr 29, 2015

    Just-me macrumors newbie

    Joined:
    Jun 6, 2008
    Location:
    MD
    #1
    Hello and thanks in advance for any help.
    I'm just starting trying to learn Applescript.

    After I run the following script:

    Code:
    tell application "iTunes"
    	name of track 2 of playlist "2010"
    end tell
    How do I copy the result (name of the track) to the clipboard?
    Thanks.
    JM
     
  2. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #2
    Do this:
    Code:
    tell application "iTunes"
    	set the clipboard to name of track 2 of playlist "2010" as string
    end tell
     
  3. Just-me, Apr 28, 2015
    Last edited: Apr 28, 2015

    Just-me thread starter macrumors newbie

    Joined:
    Jun 6, 2008
    Location:
    MD
    #3
    Thanks Intell, appreciate your help. (Wish life was that easy and simple)... :)
     

Share This Page