On 07/10/2009, at 9:34 AM, Brian Christmas wrote:
G'day again
Just in case you're having problems, please note the additions of extra nested brackets, the adding of the word ' file', and the extra 'as text'.
Closer to your example is
set temp to path to desktop
tell application "Finder" to set aliasToNewFolder to (make new folder at temp with properties {name:(name of (container of file (((temp) & "Untitled 2.pages") as text)) as text)}) as alias
Regards
Santa
On 07/10/2009, at 9:04 AM, Yvan KOENIG wrote: