Re: POSIX paths query explained better
Re: POSIX paths query explained better
- Subject: Re: POSIX paths query explained better
- From: Steve Thompson <email@hidden>
- Date: Wed, 8 Oct 2003 22:19:51 +0100
On Wednesday, October 8, 2003, at 05:46 pm, Doug McNutt wrote:
Volumes are mounted or not by the system. "Mounted in the finder" is
not properly descriptive.
A volume can be mounted by the system without appearing in the Finder.
Therefore the system mounted the volume, not the Finder. Therefore "not
mounted in the Finder" is perfectly OK. Semantics and not really
relevant to AppleScript (not that it's any good with semantics).
The shell scripting tools and commands like "test" or
"[,space,stuff,space,]" are not going to work on an unmounted volume.
I didn't say the volume wasn't mounted. With 15 years Mac experience
I've got the hang of connecting to a disk to use it. It's not really
beyond the scope of my ability to grasp that one. It's an NFS volume
mounted by mount_nfs not the Finder. It won't appear in the Finder
because the Finder didn't mount it. It will appear at the share point
/private/mnt or any sharepoint I chose.
How about ftp
Not practical. I need to create the folder path as well as the file if
it's not on the NFS share. Extremely convoluted scripting is involved -
where you can 'ditto folder 1/folder 2/folder 3/ folder 4/file.eps' and
have the folders created if they don't exist, you can't mkdir folder
1/folder 2/folder 3/folder 4/' or 'put folder 1/folder 2/folder 3/
folder 4/file.eps' therefore you have to change directory each step and
trap errors to create the path. That's why I chose mounting the server
as an NFS volume because then I can see if folder 1/folder 2/folder 3/
folder 4/file.eps exits (using test as CN has explained) and if not I
can Ditto it.
or http?
See above
FTP has commands for checking readability and existence.
But is extremely inflexible when it comes to bringing things into
existence (see above)
HTTP has a HEAD request. Trying such and looking at the failure or
success codes can get data from an unmounted server if it has standard
open ports. If the server operates something like Apache you could
even write a simple CGI script which would run there and check for a
named file passed as a parameter.
I don't really want to run a web server on a file server just to see if
it there. It's UNIX - one of the best file management systems there is.
AppleScript sent for execution on an unmounted server.
It's not unmounted. It's just not mounted as an AFP volume. NFS volumes
don't appear in the Finder unless you mount them in the Finder. If you
execute mount_nfs from a command line, they only appear in the named
mount point.
Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.