nfs mount masking firewire drive
Dan Shoop
shoop at iwiring.net
Thu Jun 7 08:06:11 PDT 2007
At 8:00 PM -0400 6/6/07, tom wible wrote:
>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:-(
Was there a question here somewhere?
As for Classical style file paths it's always been Volume:folder:folder:file.
Sure you don't have a "DVR 1" somewhere?
--
-dhan
------------------------------------------------------------------------
Dan Shoop AIM: iWiring
Systems & Networks Architect http://www.ustsvs.com/
shoop at iwiring.net http://www.iwiring.net/
1-714-363-1174
More information about the MacOSX-admin
mailing list