Re: Applescript newbie trying to do something easy
Re: Applescript newbie trying to do something easy
- Subject: Re: Applescript newbie trying to do something easy
- From: "Edward Ned Harvey" <email@hidden>
- Date: Tue, 17 Mar 2009 10:24:10 -0400
This might be a step in the right direction -
problem is - I can't seem to get "YYY" correct. Can you tell me how to do
this?
(I'm making this
up)
set allAccounts to list of
accounts
repeat with theAccount in
allAccounts
display
dialog "Another account: " & (theAccount as text)
end repeat
The above should let me know the right name of the
account - I've guessed every string I can find without any luck.
----- Original Message -----
Sent: Monday, March 16, 2009 7:28
PM
Subject: Re: Applescript newbie trying to
do something easy
Hi,
And welcome to AppleScript! :-)
It looks like you enter a text string (the folder name) and then try to
move the message(s) to that folder.
Out of my mind, I think you need references to the folders in the
accounts, as simple foldernames will not work.
The ref would be somethinkg like "folder XXX of account YYY...." when
returned to the AS Editor output.
Something
like:
set
allFolders to folders of account YYY
set theFolder
to choose from list allFolders with multiple selections not allowed
Hope it
helps...
Jakob
Peterhänsel
"Be a part of the Love Generation - carry a smile, not
a gun."
- JP, May 2006
AIM: Marook
Phone: +45 30787715
On 17/03/2009, at 00.02, Edward Ned Harvey wrote:
Not sure which question is more appropriate –
What is wrong with my
script? or How would
an applescript guru approach this problem?
After reading the mail in
my Entourage inbox, I want to move the messages to other folders.
-- This works fine as long as the
folder is local. Doesn't work for an IMAP folder (or
Exchange?) -- I am using an IMAP
server on google right now. But I can get an exchange
account -- for testing, if
needed. tell application "Microsoft Entourage" set theSelectedMessages to selection display
dialog "Choose a mailbox." default answer "" set theFolder to (text
returned of result) as string repeat with theMessage in theSelectedMessages -- move theMessage to
folder theFolder in exchange account "foo goo" move theMessage to folder theFolder end repeat end tell This
allows me to move messages around from folder to folder, as long as the
folders are “On My Computer”
The following modification doesn’t seem
to do any
good: move theMessage to folder theFolder in IMAP account "foogoo"
Thank you, everyone, for
either helping me solve my problem, or for pointing me toward some kind of
language reference out there ... Or debugging tools ... Or
something.
At present, the above script simply terminates, and
doesn’t give any error message. I would love to know how to get an
error message out of there. Or insert break points. Or to simply
know how to find the “move” language reference, so I can look up the command
syntax. Or anything because I am stuck.
Thanks
again.
_______________________________________________ Do not post admin
requests to the list. They will be ignored. AppleScript-Users mailing
list (email@hidden) Help/Unsubscribe/Update
your Subscription: http://lists.apple.com/archives/applescript-users
This
email sent to email@hidden
|
_______________________________________________
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