. , . , ( AppleScript, Script Editor/& # xfeff; AppleScript Editor).
file track , location alias. , , , , , .
, choose file ( alias):
set m to path to music folder
tell application "iTunes"
set trk to first item of selection
set l to location of trk
if class of l is alias then
set m to l
end if
set {d, a, n} to {database ID, artist, name} of trk
choose file with prompt "Choose the file to use for " & d & ": " & a & "β" & n default location m
set location of trk to result
end tell
choose file - , , - .
AppleScript , : POSIX HFS. POSIX ( ). HFS ( ), .
POSIX, str, AppleScript alias, :
POSIX file str as alias
HFS, str, AppleScript alias, :
alias str
:
tell application "iTunes"
set trk to first item of selection
set l to location of trk
set newPath to my computeNewPath(POSIX path of l)
set location of trk to POSIX file newPath as alias
end tell
to computeNewPath(pp)
return pp
end computeNewPath