0
votes
0answers
18 views

AppleScript - Auto Press Keys

Using the AppleScript editor, I want pressing the "6" key in Google Chrome to also press the keys "1", "2", "3", "4", and "5". What's the easiest way to do this? I expect that there are some similar ...
0
votes
2answers
42 views

Using applescript to lock screen

I need an applescript which locks my Mac in the same way pressing "shift"+"ctrl"+"eject" would. I tried two different approaches, but both failed. The first one was to search the internet for a ...
4
votes
2answers
34 views

How to disable shortcut for an Automator script?

A few weeks ago I wrote a short script with the Automator to get familiar with it. I found a website which explained how to set up a primitive script to start the screensaver and define a shortcut to ...
0
votes
1answer
28 views

For each press of spacebar, pass keystroke to app and increment input counter

I would like for each time user press spacebar, for the script to pass keystroke space to a browser (Firefox) to play a game while counting the number of times spacebar was hit. How do you do that ...
0
votes
0answers
26 views

Why don't my volume-control AppleScripts run when called as Services?

I've got three AppleScripts that respectively toggle system mute, increase volume, and decrease volume. (For use with an old keyboard). They work fine when I run them as a workflow in Automator and ...
1
vote
1answer
92 views

Is it possible to create shortcuts for VLC using Automator?

I see here that Automator can be used to create commands that then can be triggered globally. I have no idea how to use Automator but see that it has some options for involving applications... Can a ...
1
vote
1answer
50 views

How can I convert a text selection to upper case in Apple Mail with a keyboard shortcut

Apple Mail version Version 6.6 (1510) OS 10.8.5 Is there a keyboard shortcut for converting the case for a text selection in the message editor? I know I can right-click and access this from the ...
2
votes
0answers
108 views

Moving full screen apps between monitors shortcut

Does anyone know if it is possible to move a full screen app to another monitor using a shortcut? Or if there is no existing shortcut would it be possible with Applescript? BetterTouchTool has "Move ...
0
votes
1answer
104 views

Set service keyboard shortcut and have change take effect programtically

I have the following script to set a services shortcut: set serviceName to "(null) - VimAnywhere - runWorkflowAsService" set libPrefPath to POSIX path of (path to preferences folder from user domain ...
2
votes
5answers
354 views

Set Services keyboard shortcut via script OSX

I need a way to set the following programmatically: Specifically for shortcuts under Services, if that makes a difference. I'm wondering if this is possible via shell or AppleScript? EDIT: I've ...
3
votes
1answer
94 views

AppleScript Editor : comment line shortcut?

Is there a keyboard shortcut to comment lines in AppleScript Editor ? The common Cmd+shift+/ does not work here.
2
votes
2answers
485 views

How to swap command and option modifier keys with a script in OS X Lion

I use a PC usb keyboard with my macbook. So, I've gone into System Preferences > Keyboard > Modifier Keys... and swapped command and option for the usb keyboard. This puts those keys in the ...
1
vote
1answer
93 views

How to script number pad key

We use an auto login script using ARD to avoid visiting each station in our lab. Mountain Lion no longer works so that a cursor appears at the login screen. I've tried numerous scripts to activate the ...
3
votes
6answers
761 views

How to make an existing AppleScript file to work as a service?

I made an AppleScript, saved it as a file in a specific folder on my hard drive. Now I want to assign a shortcut to it and looks like I have to make a Service via Automator, but the Run AppleScript ...
1
vote
1answer
133 views

Applescript IF statement with click and keystroke?

I would like to make a script that press down the shift button every time i click on something and maintains it pressed until I release click. Something like: If click then key down shift "when click ...
0
votes
2answers
336 views

Mac OSX Apple Script, How do I make Apple Script push keys on an application

What I am trying to do is make my character run up 50 steps then down 50 steps repeatedly using the up key and the down key. I know how to utilize system events to push keys and I know how to tell ...
1
vote
4answers
3k views

method for using F4 key without press function button in one macbookpro

i'm using a program that uses the F4 key for a shurtcut. it is an important shortcut and i'm heavily using it. every time in my mac book pro for press F4 i have to press also the fn button. is there ...
1
vote
1answer
1k views

Applescript code to simulate Command and Shift keys

I am handicapped and use Dragon Dictate 3. I need to take control of my Mac with Dragon, because I am not be able to use the keyboard. I need to know some Applescript code to do that. How could I ...
1
vote
2answers
1k views

Can AppleScript automatically press a key for me in an application?

I'm trying to devices an AppleScript that will automatically press the right arrow key for 1 second, then the left arrow key for 1 second and repeat this in an endless loop until I interrupt it. Here ...
3
votes
2answers
199 views

Have Voiceover read out just paragraph or sentence under cursor

I work with a disabled user who controls their iMac using keyboard and mouse input from their communication-aid. They have dyslexia and would like to use voiceover to read certain paragraphs or ...
1
vote
1answer
698 views

Shortcut to eject all external hard drives but not MobileBackups

So far I've been using the following AppleScript to eject all external drives at once conveniently using a shortcut: tell application "Finder" eject (every disk) end tell This script is is ...
1
vote
1answer
199 views

troubleshoot applescripted typing missing shift key and numerics in windows xp under parallels 8?

I am using a Windows XP VM with Parallels 8 under Mountain Lion. I have a remote desktop connection from XP that does not allow pasting from the clipboard, but typing works, of course. I have an ...
1
vote
1answer
982 views

Applescript to type text, followed by a modifier key combo?

I want to use TextExpander to activate when I type the specific text "attached", and have the AppleScript type out the word "attached" (since TextExpander will remove it), and then invoke the ...
0
votes
1answer
1k views

How to initiate a specific keystroke using automator?

I have the following code : on run {input, parameters} if application "KeyboardViewer" is running then quit application "KeyboardViewer" else activate application ...
-1
votes
1answer
403 views

Applescript opens new window for everything when run

I have the following code I did for a tweetbot keyboard shortcut to open tweetbot and create a new tweet. on run {input, parameters} activate application "Tweetbot 2" tell application ...
4
votes
3answers
573 views

Is there a sane way to emulate the newer media key behavior completely on an Apple Extended Keyboard II?

The operative word here being "completely". I recently found a nearly flawless (cosmetically and functionally) AEKII (Alps, not Mitsumis) on eBay and won it for $30. It's an awesome keyboard and it ...
12
votes
6answers
9k views

How to set screen resolution with a keyboard shortcut on Retina MBP?

I've found myself switching between the 1440x900 and 1920x1200 "effective resolution" setting depending on what I'm doing (need more space on screen, etc). Is there a way to toggle between these two ...
8
votes
4answers
2k views

OS X right click/context menu via keyboard

Is it possible to access the right click/context menu of the currently selected item (not the item under the mouse) by way of using a keyboard shortcut? If not, is there any way to achieve this, ...
2
votes
2answers
1k views

Is it possible to switch to a specific keyboard layout via `defaults`, *.plist or similar?

I have figured out a workable shell script using osascript (AppleScript) to automatically switch to US keyboard layout when MacVim activates (triggered by Keyboard Maestro), and Swedish layout when it ...
0
votes
1answer
118 views

How can I make a keyboard configuration become default when I hook it up?

At work, I have a MacBook Pro and a RHEL workstation that share a HP keyboard and mouse via a KVM switch. I do most of my work on the Mac so I prefer to change the modifier keys so they command and ...
3
votes
3answers
3k views

Software to record and playback mouse movement/clicks and keyboard presses?

I was wondering if there was any software out there that could record mouse/keyboard input and allow you to play back the input that was made? I've tried using Automator but for some reason it's not ...
1
vote
2answers
2k views

How do I do custom key binding in iTunes?

How would I assign ⌘1 to Music (Library item) ⌘2 to Movies ⌘3 to Podcasts Surprisingly enough, these key bindings are not assigned to anything yet, and IMO they would be most convenient ones ...
2
votes
2answers
519 views

How can one invoke a keyboard shortcut from within an AppleScript?

I need to invoke a keyboard shortcut from within an AppleScript code, later to be used as a startup item (i.e. the alternative to having to press something at every log in).
1
vote
2answers
707 views

Run an AppleScript by using a keyboard shortcut

I need to run an AppleScript using a keyboard shortcut. How can I do that? I think about Save AppleScript in textual format. Use Keyboard Maestro to launch 'osascript' to run the script when the ...