On May 25, 2004, at 12:54 PM, ladh wrote:
Hello all,
I'm using MacPerl 5.2.0 on Mac OS 9.2, and I'm writing a script to compare files in 2 different folders. Some of these files are aliases (symlinks) to files located on a different volume that would need to be mounted to access the original files. The problematic aliases are those that have their path to Original fully defined, ie, the AppleTalk zone is specified as well. When such aliases are accessed with -d or -f test (to test if it is a directory or a file) and this volume is not mounted, a modal dialog comes up asking to mount the volume, ie, "Please insert the disk: HD". Is there a way to disable this modal dialog to come up (setting a global or calling a procedure), ie, quiet mode, or is there a different test to find out if such an alias is a directory or a file?
Off the top of my had, have you tried the -l test? It tests for links.
Josh
-- Joshua Juran Metamage Software Creations - Mac Software and Consulting http://www.metamage.com/
* Creation at the highest state of the art *