Yvan is correct.
Try something like this.....
set temp to path to desktop
tell application "Finder" to set folderName to name of (container of file (((temp) & "Untitled 2.pages") as text)) as text
Regards
Santa
On 07/10/2009, at 9:04 AM, Yvan KOENIG wrote: