LoginSignup
0
0

More than 5 years have passed since last update.

AppleScriptでiTunesの曲名とアーティスト名を取得する(テスト投稿)

Posted at

目的

  1. test
  2. test
  3. test
  4. test
  5. test

CODE

repeat
    display dialog "Search" buttons {"Cancel", "Search"}

    copy the result as list to {button_pressed}

    if the button_pressed is "Cancel" then exit repeat

    repeat
        if the button_pressed is "Search" then

            tell application "iTunes"
                set trackName to name of current track
                set trackArtist to artist of current track
                display dialog trackName & " - " & trackArtist buttons {"Cancel", "Search"}
                copy the result as list to {button_pressed}
                if the button_pressed is "Cancel" then return
            end tell
        end if
    end repeat
end repeat

解説

  1. test
  2. test
  3. test
  4. test
  5. test
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0