• 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
Applescript and Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript and Mail


  • Subject: Applescript and Mail
  • From: Matteo Lovatti <email@hidden>
  • Date: Tue, 02 Sep 2003 09:24:55 +0200

Hi everybody! My name's Matteo from Italy and i'm new to the list. I've just started writing my first scripts but
i'm already hang in this problem. I want to write a Mail script that reads the content in the message subject line and assign the last word of it to a variable. Since now i wrote this two lines

tell application "Mail"
set password to (last word in message subject) as text
end tell

but when running it i get the error "NSCannotCreateScriptCommandError" on the word subject.
Can u please help me correct it ??

Thanks a lot in advance.


Matteo Lovatti
------------
iChat: email@hidden
_______________________________________________
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: Applescript and Mail
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: error 10
  • Next by Date: Re: Mail.app - dictionary implementation questions.
  • Previous by thread: Re: error 10
  • Next by thread: Re: Applescript and Mail
  • Index(es):
    • Date
    • Thread