New item in the volume list

I am making a script that mounts windows DFS volumes. We using ADMitMac for mounting
the server.
we have about 25 different DFS mount points. The name of the mount points are changing al lot. So I don’t know what the name is off the mount point.
What a need is a script step that looks what is new in the volume list. Do a check an compares the volume list

Script steps:
Step 1
What is now in the volume list
tell application “System Events” to set VolumeList to the name of every item in folder “/Volumes”

Step2
Mounten of the server:
mount volume smb://servername/dfs/users/sharename

Step3
Script step that checks what is new in the volume list. How can help me with this?

Thanks for the help

Ambra

Hi,

set Vcount to count paragraphs of (do shell script "ls -t1 /volumes/")


or

set Vcount to paragraphs of (do shell script "ls -t1 /volumes/")

Then store the Vcount in a second variable

set oldCount to Vcount 

and then compare the oldCount to the new Vcount after each mount attempt.

set Vcount to count paragraphs of (do shell script “ls -t1 /volumes/”)
set oldCount to Vcount
mount…
set Vcount to count paragraphs of (do shell script “ls -t1 /volumes/”)
compare oldCount to Vcount, and so on…