これはAppleScriptです。あなたがそれを使用していないことは知っていますが、ScriptingBridgeでこれを行う方法がわかりません。私の知る限り、このメソッドは似ていますが、objective-c構文に近いはずです。
tell application "iTunes"
set this_time to time of current track as string
set elapsed_seconds to player position
set this_elapsed_minutes to round elapsed_seconds / 60 rounding down
set this_elapsed_seconds to elapsed_seconds mod 60
if {1, 2, 3, 4, 5, 6, 7, 8, 9, 0} contains this_elapsed_seconds then
set this_elapsed_seconds to "0" & (this_elapsed_seconds as string)
end if
end tell
return (this_elapsed_minutes & ":" & this_elapsed_seconds & " of " & this_time) as text --