![]() ![]() I saved this as an Application to the /Applications folder just for faster startup and pointed BTT Open Application action to that file.It also allows you to configure actions for keyboard shortcuts, normal mice and the Apple Remote. AppleScript to the rescue So I typed four lines in AppleScript and now have an action to pop up new Safari window: tell application "Safari" The latter did bring up a new window, but I missed the chance to use Top Sites. First of these unfortunately did not open new window, but instead activated one of the pre-existent windows (which I could do just by clicking the Safari Dock icon). BTT had Predefined actions to Open Application/File/Script… or Open URL. I wanted to add a gesture (four-finger click) to bring up a new Safari window. In addition to that it brings lots of new stuff to MacOS like Windows 7 like window snapping, window switchers etc…… Extensive explanation is at the BTT developer’s blog. And (2) BTT lets me configure the trackpad too.īetterTouchTool lets you define tons of gestures for your Macbooks Trackpad, your MagicMouse and your MagicTrackpad. Definitely faster than switching to TM2, hitting ⌘N and then moving the window to correct space.ĮDIT: Mountain Lion seemed to have issues with this script, so download new version below or read more here: Safari New Window.įew days ago I switched to BetterTouchTool from MagicPrefs because (1) MP somehow blocked clicks when MagicMouse was disconnected and I always had to quit the MP. Hitting enter will fire this app and a sec later new TextMate window should be opened in current space. I have found that tmn is enough to trigger this application. Then push whatever shortcut you have for Spotlight (or Alfred, if you are like me) and enter few first chars. Place this script in your Applications folder and wait until Spotlight has indexed it. So opening new TM2 window in current space is a must.īut surely the developers are preoccupied with more important features and thus I decided to throw in my 2 cents and cobbled together an AppleScript that one can use to open new window in current space. I really miss this, because of my workflow – I use spaces to manage projects and programs I have open concurrently and I don’t want to mix the TextMate windows between spaces. With other programs (and TextMate 1 for that matter) this can be overcome by selecting “New file” or “New window” from dock menu.īut the problem is that TextMate 2 alpha currently does not have Switching to TextMate also switches spaces to my last TM session, which might not be my current space. Often I find myself in a situation where I need to quickly paste some text and edit it a bit. You can copy-paste the above script to AppleScript Editor and adjust it to your needs, or you can download this as a ready to use application. This script asks for which of the partitions to mount and then iterates with diskutil through the selection. The Script set partList to Ĭhoose from list partList with prompt "Choose partitions" with multiple selections allowedĭisplay dialog "Volume " & part & " mounted" All nice and dandy, but reattaching it when needed was a bit tedious. So, now I tend to eject the secondary disk when I don’t need it, so my Mac can spin it down. When I swapped ODD with HDD, I noticed that it was quite a bit noisier than SSD and even compared to similar MBP with HDD in original bay (probably because ODD bay has a slot that lets noise out easily). How to quickly mount partitions when the need arises? A small AppleScript to help you out. I chose ⌃⇧⌘D because that is similar to the official Look up shortcut. ![]() Next open System Preferences > Keyboard > Shortcuts and scroll down to your new service. ![]() I chose name Translate to Estonian for obvious reasons. Open location "" & toLang & "/" & phraseĬhange myBrowser to your preferred browser and also toLang to desired destination language and then save the service. Then paste in this AppleScript from below. Open Automator and create a New > Service, then search for Run AppleScript and drop that into the workflow. Also added a shortcut for it: ⌃⇧⌘D The AppleScript Automator to the rescueĬombining sources like this question in apple.stackexchange and this blog post in blog.fosketts I created an Automator Service that takes selected text from any application and then opens Google Translate with Auto->ET translation of the selection. Unfortunately this does not always help if the word in question is either not in English or the definition is equally puzzling. MacOS has very handy shortcut ⌃⌘D to look up translations in the built-in dictionary. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |