setting Eudora insertion point... HELP!
setting Eudora insertion point... HELP!
- Subject: setting Eudora insertion point... HELP!
- From: Cameron Knowlton <email@hidden>
- Date: Wed, 9 Feb 2011 14:22:01 -0800
Title: setting Eudora insertion point...
HELP!
For the past 3 hours, I have been trying to script the SIMPLEST
step in Eudora, and I am going to LOSE IT!!!!!! I have Googled my
brains out, and I cannot for the LIFE of me figure out how to set the
insertion point in Eudora.
Note: I'm **NOT** trying to set the body text... I do that elsewhere
in the script with:
tell application "Eudora"
set newMessage to
make message at (end of mailbox "Out" of mail folder
"")
set field "To"
of newMessage to recipientStringTo
set field
"Cc" of newMessage to recipientStringCc
set field
"Subject" of newMessage to subjectLine
set field
"" of newMessage to messageText
attach to
newMessage documents myAttachments
end tell
AFTER doing that, I need to paste in an inline *image* to
the END of the body.
Can ***anyone*** show me how it's done?!??!?!! PLEASE?!?
****All***** I want to do is set the insertion point at the end of
the
message body so that I can paste an image from the clipboard.
3 FRIGGING HOURS LATER AND I CAN'T FIGURE THIS OUT!
FYI, this is the code snippet that I have setup... it works
PERFECTLY,
except that it REQUIRES that the insertion point ALREADY be set.
The complete script creates the message as well (as above), so there's
no
opportunity for me, the Human, to set the insertion point... the
SCRIPT
MUST DO IT!
(By the way, the first tell block below is a handy way of creating a
perfect
screenshot of a specific Excel range... that was WAY easier than
I
expected it to be, NEVER thought I'd get screwed on the SIMPLE
step.)
PLEASE, SOMEONE!!! I'M GOING TO LOSE IT!!!!!!!!!!!!
------------------------
tell application "Microsoft Excel"
set currentDoc to active workbook
try
set analyticsSheet to worksheet
"Web Analytics" of currentDoc
set theTableRange to range
"B16:K29" of analyticsSheet
copy picture theTableRange appearance
screen format picture
on error
set clipboard to ""
end try
end tell
tell application "Eudora"
activate
(*
-- this code is SUPPOSED to set the
insertion point... how the
HELL do we do that?!?!?!
-- the script currently works, BUT it
requires that the insertion
point ALREADY BE SET (bogus!)
set theMessage to last message of
mailbox "Out"
set theBody to body of theMessage
select insertion point after body of
theMessage
*)
tell application "System Events"
tell process "Eudora"
click menu item
"Paste" of menu "Edit" of menu bar item
"Edit"
of menu bar 1
end tell
end tell
end tell
--
Cameron Knowlton
KnowledgeVine SEO Dashboards
email@hidden
P: 250.382.0226
http://www.knowledgevine.net
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden