forked from wycats/osx-window-sizing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
28 lines (26 loc) · 920 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
desc "Compile scripts to .scpt files"
task :compile do
puts "Compiling center.applescript..."
system "osacompile -o center.scpt center.applescript"
puts "Compiling center.applescript..."
system "osacompile -o maximize.scpt maximize.applescript"
puts "Done"
puts
end
desc "Install scripts to your scripts folder"
task :install => :compile do
puts "Making ~/Library/Scripts if it doesn't already exist"
system "mkdir -p ~/Library/Scripts"
puts "Copying scripts to your scripts folder"
system "cp *.scpt ~/Library/Scripts"
puts "Done"
puts
end
desc "Download and mount FastScripts"
task :install_fastscripts do
system "curl http://www.red-sweater.com/fastscripts/FastScriptsLite2.3.6.dmg > FastScripts.dmg"
system "hdiutil attach FastScripts.dmg"
puts "FastScripts Lite is now mounted in your system. Opening the folder..."
sleep 1
system "open \"/Volumes/FastScripts Lite 2.3.6\""
end