Keystroke for inbox?

P

Paul Berkowitz

Is there a keystroke one can make for inbox?

OS 10.3.3

Office X

You mean you want to display the Inbox in the main window, no matter where
you are?

Paste and save the following script in Script Editor, save it as

Open Inbox \cO

or any other name, with any other shortcut after the "\" you might prefer.
See "AppleScript" --> "Script Menu" in the Help for the system for assigning
shortcuts, and make sure you choose one that isn't already taken by a
shortcut for a standard menu item. Using 'control' key is pretty safe -
there aren't many of those taken. \cO means control-O. (\mcO would be
command-control-O. \cI would be control-I and \mcI would be
command-control-I but both of those seems to tab forward in text windows - I
never knew those. So avoid both of them .) Save it as a Script (the
default), to the Entourage Script Menu Items folder in Microsoft User Data
folder in your OS X user Documents folder (~/Documents/Microsoft User Data/
Entourage Script Menu Items).

tell application "Microsoft Entourage"
open main window -- brings it forward
set displayed feature of main window to in box folder
end tell


Now if you type control-O anywhere in Entourage, you'll get the Inbox
displayed in the main window.

If you actually meant the INBOX of an IMAP account (or Exchange or Hotmail
account) and not the Inbox "On My Computer", write back.




--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 
M

Mickey Stevens

You can do it using AppleScript. Open Script Editor
(HD/Applications/AppleScript/Script Editor), and paste this in:

-- Start Copying

tell application "Microsoft Entourage"
set displayed feature of main window to folder "Inbox"
end tell

-- Stop Copying

Then, go to File -> Save As. Save it as a compiled script to HD/Users/<Your
User>/Documents/Microsoft User Data/Entourage Script Menu Items. Name the
script with a suffix to indicate the desired keyboard shortcut, as described
here:
<http://www.entourage.mvps.org/help/script.html#Anchor-Using-47857>

If you wanted to assign Command-Control-I to open the Inbox, you'd name the
script "Open Inbox\mcI"

Once you've saved the script, pressing the keyboard shortcut you assigned
while in Entourage should open the Inbox.
 
K

kevG

You can do it using AppleScript. Open Script Editor
(HD/Applications/AppleScript/Script Editor), and paste this in:

-- Start Copying

tell application "Microsoft Entourage"
set displayed feature of main window to folder "Inbox"
end tell

-- Stop Copying

Then, go to File -> Save As. Save it as a compiled script to HD/Users/<Your
User>/Documents/Microsoft User Data/Entourage Script Menu Items. Name the
script with a suffix to indicate the desired keyboard shortcut, as described
here:
<http://www.entourage.mvps.org/help/script.html#Anchor-Using-47857>

If you wanted to assign Command-Control-I to open the Inbox, you'd name the
script "Open Inbox\mcI"

Once you've saved the script, pressing the keyboard shortcut you assigned
while in Entourage should open the Inbox.
No:
I think I explained wrong.
Lets say your outbox is currently selected. You are standing at your
computer and don't want to sit down and grab the mouse to select the inbox.
Is there a quick keystroke for that -- or a way to program one?
 
P

Paul Berkowitz

No:
I think I explained wrong.
Lets say your outbox is currently selected. You are standing at your
computer and don't want to sit down and grab the mouse to select the inbox.
Is there a quick keystroke for that -- or a way to program one?

But that's what Mickey and I both sent you (except Mickey suggested the
command-control-I combo that conflicts with typing a tab in text: I'd
suggest instead the control-O or command-control-O I recommended.) My
version also brings the main window to the front so you can use the key
combo even when you've got another message window in front to begin with -
saves the mouse click you'd need otherwise.

