alias broker
alias broker
- Subject: alias broker
- From: <email@hidden>
- Date: Tue, 27 Nov 2001 13:16:37 +1300
I find broken alias properties and their weird behavior trying so I enlisted
Tanaka's 'MT Resolve Alias' in search of reliable check...
------------------
property x : ""
if x = "" then getPath()
try
set x to (MT Resolve Alias file ("" & x))
on error m number n
if n = -2763 then --no result
display dialog "broke"
getPath()
else
error {n, m}
end if
return
end try
on getPath()
set x to choose file
return x
end getPath
-----------------------
This should be reliable yes?
no defaulting to root?
other ways of doing this reliably?
_________sorry about the doublish post and buttons:( Andy