On Apr 2, 2011, at 4:05 AM, Axel Luttgens wrote:
Fortunately, in your case, you aren't interested in the weblocs.
So, you may just trap the case of a single webloc:
on open L
-- do something with the list of aliases
end open
on open location WL
-- do something with the webloc if needed, or just trap the event
end open location
I tried this. (Interrupted by a Sat afternoon power outage.)
As far as I can determine, it does not trap anything.
Here is what I tried, with comments ...on run
try
display dialog "I'm running."
on error errText number errNr
"Run Error = " & errNr & return & errText
display dialog the result
end try
end run
on open dropList
try
repeat with dropItem in dropList
display dialog (dropItem as text) -- this does not display for a .webloc
end repeat
on error errText number errNr
"Open Error = " & errNr & return & errText
display dialog the result
end try
end open
on open location WL
display dialog "open location" -- this displays correctly for a .webloc
display dialog WL -- this displays correctly for a .webloc
display dialog "finished" -- this displays correctly for a .webloc
error "open loc" -- but no error is returned. Should return -2700 error.
end open location