Hello,
I am really new to scripts but I used some in Alfred v1.
Scripts like Bluetooth-Toggle or Wi-Fi-toggle and AppleScripts like Starfish or Caffeine Manager.
Now with version 2 beta I wanted to import some manually by copying the text.
For Example: Bluetooth-Toggle
I said Keyword (Input) and combined it with run script (Actions)
Script:
./bluetooth.py
Another Caffeine Manager:
I said Keyword (Input) and combined it with run applescript (Actions)
Script:
(* This is an unofficial manager for Caffeine (http://lightheadsw.com/caffeine/) created by Sebastian of Zibity. It is an easy way to toggle Caffeine on and off.
Usage: "caff"
If you have any questions or suggestions, please send me a message via my website: http://www.zibity.com
If you want more cool Alfred extensions like these, take a look at http://www.zibity.com/alfred.html for all of my other extensions.
If you like this extension, please consider donating to support the continued development of things like this: http://donate.zibity.com
*)
--- SCRIPT BEGINS HERE ---
try
tell application "Caffeine"
if active is false then
turn on
tell application "Growl" to notify with name "Extension Output" title "Caffeine has been activated." description "Caffeine Manager has activated Caffeine." application name "Alfred" identifier "caff" icon of application "Caffeine"
else
turn off
tell application "Growl" to notify with name "Extension Output" title "Caffeine has been deactivated." description "Caffeine Manager has deactivated Caffeine." application name "Alfred" identifier "caff" icon of application "Caffeine"
end if
end tell
end try
Non of this ways really worked for me. Do you have any suggestions for me what I did wrong?