Try it. (You evidently haven't.) It does exactly what you're asking for. Try
my version.

--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 
K

kevs

Thanks Paul:
What did you mean by paste and save in script editor?
I pasted Open Inbox \cO

And did a search at Macscripter but got no results. Obviously I didn't
understand.....please clearify where to find this script. Thanks!!!!!!
 
B

Bernard Rey

kevs wrote :
Thanks Paul:
What did you mean by paste and save in script editor?
I pasted Open Inbox \cO

And did a search at Macscripter but got no results. Obviously I didn't
understand.....please clearify where to find this script. Thanks!!!!!!

The lines you were supposed to copy and paste in the ScriptEditor are the
following:


tell application "Microsoft Entourage"
open main window -- brings it forward
set displayed feature of main window to in box folder
end tell
 
K

kevs

kevs wrote :


The lines you were supposed to copy and paste in the ScriptEditor are the
following:


tell application "Microsoft Entourage"
open main window -- brings it forward
set displayed feature of main window to in box folder
end tell
Bernard
Not too conversant with making script. Never done one myself. I imagine
it's not that easy........?
 
B

Bernard Rey

kevs wrote :
Not too conversant with making script. Never done one myself. I imagine
it's not that easy........?

It is that easy :) Let's try a "step by step" through Paul's instructions:

In your "Applications" folder, you should find an "AppleScript" folder.
Launch the "Script Editor" application that's in there.

In the blank script window that should have opened, copy and paste these
four lines:

tell application "Microsoft Entourage"
open main window -- brings it forward
set displayed feature of main window to in box folder
end tell

Now, from the "File" menu "Save as..." item, save it as a "Script" (it
should be selected by default), and save it in the "~/Documents/Microsoft
User Data/Entourage Script Menu Items" folder, under the name "Open Inbox
\cO" (without the quotes)

In the Finder, open that "Entourage Script Menu Items" folder and, doing a
"Command-I", make sure there is no ".scpt" at the end of the name (there
should be nothing after the "O" - I noticed that it prevented the shortcut
to work).

Now, back in Entourage, if you have a look in the Script menu, you should
see your script with the name "Open Inbox ^O" (w/o the quotes)

If you type "Control-O", you should land directly "in your Inbox", as
originally required.

If something is not clear, or does not work as described, just post back and
say from which point things went wrong.
 
K

kevs

Worked great Bernard. Very nice instruction.
Couple of things.
Any easy way, if one wanted to use their own keystroke?

I guess this is more complex being that you can't use the system pref.
Keyboard keystroke feature because this is all being done in the arcane
world of Entourage, right?

Also, in you wanted keystrokes for deleted items, sent items.....
 
M

Mickey Stevens

Worked great Bernard. Very nice instruction.
Couple of things.
Any easy way, if one wanted to use their own keystroke?

You would change the end of the filename to something else. The formula for
customizing keyboard shortcuts is here.
I guess this is more complex being that you can't use the system pref.
Keyboard keystroke feature because this is all being done in the arcane
world of Entourage, right?

Yes, it's a shame that cannot be controlled by Entourage. I believe it is
because the menu has no real name.
Also, in you wanted keystrokes for deleted items, sent items.....

You would create new scripts, and save them using Bernard's detailed
procedure.

For example, this one opens the Deleted Items folder:

tell application "Microsoft Entourage"
open main window -- brings it forward
set displayed feature of main window to folder "Deleted Items"
end tell

And this one opens the Sent Items folder:

tell application "Microsoft Entourage"
open main window -- brings it forward
set displayed feature of main window to folder "Sent Items"
end tell

For standard folders in the "On My Computer" hierarchy that are not
subfolders, you would simply replace the name within the quotation marks
with the exact name of the folder you wish to open.

If the folder is a subfolder, as in the "Any Subfolder" folder pictured here
<http://home.earthlink.net/~mickey.stevens/images/subfolder.jpg>, then you
would use a slightly different syntax.

tell application "Microsoft Entourage"
open main window
set displayed feature of main window to folder "Any Subfolder" of folder
"Any Folder"
end tell

In this case, you would replace the "Any Subfolder" with the name of the
folder, and the "Any Folder" with the name of the folder the desired folder
is a subfolder of.

Hope this helps!
 
Top