Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Script menu behavior has changed Apps
Tiger only hintThere are some changes to the script menu in Tiger that threw me for a loop at first.

Gone are the days where applications like Mail had their own separate script menu for application-specific scripts. These scripts are now in their own section of the universal script menu. Also, previously the path to store scripts for some application Foo was ~/Library/Scripts/Foo. Scripts. That has been changed to ~/Library/Scripts/Applications/Foo.

[robg adds: The other thing they changed is the method of activating the script menu. To do so in 10.4, go into the AppleScript folder in Applications, and run AppleScript Utility. Check the Show Script Menu in menu bar box, then quit the app.]
    •    
  • Currently 1.83 / 5
  You rated: 2 / 5 (6 votes cast)
 
[6,211 views]  

10.4: Script menu behavior has changed | 15 comments | Create New Account
Click here to return to the '10.4: Script menu behavior has changed' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Script menu behavior has changed
Authored by: adrianm on May 15, '05 03:38:50AM

This isn't the case for me.

I have no ~/Library/Scripts/Application folder and if I do create one, the contents of it disappear from the scripts menu.

Same with /Library/Scripts.



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: adrianm on May 15, '05 03:42:34AM

Ah, I see how this works now.

~/Library/Scripts/<appname>/wibble.scpt

will only appear if <appname> is the current application.

In that case, it is quite useful.

:-)



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: xyz3 on May 15, '05 09:49:30PM

Shell scripts do not seem to execute for me anymore. : (

Hopefully this is a bug.



[ Reply to This | # ]
10.4: Script Menu "ignores" shell scripts
Authored by: Hal Itosis on May 16, '05 11:37:15PM

> Shell scripts do not seem to execute for me anymore. : (
> Hopefully this is a bug.



That is definitely the biggest and most bothersome change in Tiger's Script Menu behavior (to me anyway), and it's somewhat surprising that this tip did not even mention it in passing. With respect to the changes it does mention (menu activation and/or folder location), Apple has provided newer methods.

But... the ability to execute Bash scripts has apparently been lost in the shuffle... and --so far-- we don't even have a clue as to whether that was accidental or deliberate, let alone how we can restore that functionality (without resorting to shareware).

To my astonishment, few have complained about this loss. I guess not too many folks have yet noticed its abscence in Tiger. (Or maybe they never knew the ability existed in Panther). Anyway... the only workaround I know of was posted in this thread from the forums.

-HI-



[ Reply to This | # ]
10.4: Script Menu "ignores" shell scripts
Authored by: Oops on May 22, '05 10:51:46AM

Shell Scripts (in bash, sh, tcsh, etc) execute just fine for me from the Scripts Menu in 10.4.1 anyway. I think that they also worked for me in 10.4.



[ Reply to This | # ]
10.4: Script Menu "ignores" shell scripts
Authored by: Oops on May 22, '05 11:34:05AM

...that's because, due to the fact that these shell scripts I was using started as double-click scripts, I have them named
foo.command (instead of just 'foo')
and
the opening line begins with a space (' #!/bin/bash' instead of '#!/bin/bash')

Doing this to your shell scripts will allow them to work under Script Menu



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: jedik on May 15, '05 03:39:23AM

And the keyboard shortcurts (like the ones used in MailScripts) don't work anymore??? It's a big regression. :(

---
:: Jedi Knight ::
-- Mac Rules! --



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: jedik on May 15, '05 03:48:30AM

But iTuns still have its Scripts menu... Ahhhhh!

Wait... Move the folder ~/Library/iTunes/Scripts to ~/Library/Scripts/Applications/iTunes and the menu is gone, and the scripts are show in the "general" Menu item! :)

---
:: Jedi Knight ::
-- Mac Rules! --



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: Tom Robinson on May 15, '05 11:18:47PM

Good tip, thanks! (But you have to restart iTunes before the old script menu disappears)



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: jedik on May 15, '05 03:59:44AM

Don't try to organize the scripts in the /Library/Scripts folder, creating an Applications folder. It doesn't seem to work (haven't restarted the Mac yet, though).

---
:: Jedi Knight ::
-- Mac Rules! --



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: truhe on May 15, '05 05:14:28AM

Can you define a shortcut to open the scripts menu?



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: inik on May 15, '05 09:15:46AM

An easy way to create the appropriate folder is to open the application you'd like a custom script menu for, and then in the Script Menu choose Open Scripts Folder --> Open <currentapp> Scripts Folder (where <currentapp> is the name of whatever application you're running). This will create a ~Library/Scripts/Applications/<currentapp>/ folder and open it for you.

Handy.



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: inik on May 15, '05 09:22:26AM

One more note: /Library/Applications/<appname> does NOT work. It only applies with ~/Library/Applications/<appname>.



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: CkB_Cowboy on May 16, '05 09:22:58AM

I've always liked the Script Menu, but found its functionality lacking. Fortunately, there's a great app called FastScripts ($15) that replaces the Script Menu and allows you to set hotkeys easily, and supports per-app and global scripts.

http://www.red-sweater.com/fastscripts/

(I use it for all my own AppleScripts)

- Cowboy

---
My ill-matic homepage:
http://rj3.net/cowboy/



[ Reply to This | # ]
10.4: Script menu behavior has changed
Authored by: osxpounder on Jun 25, '05 03:11:19AM

I'm dual-booting my Mac for the time being, not sure I want to commit to Tiger yet, but gradually using it more often. I wanted to use my collection of AppleScripts from the Panther drive, but didn't want to copy the folder.

I'm pleased to report that putting an alias in my ~/Library/Scripts folder was all I needed to do. The Script Menu treats it like any folder -- the menu expands and offers me the same scripts. Nice!

Oh, and robg, thanks for hipping me where to go to get the Scripts Menu onto my Tiger menu bar. I knew I'd find out how to do it here.

---
--
osxpounder



[ Reply to This | # ]