Re: Make New Window scripting problem
Re: Make New Window scripting problem
- Subject: Re: Make New Window scripting problem
- From: Christopher Stone <email@hidden>
- Date: Thu, 29 Jan 2004 19:37:55 -0600
At 22:48 +0100 01/29/2004, Axel Luttgens wrought:
TE seems to be more document-oriented than window-oriented, as if a windows
...
So, this works:
tell application "TextEdit" to make new document at beginning
Nasty to *require* the location reference. It should just default to
"beginning".
s far as Mail is concerned, I couldn't guess :-(
Mail's a bit on the ugly side; here's a tidbit from my archive:
At 21:34 +0100 09/07/2003, John Delacour has written:
tell app "Mail"
{visible:true, content:"", subject:"", sender:"", signature:""}
put the result into the apologyforproperties
-- set f to {file name:alias "dx:Users:jd:Documents:b.txt"}
tell apologyforproperties
set subject to "Test"
set content to "Here's that file at last..." & return & return
end
set m to make outgoing message with properties apologyforproperties
tell m's content
set madlocation to a reference to after last paragraph
-- make attachment at the madlocation with properties f
end
end
As far as I can see it isn't possible to make a new message and *then*
populate it's fields; you have to provide some at the outset.
Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.