• 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: Mail.app "reply" verb returning nothing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail.app "reply" verb returning nothing


  • Subject: Re: Mail.app "reply" verb returning nothing
  • From: deivy petrescu <email@hidden>
  • Date: Wed, 3 Jan 2007 12:15:51 -0500


On Jan 3, 2007, at 12:04, Martin Orpen wrote:

On 3 Jan 2007, at 16:46, Daniel Jalkut wrote:

Just another data point - I copy/pasted the script into my script editor and ran it, and I also get the "variable myReply is not defined" problem.

Isn't that because you are attempting to set your variable to the command "reply" rather than a value?


Regards

--
Martin Orpen
Idea Digital Imaging Ltd


No, something else is wrong. Here are the script and log result of this script run in SE.
By the way, OS X 10.4.8, SE Version 2.1.1 (81), AS 1.10.7


<script>
tell application "Mail"
activate
set viewer to message viewer 1 -- it took Google to tell me I needed the "1" here...
tell viewer
set msgs to selected messages
set msg to first item of msgs
end tell
set myReply to reply msg with opening window
log myReply
if myReply is false then
set j to "empty reply?!"
else
set j to "ok"
end if
end tell
j
</script>


<log window>
tell application "Mail"
activate
get message viewer 1
message viewer id 107382976
get selected messages of message viewer id 107382976
{message id 213885 of mailbox "INBOX" of account "applescript"}
reply message id 213885 of mailbox "INBOX" of account "applescript" with opening window
«class id 6
(*«class id 6*)
end tell
</log>


As before <<class is actually <<class >>.

So myReply return <<class >> id 6  (number keeps changing)



Deivy _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Mail.app "reply" verb returning nothing
      • From: Martin Orpen <email@hidden>
References: 
 >Re: Mail.app "reply" verb returning nothing (From: Dylan McNamee <email@hidden>)
 >Re: Mail.app "reply" verb returning nothing (From: deivy petrescu <email@hidden>)
 >Re: Mail.app "reply" verb returning nothing (From: Michelle Steiner <email@hidden>)
 >Re: Mail.app "reply" verb returning nothing (From: deivy petrescu <email@hidden>)
 >Re: Mail.app "reply" verb returning nothing (From: Daniel Jalkut <email@hidden>)
 >Re: Mail.app "reply" verb returning nothing (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: Mail.app "reply" verb returning nothing
  • Next by Date: Re: Mail.app "reply" verb returning nothing
  • Previous by thread: Re: Mail.app "reply" verb returning nothing
  • Next by thread: Re: Mail.app "reply" verb returning nothing
  • Index(es):
    • Date
    • Thread