I have been experimenting with this script ...
property aliasAlias : alias "path:to:an:alias file"
tell application "Finder" try set targetFolder to (original item of aliasAlias) as alias -- errors because original item is on an unmounted image disk on error try open aliasAlias -- mounts the image disk and opens window of target folder <<<<< delay 1 -- wait for disk to mount set targetFolder to (original item of aliasAlias) as alias -- no error close window of targetFolder -- closes the unwanted window on error set targetFolder to "error" end try end try display dialog targetFolder as text end tell
The problem is with the line marked <<<<
I would like to mount the image disk, but I can't find any Finder command other than open which will do this. I need a Finder command which will cause the image disk to mount, but without opening the target folder.
Did I miss something? Or am I stuck with flashing a folder window at the user?
|