Hi,
I recently restored my MacMini from a super duper backup and it copied the name for the HD from the backup, so called it “macHTbackup”
I didnt like the name so I changed it to “Macintosh HD”
Then when I copied my script over for saving iTune library to the NAS it wouldn’t work and I got an error about aliases.
After a bit of fiddling I tried changing the name back to "macHTbackup and hey presto, the script worked perfectly again!
Can I change the name without this happening by editing my script?
tell application "Finder"
set shome to path to home folder
set slib to file "iTunes Library" of folder "Music" of shome
set sxml to file "iTunes Library.xml" of folder "Music" of shome
set dest to folder "iTunes" of disk "Music"
if exists file "iTunes Library" of folder "iTunes" of disk "Music" then
delete file "iTunes Library" of folder "iTunes" of disk "Music"
end if
if exists file "iTunes Library.xml" of folder "iTunes" of disk "Music" then
delete file "iTunes Library.xml" of folder "iTunes" of disk "Music"
end if
duplicate slib to dest
duplicate sxml to dest
end tell
tell application "iTunes"
display dialog "Library copied" buttons {"Close"} default button 1 with title "Finished" with icon 1
end tell