Pārlūkot izejas kodu

Added iTunes Blog Entry

Thomas Buck 11 gadus atpakaļ
vecāks
revīzija
c2ba151796

+ 30
- 0
input/blog/2013/2013_07_30_itunes.md Parādīt failu

@@ -0,0 +1,30 @@
1
+title: Blog
2
+post: Global iTunes shortcuts using on-board tools
3
+date: 2013-07-30
4
+comments: true
5
+---
6
+
7
+## {{ page["post"] }}
8
+<!--%
9
+from datetime import datetime
10
+date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
11
+print "*Posted at %s.*" % date
12
+%-->
13
+
14
+Ha, finally I found a solution to control iTunes with global Keyboard Hotkeys from my [USB Keyboard][tex] without Media Keys. The solution is quite hacky but should work, even in the future.
15
+
16
+First, Open Automator.app and create a new System Service. It should not accept any input and the only Action should be "Run AppleScript", found under "Utilities". Then, enter a script roughly like this and store the Service (click to enlarge):
17
+
18
+[![Screenshot Automator][small]][big]
19
+
20
+Repeat this with the "previous track" and "playpause" AppleScript commands.
21
+
22
+Now, open the System Preferences, go to Keyboard, Keyboard Shortcuts, Services. You should find your newly created Services under General. Assign some shortcuts and you're done :)
23
+
24
+[![Screenshot System Preferences][small2]][big2]
25
+
26
+ [tex]: http://xythobuz.de/tex_beetle.html
27
+ [small]: img/automator_small.png
28
+ [big]: img/automator.png
29
+ [small2]: img/preferences_small.png
30
+ [big2]: img/preferences.png

Binārs
static/img/automator.png Parādīt failu


Binārs
static/img/automator_small.png Parādīt failu


Binārs
static/img/preferences.png Parādīt failu


Binārs
static/img/preferences_small.png Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt