Paul
Sun Aug 22 17:09:06 CDT 2004
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--B_3176032146_11259091
Content-type: text/plain;
charset="ISO-8859-1"
Content-transfer-encoding: 8bit
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.
> From: kevs <studiok4485@hotmail.com>
> Newsgroups: microsoft.public.mac.office.entourage
> Date: Sun, 22 Aug 2004 14:18:30 -0700
> Subject: Re: Keyboard shortcut for making new subfolders?
>
> 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.
>
>
>
>
> On 8/21/04 3:12 PM, in article BD4D16CB.708B3%berkowit@spoof_silcom.com,
> "Paul Berkowitz" <berkowit@spoof_silcom.com> wrote:
>
>> On 8/21/04 2:02 PM, in article BD4D067C.3AB2%studiok4485@hotmail.com, "kevs"
>> <studiok4485@hotmail.com> wrote:
>>
>>>
>>> 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.
>
> OS 10.3.4
> Office 2004
>
>
--B_3176032146_11259091
Content-type: text/html;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Re: Keyboard shortcut for making new subfolders?</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Which=
site do you mean? I didn't link or refer to a site. Do you mean in my signa=
ture, which you didn't quote? Both links work.<BR>
<BR>
In your message a few minutes earlier you said you found the right place fo=
r keyboard shortcuts in Panther but that it didn't work for Subfolder. I'll =
try it myself now.<BR>
<BR>
You're right: it doesn't work at all. I've seen this sometimes, but not alw=
ays, with submenu items.<BR>
<BR>
Here's a script that will do it. If you make it in Script Editor (/Applicat=
ions/AppleScript/Script Editor), save as script in ~/Documents/Microsoft Use=
r Data/Entourage Script Menu Items/ folder, saving it as <BR>
<BR>
New Subfolder \scN<BR>
<BR>
you'll be able to run it via shift-control-N. To use a different keyboard s=
hortcut , see the "About the script menu" in Entourage Help.<BR>
<BR>
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/Unive=
rsal Access, and check "Enable for assistive devices".<BR>
<BR>
<FONT COLOR=3D"#0000FF"><B>tell</B></FONT> <FONT COLOR=3D"#0000FF">application<=
/FONT> "Microsoft Entourage"<BR>
<FONT COLOR=3D"#0000FF">activate<BR>
</FONT> <FONT COLOR=3D"#0000FF"><B>try<BR>
</B></FONT> <FONT COLOR=3D"#0000FF"=
><B>set</B></FONT> <FONT COLOR=3D"#408000">theFolder</FONT> <FONT COLOR=3D"#0000=
FF"><B>to</B></FONT> <FONT COLOR=3D"#0000FF">displayed feature</FONT> <FONT CO=
LOR=3D"#0000FF"><B>of</B></FONT> <FONT COLOR=3D"#0000FF">main window<BR>
</FONT> <FONT COLOR=3D"#0000FF"><B>=
if</B></FONT> <FONT COLOR=3D"#0000FF">class</FONT> <FONT COLOR=3D"#0000FF"><B>of=
</B></FONT> <FONT COLOR=3D"#408000">theFolder</FONT> ≠ <FONT COLOR=3D"#000=
0FF">folder</FONT> <FONT COLOR=3D"#0000FF"><B>then</B></FONT> <FONT COLOR=3D"#00=
00FF"><B>error</B></FONT> <FONT COLOR=3D"#0000FF">number</FONT> -128<BR>
<FONT COLOR=3D"#0000FF"><B>on</B></FONT> <FONT COLOR=3D=
"#0000FF"><B>error<BR>
</B></FONT> <FONT COLOR=3D"#0000FF"=
>beep<BR>
</FONT> <FONT COLOR=3D"#0000FF">dis=
play dialog</FONT> "First you must select a folder in teh Folders pane.=
" <FONT COLOR=3D"#0000FF">buttons</FONT> {"Cancel"} <FONT COLOR=
=3D"#0000FF">default button</FONT> 1 <FONT COLOR=3D"#0000FF">with icon</FONT> 0<=
BR>
<FONT COLOR=3D"#0000FF"><B>end</B></FONT> <FONT COLOR=
=3D"#0000FF"><B>try<BR>
</B></FONT> <FONT COLOR=3D"#0000FF"><B>set</B></FONT> <FONT=
COLOR=3D"#408000">newFolder</FONT> <FONT COLOR=3D"#0000FF"><B>to</B></FONT> <FO=
NT COLOR=3D"#0000FF">make</FONT> <FONT COLOR=3D"#0000FF">new</FONT> <FONT COLOR=3D=
"#0000FF">folder</FONT> <FONT COLOR=3D"#0000FF">at</FONT> <FONT COLOR=3D"#408000=
">theFolder<BR>
</FONT> <FONT COLOR=3D"#0000FF"><B>set</B></FONT> <FONT COL=
OR=3D"#0000FF">displayed feature</FONT> <FONT COLOR=3D"#0000FF"><B>of</B></FONT>=
<FONT COLOR=3D"#0000FF">main window</FONT> <FONT COLOR=3D"#0000FF"><B>to</B></F=
ONT> <FONT COLOR=3D"#408000">newFolder<BR>
</FONT><FONT COLOR=3D"#0000FF"><B>end</B></FONT> <FONT COLOR=3D"#0000FF"><B>tel=
l<BR>
</B></FONT><BR>
<FONT COLOR=3D"#0000FF"><B>tell</B></FONT> <FONT COLOR=3D"#0000FF">application<=
/FONT> "System Events"<BR>
<FONT COLOR=3D"#0000FF"><B>tell</B></FONT> <FONT COLO=
R=3D"#0000FF">process</FONT> "Microsoft Entourage"<BR>
<FONT COLOR=3D"#0000FF">keyst=
roke</FONT> (<FONT COLOR=3D"#0000FF">ASCII character</FONT> 3)<BR>
<FONT COLOR=3D"#0000FF"><B>end</B></FONT> <FONT COLOR=
=3D"#0000FF"><B>tell<BR>
end</B></FONT> <FONT COLOR=3D"#0000FF"><B>tell<BR>
</B></FONT><BR>
<BR>
I find it a sluggish myself. It seems to be the part of selecting the new f=
older 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:<BR>
<BR>
<BR>
<BR>
<FONT COLOR=3D"#0000FF"><B>tell</B></FONT> <FONT COLOR=3D"#0000FF">application<=
/FONT> "Microsoft Entourage"<BR>
<FONT COLOR=3D"#0000FF">activate<BR>
</FONT> <FONT COLOR=3D"#0000FF"><B>try<BR>
</B></FONT> <FONT COLOR=3D"#0000FF"=
><B>set</B></FONT> <FONT COLOR=3D"#408000">theFolder</FONT> <FONT COLOR=3D"#0000=
FF"><B>to</B></FONT> <FONT COLOR=3D"#0000FF">displayed feature</FONT> <FONT CO=
LOR=3D"#0000FF"><B>of</B></FONT> <FONT COLOR=3D"#0000FF">main window<BR>
</FONT> <FONT COLOR=3D"#0000FF"><B>=
if</B></FONT> <FONT COLOR=3D"#0000FF">class</FONT> <FONT COLOR=3D"#0000FF"><B>of=
</B></FONT> <FONT COLOR=3D"#408000">theFolder</FONT> ≠ <FONT COLOR=3D"#000=
0FF">folder</FONT> <FONT COLOR=3D"#0000FF"><B>then</B></FONT> <FONT COLOR=3D"#00=
00FF"><B>error</B></FONT> <FONT COLOR=3D"#0000FF">number</FONT> -128<BR>
<FONT COLOR=3D"#0000FF"><B>on</B></FONT> <FONT COLOR=3D=
"#0000FF"><B>error<BR>
</B></FONT> <FONT COLOR=3D"#0000FF"=
>beep<BR>
</FONT> <FONT COLOR=3D"#0000FF">dis=
play dialog</FONT> "First you must select a folder in teh Folders pane.=
" <FONT COLOR=3D"#0000FF">buttons</FONT> {"Cancel"} <FONT COLOR=
=3D"#0000FF">default button</FONT> 1 <FONT COLOR=3D"#0000FF">with icon</FONT> 0<=
BR>
<FONT COLOR=3D"#0000FF"><B>end</B></FONT> <FONT COLOR=
=3D"#0000FF"><B>try<BR>
</B></FONT> <FONT COLOR=3D"#0000FF">display dialog</FONT> &=
quot;Enter a name for the new subfolder:" <FONT COLOR=3D"#0000FF">default=
answer</FONT> "untitled folder" <FONT COLOR=3D"#0000FF">with icon</=
FONT> 1<BR>
<FONT COLOR=3D"#0000FF"><B>set</B></FONT> <FONT COLOR=
=3D"#408000">newName</FONT> <FONT COLOR=3D"#0000FF"><B>to</B></FONT> <FONT COLOR=
=3D"#0000FF">text returned</FONT> <FONT COLOR=3D"#0000FF"><B>of</B></FONT> <FONT=
COLOR=3D"#0000FF">result<BR>
</FONT> <FONT COLOR=3D"#0000FF">make</FONT> <FONT COLOR=3D"#0=
000FF">new</FONT> <FONT COLOR=3D"#0000FF">folder</FONT> <FONT COLOR=3D"#0000FF">=
at</FONT> <FONT COLOR=3D"#408000">theFolder</FONT> <FONT COLOR=3D"#0000FF">with =
properties</FONT> {<FONT COLOR=3D"#0000FF">name</FONT>:<FONT COLOR=3D"#408000">n=
ewName</FONT>}<BR>
<FONT COLOR=3D"#0000FF"><B>end</B></FONT> <FONT COLOR=3D"#0000FF"><B>tell<BR>
</B></FONT><BR>
<BR>
<BR>
<BR>
-- <BR>
Paul Berkowitz<BR>
MVP MacOffice<BR>
Entourage FAQ Page: <a href=3D"
http://www.entourage.mvps.org/faq/index.html">=
<
http://www.entourage.mvps.org/faq/index.html></a><BR>
AppleScripts for Entourage: <a href=3D"
http://macscripter.net/scriptbuilders/=
"><
http://macscripter.net/scriptbuilders/></a> <BR>
<BR>
Please "Reply To Newsgroup" to reply to this message. Emails will=
be ignored.<BR>
<BR>
PLEASE always state which version of Microsoft Office you are using - **200=
4**, X or 2001. It's often impossible to answer your questions otherwi=
se.<BR>
<BR>
<BR>
<FONT COLOR=3D"#0000FF">> From: kevs <studiok4485@hotmail.com><BR>
> Newsgroups: microsoft.public.mac.office.entourage<BR>
> Date: Sun, 22 Aug 2004 14:18:30 -0700<BR>
> Subject: Re: Keyboard shortcut for making new subfolders?<BR>
> <BR>
> Thanks Paul<BR>
> I did a search and could not find it. Could you please tell me h=
ow to<BR>
> navigate to it? That site is very difficult to find stuff for th=
e layman.<BR>
> <BR>
> <BR>
> <BR>
> <BR>
> On 8/21/04 3:12 PM, in article BD4D16CB.708B3%berkowit@spoof_silcom.co=
m,<BR>
> "Paul Berkowitz" <berkowit@spoof_silcom.com> wrote:<BR=
>
> <BR>
</FONT><FONT COLOR=3D"#008000">>> On 8/21/04 2:02 PM, in article BD4D06=
7C.3AB2%studiok4485@hotmail.com, "kevs"<BR>
>> <studiok4485@hotmail.com> wrote:<BR>
>> <BR>
</FONT><FONT COLOR=3D"#FF0000">>>> <BR>
>>> OS 10.3.4<BR>
>>> Office 2004<BR>
</FONT><FONT COLOR=3D"#008000">>> <BR>
>> <BR>
>> Would you please put your questions into the body of the message? =
Thank you.<BR>
>> <BR>
>> In 10.3.x, go to System Preferences/Keyboard & Mouse/Keyboard =
Shortcuts.<BR>
>> <BR>
>> At the bottom of the list, click Application Shortcuts and click t=
he + box.<BR>
>> Switch the popup to Entourage.<BR>
>> Type 'Subfolder' (no quotes).<BR>
>> Press the keys you want for the shortcut.<BR>
>> <BR>
>> <BR>
>> It will only work when Subfolder is enabled (not dimmed) as a subm=
enu item<BR>
>> of File/New. That only happens when you click on a Folder in the F=
olders<BR>
>> pane to make it the focus.<BR>
</FONT><FONT COLOR=3D"#0000FF">> <BR>
> OS 10.3.4<BR>
> Office 2004<BR>
> <BR>
> <BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>
--B_3176032146_11259091--