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


Click here to return to the 'Create a keyboard-shortcut for Show Package Contents' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a keyboard-shortcut for Show Package Contents
Authored by: bewebste on Jul 26, '06 07:56:16AM
I had similar problems getting the script to work with my toolbar config (I have back/forward, view, path, action, separator, delete, new folder, get info, flexible space, search), where it would select from the path menu. I made this mod to part of the script which searches for the action button based on its help text (doesn't have a proper "name" property unfortunately).

tell tool bar 1
	repeat with i from 1 to count of groups
		if help of group i begins with "Action" then
			set groupIndex to i
		end if
	end repeat
	try
		click menu button 1 of group groupIndex
	on error
		tell application "Finder" to display dialog "The action button needs to be on the toolboar"
		return "No Action"
	end try
end tell
Just replace the existing "tell tool bar 1" block in the script with this to apply. Does this work for others?

[ Reply to This | # ]