Remove parts from AppleScript result I want to remove a part of an AppleScript result. The part of my whole code is following

list disks


I get the result: {"Macintosh HD", "MobileBackups", "home", "net", "USB-Stick"}
How can I remove the part "Macintosh HD", "MobileBackups", "home", "net", so that only volumes that are not the whole time available are shown.
Try something like this:

set mydisks to list disks
set newdisks to {} as list
repeat with currentdisk in mydisks
    if ((currentdisk as string) is not equal to "net") and ((currentdisk as string) is not equal to "home") and ((currentdisk as string) is not equal to "Macintosh HD") and ((currentdisk as string) is not equal to "MobileBackups") then
        set newdisks to newdisks &amp; currentdisk
    end if
end repeat


You will have your desired list on newdisks.