|
mac geekeryGet your geek on. |
The Dock Wants To Start a Program, Cancel or Allow?March 2, 2007 - 7:01pm
jlippiner@yahoo.com asks: QuestionI love the dock but hate when I accidentally click on an app that I didn’t mean to click on. Is it possible to either change the single click to a double-click to open an app on the dock or change it for certain apps so that you are prompted “Do you REALLY want to open that?” Thanks, Josh AnswerNo, but you can fake it. Create an AppleScript, of course, to replace the program and put that in the Dock instead. I’d do this for behemoth programs like anything in the Final Cut Studio or Creative Suite packages.
Simply change the first line to have the name of the program you want and then put this script in the Dock instead. Finish the illusion by giving the script the same name and icon as the program and you’ll never know until you click on it that it’s not the real thing. You don’t want to use the phrase set theApp to application “Behemoth Program” because that causes AppleScript to resolve application “Behemoth Program” early on, which causes it to open the program. Instead, you do it lazily and obfuscate what program will be started by using a variable so that AppleScript will only start the program once it gets to that point in execution. Fun, fun. About Adam Knight |
|
||||
Hmm. Rarely to I click on an app in the Dock I don’t want to start, because most of the apps in my Dock are ones I keep open all the time. The rest I start with LaunchBar. But regardless of how an app gets opened, on the occasions when I do so unintentionally, I simply click and hold on the bouncing icon and choose Force Quit from the item’s Dock menu, and away it goes.
And I start mine with Switchblade. And others with Quicksilver. But, everyone has a different workflow and, thus, the question.
But, yeah, the easiest solution is a simple right-click/force quit.
That for the simple Applescript..I’ll use it for Soundtrack (which as you know is a bear)
I do have a question though – Where can i see what Apps have been launced, when (date/ time) and by whom?
Cheers
Sean
You can stop any program you launch with the option + click on the icon in the dock. You will have the choice of the Force Quit in the menu and voilà. This is what i use always if the app take to long to start but if it speedy command + Q.
As simple as that
Alain
I agree wholeheartedly with the idea of a Force Quit for an inadvertent application launch instead of the Cancel/OK dialogue.
Sorry to be blunt, but putting up a dialogue for every app launch from the Dock is a rather inelegant fix.
OK, maybe that comment is too strong. But I feel strongly that putting up that dialogue box is an unnecessary fix for a problem that already has a solution.
jimm
jimm
Right, and as I said this is the answer to the user’s question, not the best way to go about it. Read all the comments, first, please.
A dumb question – once i have created the script, how do i get it to run in the doc? when i click it, it just opens up the script editor.
Thanks!
In Script Editor, save it as an application rather than a script.
What I’d like to see is an applescript that lets me right-click on a file and choose to quickly open it in Preview. I know I can choose ‘Open With’ and scroll through a huge list of apps — including many duplicate names for some odd reason — but it’s slow and annoying to do repeatedly. A script to do the same with attachments from Entourage email messages would be awesome.
Does it exist already or should I program it?