• 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
Creating a new header item in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating a new header item in Mail


  • Subject: Creating a new header item in Mail
  • From: Bernardo Hoehl <email@hidden>
  • Date: Mon, 26 Jul 2004 13:25:35 -0300

Hello folks,

I am trying to include a new header item in a message, and it seems I
am not getting it right.

I have started trying to edit the "create new message" script in
Scripts folder of Panther. But it seems my line is wrong or it is in
misplaced.


Could you please coment my script.

Script:

tell application "Mail"

set newMessage to make new outgoing message with properties
{subject:theSubject, content:theBody & return & return}

tell newMessage
-- Default is false. Determines whether the compose window will
-- show on the screen or whether it will happen in the background.
set visible to true
set sender to theSender
make new to recipient at end of to recipients with properties
{name:theName, address:theAddress}

-------------Here is my line:
make new to header with properties {name:"Priority",
content:"urgent"}

--------------End of my line.
tell content
--make new to header with properties {name:"Priority", content:"1"}
if (wantsAttachment is equal to "Yes") then
-- Position must be specified for attachments
make new attachment with properties {file name:theAttachment} at
after the last paragraph
end if
end tell
if (theSignature is not equal to "") then
set message signature to theSignature
end if
end tell

end tell
_______________________________________________
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.


  • Follow-Ups:
    • Re: Creating a new header item in Mail
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: "do shell" vs. Plain old AppleScript nomenclature
  • Next by Date: Re: Creating a new header item in Mail
  • Previous by thread: Folder Action
  • Next by thread: Re: Creating a new header item in Mail
  • Index(es):
    • Date
    • Thread