[Music]曲の評価
#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#
#
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
use AppleScript version "2.8"
use framework "Foundation"
use scripting additions
##############################
#####スクリプトメニューから実行させない
##############################
tell current application
set strName to name as text
end tell
####スクリプトメニューから実行したら
if strName is "osascript" then
tell application "Finder"
set aliasPathToMe to path to me as alias
tell application "Script Editor"
open aliasPathToMe
end tell
return "中止しました"
end tell
else
tell current application
activate
end tell
end if
tell application "Music"
set objNowTrack to current track
tell objNowTrack
# properties
set disliked to false as boolean
set rating to 100 as integer
set loved to true as boolean
end tell
## set loved of objNowTrack to true as boolean
## set disliked of objNowTrack to false as boolean
## set rating of objNowTrack to 100 as integer
tell objNowTrack
# properties
end tell
end tell
| 固定リンク
「Media Music」カテゴリの記事
- [Music]メタデータの文字化け置換(EU系の文字化けの置換) 少し増えた(2024.03.18)
- [shortcut]再生中の音楽をShazamでしらべてタイトルアーティストを設定する(2023.12.11)
- [Music]メタデータの文字化け置換(1つ毎処理)(2023.12.09)
- [afinfo]ミュージックファイルの詳細メタ情報の取得(2023.11.01)
- [com.apple.metadata]オーディオファイルのコメントにビットレートを入れる(2023.11.01)