• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Make New Window scripting problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Make New Window scripting problem (From: Michelle Steiner <email@hidden>)
 >Re: Make New Window scripting problem (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Finder or System Events for File Manipulation
  • Next by Date: Get path to script in Panther
  • Previous by thread: Re: Make New Window scripting problem
  • Next by thread: Problems to cahnge font in AI 10
  • Index(es):
    • Date
    • Thread