Messing with the dock.
Messing with the dock.
- Subject: Messing with the dock.
- From: email@hidden
- Date: Thu, 9 Sep 2010 09:44:53 -0500
Good Morning,
I am trying to develop a script that
will place a application located in the /Applications folder into the dock,
for this example I used Stickies. I found this script on the web but it
launches the Application before it places itself in the Dock and I would
rather that not happen. Any help would be much appreciated!
tell application
"Stickies" to launch
tell application
"System Events" to tell UI
element "Stickies" of
list
1 of process
"Dock"
perform
action
"AXShowMenu"
click
menu item
"Options" of menu
1
tell
menu item
"Keep in Dock" of menu
1 of menu item
"Options" of menu
1
if not (value
of attribute
"AXMenuItemMarkChar" exists)
then
click
else
key
code 53 --
escape
end if
end
tell
end tell
Jeff Madson/RR Donnelley/email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden