0
我試圖找回從目前的iTunes文件位置跟蹤與此腳本當前曲目文件位置:獲取iTunes上
on open info
tell application "iTunes"
set songLocation to get location of current track
end tell
return songLocation
end open
,然後代碼:
desc = [_getFileLocScript runScript:someScript];
result = [desc stringValue];
NSLog (@"%@", result); //it shows null value.
NSLog (@"%@", desc); //it shows some numbers and key "alis".
輸出:
<NSAppleEventDescriptor: 'alis'($000000000232000200000A4C656F7......FFFF0000$)>
問題是,這個文件位置信息實際上是從iTunes的applescript返回的?