nfs mount masking firewire drive

tom wible airdrummer at wheel.org
Wed Jun 6 17:00:22 PDT 2007


i had been running into problems using my linux nfs mount for my elgato eyetv 
archive (i also run a webserver on the linux box, & i suspected ethernet issues) 
  so i got a firewire hdd to plug into my minimacduo.

i copied the archive from the nfs mount to the f/w drive, and eyetv was happy. 
unfortunately, the applescript i wrote to parse the xml info files to display on 
a webpage broke:-(

my nfs mount nfs://linuxbox/DVR has the same name as the hfs mount, but that's 
not a problem to darwin:

/Volumes/DVR		# the hfs firewire hdd
/Volumes/linuxbox/DVR	# obviously

but my applescript goes from posix path to hfs:

set recDir to "/Volumes/DVR/recordings/" -- my firewire drive, stored as 
posixpath in VirtualDVHS.app's plist
set tvpiFile to "China From the Inside_Jan_17_2007__11_59_26-1_PM.m2t.tvpi" --
do shell script "ls " & quoted form of (recDir & tvpiFile)
set tvpiFile to (POSIX file recDir & tvpiFile)
set xmlFile to tvpiFile as Unicode text
log xmlFile

 >>applescript eventlog:
 >>	(*DVR:recordings:China From the
Inside_Jan_17_2007__11_59_26-1_PM.m2t.tvpi*)

tell application "System Events"
	set theXML to contents of XML file xmlFile

 >>asel:
 >>	get contents of XML file "DVR:recordings:China From the 
Inside_Jan_17_2007__11_59_26-1_PM.m2t.tvpi"
 >>		"System Events got an error: NSReceiverEvaluationScriptError: 4"

changing recDir to
	"/Volumes/linuxbox/DVR/recordings/"
results in and hfs path of
	DVR:recordings:China From the...

oops! when i eject the nfs mount, my applescript is happy, so obviously the 
finder's hiding of the posix path can't cope with the ambiguity:-(





More information about the MacOSX-admin mailing list