Keyboard shortcut for making new subfolders?

P

Paul Berkowitz

OS 10.3.4
Office 2004


Would you please put your questions into the body of the message? Thank you.

In 10.3.x, go to System Preferences/Keyboard & Mouse/Keyboard Shortcuts.

At the bottom of the list, click Application Shortcuts and click the + box.
Switch the popup to Entourage.
Type 'Subfolder' (no quotes).
Press the keys you want for the shortcut.


It will only work when Subfolder is enabled (not dimmed) as a submenu item
of File/New. That only happens when you click on a Folder in the Folders
pane to make it the focus.

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.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 Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
K

kevs

Would you please put your questions into the body of the message? Thank you.

In 10.3.x, go to System Preferences/Keyboard & Mouse/Keyboard Shortcuts.

At the bottom of the list, click Application Shortcuts and click the + box.
Switch the popup to Entourage.
Type 'Subfolder' (no quotes).
Press the keys you want for the shortcut.


It will only work when Subfolder is enabled (not dimmed) as a submenu item
of File/New. That only happens when you click on a Folder in the Folders
pane to make it the focus.
Thanks Paul;
Great info. I've entered in Subfolder and tried it with several keystrokes.
Just does not seem to work.

OS 10.3.4
Office 2004
 
K

kevs

Thanks Paul
I did a search and could not find it. Could you please tell me how to
navigate to it? That site is very difficult to find stuff for the layman.




Would you please put your questions into the body of the message? Thank you.

In 10.3.x, go to System Preferences/Keyboard & Mouse/Keyboard Shortcuts.

At the bottom of the list, click Application Shortcuts and click the + box.
Switch the popup to Entourage.
Type 'Subfolder' (no quotes).
Press the keys you want for the shortcut.


It will only work when Subfolder is enabled (not dimmed) as a submenu item
of File/New. That only happens when you click on a Folder in the Folders
pane to make it the focus.

OS 10.3.4
Office 2004
 
P

Paul Berkowitz

Which site do you mean? I didn't link or refer to a site. Do you mean in my
signature, which you didn't quote? Both links work.

In your message a few minutes earlier you said you found the right place for
keyboard shortcuts in Panther but that it didn't work for Subfolder. I'll
try it myself now.

You're right: it doesn't work at all. I've seen this sometimes, but not
always, with submenu items.

Here's a script that will do it. If you make it in Script Editor
(/Applications/AppleScript/Script Editor), save as script in
~/Documents/Microsoft User Data/Entourage Script Menu Items/ folder, saving
it as

New Subfolder \scN

you'll be able to run it via shift-control-N. To use a different keyboard
shortcut , see the "About the script menu" in Entourage Help.

In order for the final bit of the script to work (it selects the folder to
let you type the folder name) first go now to System Preferences/Universal
Access, and check "Enable for assistive devices".

tell application "Microsoft Entourage"
activate
try
set theFolder to displayed feature of main window
if class of theFolder ‚ folder then error number -128
on error
beep
display dialog "First you must select a folder in teh Folders pane."
buttons {"Cancel"} default button 1 with icon 0
end try
set newFolder to make new folder at theFolder
set displayed feature of main window to newFolder
end tell

tell application "System Events"
tell process "Microsoft Entourage"
keystroke (ASCII character 3)
end tell
end tell


I find it a sluggish myself. It seems to be the part of selecting the new
folder that takes a while. So here's an alternate method I find much faster:
you enter the name of the new folder in a dialog. Then the script just makes
it without selecting it. Personally I think this is better:



tell application "Microsoft Entourage"
activate
try
set theFolder to displayed feature of main window
if class of theFolder ‚ folder then error number -128
on error
beep
display dialog "First you must select a folder in teh Folders pane."
buttons {"Cancel"} default button 1 with icon 0
end try
display dialog "Enter a name for the new subfolder:" default answer
"untitled folder" with icon 1
set newName to text returned of result
make new folder at theFolder with properties {name:newName}
end tell




--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.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 Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
K

kevs

Paul:
Sorry my fault. I replied to the ³shortcut needed² thread here by accident.
But yeah, I can¹t find that script for the accounts and signatures. That
site, macscripter, very difficult to find stuff, did search and all. Would
it be too much trouble to ask for the direct url for it?

Thanks for subfolder stuff, it¹s a bit over my head, I¹m sure others those
will appreciate it. Let us know if you add it to your repertoire of
scripts.

Which site do you mean? I didn't link or refer to a site. Do you mean in my
signature, which you didn't quote? Both links work.

In your message a few minutes earlier you said you found the right place for
keyboard shortcuts in Panther but that it didn't work for Subfolder. I'll try
it myself now.

You're right: it doesn't work at all. I've seen this sometimes, but not
always, with submenu items.

Here's a script that will do it. If you make it in Script Editor
(/Applications/AppleScript/Script Editor), save as script in
~/Documents/Microsoft User Data/Entourage Script Menu Items/ folder, saving it
as

New Subfolder \scN

you'll be able to run it via shift-control-N. To use a different keyboard
shortcut , see the "About the script menu" in Entourage Help.

In order for the final bit of the script to work (it selects the folder to let
you type the folder name) first go now to System Preferences/Universal
Access, and check "Enable for assistive devices".

tell application "Microsoft Entourage"
activate
try
set theFolder to displayed feature of main window
if class of theFolder ‚ folder then error number -128
on error
beep
display dialog "First you must select a folder in teh Folders pane."
buttons {"Cancel"} default button 1 with icon 0
end try
set newFolder to make new folder at theFolder
set displayed feature of main window to newFolder
end tell

tell application "System Events"
tell process "Microsoft Entourage"
keystroke (ASCII character 3)
end tell
end tell


I find it a sluggish myself. It seems to be the part of selecting the new
folder that takes a while. So here's an alternate method I find much faster:
you enter the name of the new folder in a dialog. Then the script just makes
it without selecting it. Personally I think this is better:



tell application "Microsoft Entourage"
activate
try
set theFolder to displayed feature of main window
if class of theFolder ‚ folder then error number -128
on error
beep
display dialog "First you must select a folder in teh Folders pane."
buttons {"Cancel"} default button 1 with icon 0
end try
display dialog "Enter a name for the new subfolder:" default answer
"untitled folder" with icon 1
set newName to text returned of result
make new folder at theFolder with properties {name:newName}
end tell


OS 10.3.4
Office 2004
 
Top