sorry, my fault.
Typing it directly in Terminal the path is correct.
In a shell script the backslash must also be escaped
do shell script "diskutil unmount /Volumes/Macintosh\\ HD-1"
sorry, my fault.
Typing it directly in Terminal the path is correct.
In a shell script the backslash must also be escaped
do shell script "diskutil unmount /Volumes/Macintosh\\ HD-1"
that returns the same error, but i found this and it works:
tell application "Finder"
eject (disks whose local volume is false and name is "Macintosh HD")
end tell
ok the script works fine on my computer, but on another computer this part fails:
on get_Location(Tr)
tell application "iTunes" to set {album:Al, artist:Ar, date added:Da, name:Na} to Tr
tell application "iTunes" of machine RemoteMachine
using terms from application "iTunes"
return (location of 1st track of playlist "Library" whose album is Al and artist is Ar and date added is Da and name is Na) as Unicode text
end using terms from
end tell
end get_Location
more specifically its this part
return (location of 1st track of playlist "Library" whose album is Al and artist is Ar and date added is Da and name is Na) as Unicode text
the error that is returned is
iTunes got an error: Could not establish connection to host
On my machine the script works only, if the remote user has admin status
well the machine i tried it on has admin status and it still didnt work.
bump
bump