I'm not sure why you're trying to complicate things. If I run this:
property dailyServerFolder : "General:From TC"
tell application "TextEdit"
activate
delay 1
set temp to name of window 1
save document 1 in file (my dailyServerFolder & ":" & temp)
end tell
It works fine. That's the bog-standard AppleScript way to save a file.
script AppDelegate
property parent : class "NSObject"
property dailyServerFolder : "General:From TC"
on applicationWillFinishLaunching:aNotification
tell application "TextEdit"
activate
delay 1
set temp to name of window 1
save document 1 in file (my dailyServerFolder & ":" & temp)
end tell
end applicationWillFinishLaunching:
on applicationShouldTerminate:sender
-- Insert code here to do any housekeeping before your application quits
return current application's NSTerminateNow
end applicationShouldTerminate:
end script
It still works fine.