script to open folder

S

somedumbguy

Okay, I'm going to start by admitting that I'm an AppleScript moron. I would
like to be able to open my scripts folder from within the scripts menu, and
I'm not sure how to script that (told you I'm a moron!). Basically, I want
to tell the finder to open the scripts folder, but I'm not sure how to do
the path name. In case you're wondering, I have several scripts that have
customizable options, and I'd like to be able to pop open the scripts folder
at the drop of a hat (and from within Entourage).

And no, an alias won't work. You end up with a series of 'self-nested'
script folders containing the scripts plus the alias, which in turn leads to
a folder of scripts plus the alias (again with the moron thing). Kind of
like watching yourself watch TV when the camera is looking over your
shoulder at the TV screen.

Thanks for your help.

John
 
P

Paul Berkowitz

Okay, I'm going to start by admitting that I'm an AppleScript moron. I would
like to be able to open my scripts folder from within the scripts menu, and
I'm not sure how to script that (told you I'm a moron!). Basically, I want
to tell the finder to open the scripts folder, but I'm not sure how to do
the path name. In case you're wondering, I have several scripts that have
customizable options, and I'd like to be able to pop open the scripts folder
at the drop of a hat (and from within Entourage).

And no, an alias won't work. You end up with a series of 'self-nested'
script folders containing the scripts plus the alias, which in turn leads to
a folder of scripts plus the alias (again with the moron thing). Kind of
like watching yourself watch TV when the camera is looking over your
shoulder at the TV screen.

It could be done quite easily, but it's even easier to use the built-in
mechanism:

If you want to edit a script in Script Editor, you need just hold down
Option key and select the script in question, and that's what happens.


--
Paul Berkowitz
MVP Entourage
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 Entourage you are using - **2004**, X
or 2001. It's often impossible to answer your questions otherwise.
 
S

somedumbguy

Wow, thanks! I had no idea that I could do this. I'm still curious as to how
to craft a script to open this folder, though. Thanks again, Paul!
 
P

Paul Berkowitz

Entourage has an application property 'path to MUD', which finds the
Microsoft User Data folder wherever it is. Assuming you're using an
English-language version of Entourage, the scripts folder within is called
"Entourage Scripts Menu Items". (At least I assume you mean that one, not
the system scripts folder.) Get the Finder to do the rest:


tell application "Microsoft Entourage"
set pathToMUD to path to MUD -- alias
end tell

set scriptsFolder to ((pathToMUD as Unicode text) & "Entourage Script Menu
Items:") as alias

tell application "Finder"
activate
reveal scriptsFolder
end tell



--
Paul Berkowitz
MVP Entourage
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 Entourage you are using - **2004**, X
or 2001. It's often impossible to answer your questions otherwise.
 
B

Barry Wainwright

Okay, I'm going to start by admitting that I'm an AppleScript moron. I would
like to be able to open my scripts folder from within the scripts menu, and
I'm not sure how to script that (told you I'm a moron!). Basically, I want
to tell the finder to open the scripts folder, but I'm not sure how to do
the path name. In case you're wondering, I have several scripts that have
customizable options, and I'd like to be able to pop open the scripts folder
at the drop of a hat (and from within Entourage).

And no, an alias won't work. You end up with a series of 'self-nested'
script folders containing the scripts plus the alias, which in turn leads to
a folder of scripts plus the alias (again with the moron thing). Kind of
like watching yourself watch TV when the camera is looking over your
shoulder at the TV screen.

Thanks for your help.

John


-- Open Scripts Folder v1.0 - 9th December 2001
-- Barry Wainwright <[email protected]>
-- it opens the scripts folder!

tell application "Microsoft Entourage" to set thePath to path to MUD
tell application "Finder"
activate
open folder "Entourage Script Menu Items:" of thePath
end tell

This script (and hundreds of others) is available at
<http://www.scriptbuilders.net/>
 
Top