Re: Alias to Dock in Mac OS X
Re: Alias to Dock in Mac OS X
- Subject: Re: Alias to Dock in Mac OS X
- From: Mr Tea <email@hidden>
- Date: Sat, 09 Nov 2002 18:07:36 +0000
This from Barbara Mueller - dated 081102 07.53 am:
>
I could add aliases to the "Apple Menu Items Folder" with the command:
>
"make new alias file at apple menu to selection"
>
>
Now I wanted to add aliases to the Dock but of course
>
"make new alias file at Dock to selection"
>
does not work.
>
(Error message: "The variable Dock is not defined")
>
>
Any idea how to solve the problem?
Hi, Barbara. The Dock isn't directly scriptable yet, and items displayed in
it are not stored in a folder, as they were in the Apple Menu. Information
about items that stay in the dock is contained in the Dock preferences file
(com.apple.dock.plist - in the preferences folder inside your user library)
and these files can be written to, but I don't think this would help
anything here.
What you could do is create a folder to use as your OS X 'Apple Menu Items'
folder, and put that in the dock. This will then display anything inside the
folder when you control-click/right-click/click-and-hold on the folder icon
in the dock. It would be easy enough to put aliases in this folder with a
script, much as you did with the Apple Menu in OS 9.
For example, create a folder in your user folder called "Dock Menu Items"
and drag it onto files & folders section of the dock (the part containing
the trash). Then you can use this script to put aliases in it:
--======
set theUser to((path to current user folder) as string)
set theMenu to theUser & "Dock Menu Items" as alias
tell application "Finder"
make new alias file to selection at theMenu
end tell
--======
And of course, this will work as a speakable item too...
But if you're really missing that pre-X Apple Menu and have seven bucks to
spare, then you should probably visit
http://www.unsanity.com/products.php
and get yourself a copy of FruitMenu. It works just like the old Apple one
(and in the same place), with the additional benefits of being able to
easily put menu items in any order _and_ assign hot keys to them (plus other
spiffy stuff too). If I had to choose just one haxie for restoring a feature
that was lost in the move to OS X, this would be it.
If you do decide to use this option, it's easy to move stuff into the
FruitMenu items folder. Just replace the second line of the above script
with this:
set theMenu to theUser & "Library:FruitMenu Items:" as alias
HTH
Regards
Mr Tea
--
Brew of the day: Choicest Blend
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.