Time to figure out what is going on...
Time to figure out what is going on...
- Subject: Time to figure out what is going on...
- From: Glenn Sugden <email@hidden>
- Date: Sat, 20 Aug 2005 11:58:42 -0700
Most (if not all) of my Mail (v2.0.2) scripts no longer seem to work
in Tiger (10.4.2) when activated from the script menu. There is no
error message, no beep, nothing.
However, they seem to run correctly when I open them up in Script
Debugger and run them from there.
I've been too busy to track down the problem, but now that I've got
some time...
Here's one of the (many) scripts (that don't work). Does it work for
y'all? Is this a problem on my machine or systemic to the Mail/Tiger
combination?
Thanks,
::Glenn
--- open unread messages --
on run
tell application "Mail"
set viewer_count to (count of message viewers)
tell front message viewer to set unread_mailbox_list to get
selected mailboxes
if ((count of unread_mailbox_list) is 0) then
set unread_mailbox_list to (every mailbox whose unread
count > 0)
end if
set unread_mailbox_count to (count of unread_mailbox_list)
repeat with mailbox_index from 1 to unread_mailbox_count
log (name of (item mailbox_index of unread_mailbox_list)
as text)
tell application "System Events"
tell process "Mail"
activate
click menu item "New Viewer Window" of menu 1 of
menu bar item "File" of menu bar 1
end tell
end tell
set single_box_list to {item mailbox_index of
unread_mailbox_list}
tell message viewer (viewer_count + mailbox_index)
set the selected mailboxes to single_box_list
set the_messages to (every message whose read status
is false and deleted status is false)
set the visible messages to the_messages
set preview pane is visible to true
end tell
end repeat
end tell
end run
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden