Move out of subfolder and…

Hi
I've been reading threads where applescript is used to go up to the parent folder, but somehow it doesn't work. I've tried all sorts of this, but I'm kinda in the dark now.
I'll try to illustrate what I have working now and what I really need to get working to make it perfect:
This all works fine, but now the problem is that some of the unzipped folders that went into folder INCOMING have a name that contains '_notification_'. Something like 'D12345_AAA_Notification' (that folder holds the XML).
What I REALLY need to have done is that after processing the above hazel goes back to the folder that contained the XML (e.g.. 'D12345_AAA_Notification') and if the folder name has 'notification' in it, move it to another folder. So, after that I only have folders WITHOUT notification in the 'INCOMING' folder but ALL XML's are copied.
Any help would be very appreciated!
I've been reading threads where applescript is used to go up to the parent folder, but somehow it doesn't work. I've tried all sorts of this, but I'm kinda in the dark now.
I'll try to illustrate what I have working now and what I really need to get working to make it perfect:
FTP FOLDER RULES:
1 IF
Extension is .zip
DO
Unarchive
2 IF
Kind is Folder
Move to folder 'INCOMING'
--------------------
FOLDER INCOMING RULES
1 IF
KIND IS FOLDER
DO
Run rules on folder contents
2 IF
Extension is XML
DO
Rename pattern name.txt
copy to folder 'incoming_xml'
This all works fine, but now the problem is that some of the unzipped folders that went into folder INCOMING have a name that contains '_notification_'. Something like 'D12345_AAA_Notification' (that folder holds the XML).
What I REALLY need to have done is that after processing the above hazel goes back to the folder that contained the XML (e.g.. 'D12345_AAA_Notification') and if the folder name has 'notification' in it, move it to another folder. So, after that I only have folders WITHOUT notification in the 'INCOMING' folder but ALL XML's are copied.
Any help would be very appreciated!